Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@ public static ASTNode getEnclosingJavaElementNode(ASTNode node) {
|| node instanceof AnnotationTypeMemberDeclaration
|| node instanceof Initializer
|| node instanceof LambdaExpression
|| node.getLocationInParent() == FieldDeclaration.FRAGMENTS_PROPERTY
|| node.getLocationInParent() == RecordDeclaration.RECORD_COMPONENTS_PROPERTY) {
return node;
}
if( node.getLocationInParent() == FieldDeclaration.FRAGMENTS_PROPERTY ) {
return node.getParent();
}
if (node instanceof ClassInstanceCreation newInst && newInst.getAnonymousClassDeclaration() != null) {
return (newInst.getAnonymousClassDeclaration());
}
Expand Down
Loading