Skip to content

Commit

Permalink
Defines space kinds
Browse files Browse the repository at this point in the history
  • Loading branch information
dburriss committed Mar 22, 2022
1 parent 8bac42f commit c765293
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/getter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,9 @@ impl Getter for JavaCode {

let typ = node.object().kind_id();
match typ.into() {
ClassDeclaration => SpaceKind::Class,
MethodDeclaration | LambdaExpression => SpaceKind::Function,
PackageDeclaration | ModuleDeclaration => SpaceKind::Namespace,
Program => SpaceKind::Unit,
_ => SpaceKind::Unknown,
}
Expand Down

0 comments on commit c765293

Please sign in to comment.