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 <[email protected]>
  • Loading branch information
Rob Stryker authored and mickaelistria committed Dec 20, 2024
1 parent e11dddd commit a38b5b4
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 a38b5b4

Please sign in to comment.