Skip to content

Commit

Permalink
Fix CompletionContextTests.test0116 and 1 other
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <stryker@redhat.com>
  • Loading branch information
Rob Stryker committed Dec 20, 2024
1 parent e17e483 commit 664699c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ public int getTokenLocation() {
if (wrappingNode instanceof Block block) {
return block.statements().isEmpty() ? TL_STATEMENT_START : 0;
}
if( wrappingNode instanceof AnonymousClassDeclaration anon) {
if(isWithinTypeDeclarationBody(wrappingNode, this.cuBuffer, this.offset)) {
return TL_MEMBER_START;
}
}
wrappingNode = wrappingNode.getParent();
}
return 0;
Expand Down

0 comments on commit 664699c

Please sign in to comment.