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.
Coverage increased (+0.1%) to 86.038% when pulling 5d741af63118a5aaee1f5026892a38f8cbca2cb9 on rpau-fix-method-refs-in-constructors into e9e44b1d08d94a581c8e5f7ba491d35f4b014c97 on master.
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.