The logic to get the ResolvedReferenceTypeDeclaration's from a scope and a TypeSolver was extracted from MethodCallExprContext.solveMethod to a method named findTypeDeclarations and pulled up to AbstractJavaParserContext class. After that a method called FieldAccessContext.solveField was created. This method uses the findTypeDeclarations method mentioned before.
Fix issues #300 and #355.
The logic to get the
ResolvedReferenceTypeDeclaration
's from a scope and aTypeSolver
was extracted fromMethodCallExprContext.solveMethod
to a method namedfindTypeDeclarations
and pulled up toAbstractJavaParserContext
class. After that a method calledFieldAccessContext.solveField
was created. This method uses thefindTypeDeclarations
method mentioned before.