rpau / javalang-compiler

Java compiler elements (symbol and type tables) to perform code semantic analysis
GNU Lesser General Public License v3.0
10 stars 4 forks source link

Fix method reference usages from constructors #81

Closed rpau closed 6 years ago

rpau commented 6 years ago

This patch fixes that method references do not have usages when they are constructor arguments.

The method reference symbols are resolved in SymbolDataOfMethodReferenceBuilder which was only used in the visit method of TypeVisitorAdapter for MethodCallExpr.

This patch adaptes SymbolDataOfMethodReferenceBuilder to support constructors and the visit method of ObjectCreationExpr is also updated to use this component.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.1%) to 86.038% when pulling 5d741af63118a5aaee1f5026892a38f8cbca2cb9 on rpau-fix-method-refs-in-constructors into e9e44b1d08d94a581c8e5f7ba491d35f4b014c97 on master.