Skip to content

Commit 0a7b404

Browse files
committed
Adds interface space
1 parent c765293 commit 0a7b404

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/getter.rs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,9 +515,8 @@ impl Getter for JavaCode {
515515

516516
let typ = node.object().kind_id();
517517
match typ.into() {
518-
ClassDeclaration => SpaceKind::Class,
518+
InterfaceDeclaration | ClassDeclaration => SpaceKind::Class,
519519
MethodDeclaration | LambdaExpression => SpaceKind::Function,
520-
PackageDeclaration | ModuleDeclaration => SpaceKind::Namespace,
521520
Program => SpaceKind::Unit,
522521
_ => SpaceKind::Unknown,
523522
}

0 commit comments

Comments
 (0)