Skip to content

Commit

Permalink
[Dogfooding] Fix unrecognized call to constructor to mark as used
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
Rob Stryker committed Jan 29, 2025
1 parent ab569f3 commit cca8f31
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ public R visitNewClass(NewClassTree node, P p) {
if (isPrivateSymbol(targetClass)) {
this.usedElements.add(targetClass);
}
if( newClass.constructor != null ) {
this.usedElements.add(newClass.constructor);
}
}

return super.visitNewClass(node, p);
Expand Down

0 comments on commit cca8f31

Please sign in to comment.