@Override public ResolveResult visitTypeReference(final TypeReferenceExpression node, final Void p) { return resolveType(node.getType().getUserData(Keys.TYPE_REFERENCE)); }
@Override public ResolveResult visitTypeReference(final TypeReferenceExpression node, final Void _) { return resolveType(node.getType().getUserData(Keys.TYPE_REFERENCE)); }
@Override public ResolveResult visitTypeReference(final TypeReferenceExpression node, final Void _) { return resolveType(node.getType().getUserData(Keys.TYPE_REFERENCE)); }
private static NameResolveMode modeForType(final AstNode type) { if (type != null && type.getParent() instanceof TypeReferenceExpression && ((TypeReferenceExpression) type.getParent()).getType() == type) { return NameResolveMode.EXPRESSION; } return NameResolveMode.TYPE; }
private static NameResolveMode modeForType(final AstNode type) { if (type != null && type.getParent() instanceof TypeReferenceExpression && ((TypeReferenceExpression) type.getParent()).getType() == type) { return NameResolveMode.EXPRESSION; } return NameResolveMode.TYPE; }
private static NameResolveMode modeForType(final AstNode type) { if (type != null && type.getParent() instanceof TypeReferenceExpression && ((TypeReferenceExpression) type.getParent()).getType() == type) { return NameResolveMode.EXPRESSION; } return NameResolveMode.TYPE; }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof TypeReferenceExpression) { final TypeReferenceExpression typeReferenceExpression = (TypeReferenceExpression) other; final TypeReference typeReference = typeReferenceExpression.getType().getUserData(Keys.TYPE_REFERENCE); return typeReference != null && StringUtilities.equals(_descriptor, typeReference.getInternalName()); } return false; } }
@Override public Void visitTypeReference(final TypeReferenceExpression node, final Void ignored) { startNode(node); node.getType().acceptVisitor(this, null); endNode(node); return null; }
@Override public Void visitTypeReference(final TypeReferenceExpression node, final Void ignored) { startNode(node); node.getType().acceptVisitor(this, null); endNode(node); return null; }
@Override public Void visitTypeReference(final TypeReferenceExpression node, final Void ignored) { startNode(node); node.getType().acceptVisitor(this, null); endNode(node); return null; }
@Override public boolean matches(final INode other, final Match match) { if (other instanceof TypeReferenceExpression) { final TypeReferenceExpression typeReferenceExpression = (TypeReferenceExpression) other; final TypeReference typeReference = typeReferenceExpression.getType().getUserData(Keys.TYPE_REFERENCE); return typeReference != null && StringUtilities.equals(_descriptor, typeReference.getInternalName()); } return false; } }
final TypeReference enclosingType = enclosingTypeExpression.getType().getUserData(Keys.TYPE_REFERENCE);
final TypeReference enclosingType = enclosingTypeExpression.getType().getUserData(Keys.TYPE_REFERENCE);
final TypeReference enclosingType = enclosingTypeExpression.getType().getUserData(Keys.TYPE_REFERENCE);