ReferenceChainLink (FileLocalResolver resolver, LighterASTNode expr, boolean isCall, String referenceName) { if (!isCall) { FileLocalResolver.LightResolveResult result = resolver.resolveLocally(expr); if (result == FileLocalResolver.LightResolveResult.UNKNOWN) return null; LighterASTNode target = result.getTarget(); if (target != null) { String typeName = resolver.getShortClassTypeName(target); return typeName != null ? new ReferenceChainLink(typeName, false, -1) : null; } } return new ReferenceChainLink(referenceName, isCall, getArgCount(resolver.getLightTree(), expr)); }