/** * Is this a type reference - e.g. a base class ref, type anno, etc * * @return true if this is a type reference */ protected boolean isTypeRef() { DependencyType dt = getDependencyType(); if (dt == DependencyType.SIGNATURE || dt == DependencyType.INHERITANCE) return true; if (dt == DependencyType.EXPRESSION) { final IASNode parent = getParent(); if (parent instanceof BaseTypedDefinitionNode && this == ((BaseTypedDefinitionNode)parent).getTypeNode()) return true; } return false; }
/** * Is this a type reference - e.g. a base class ref, type anno, etc * * @return true if this is a type reference */ protected boolean isTypeRef() { DependencyType dt = getDependencyType(); if (dt == DependencyType.SIGNATURE || dt == DependencyType.INHERITANCE) return true; if (dt == DependencyType.EXPRESSION) { final IASNode parent = getParent(); if (parent instanceof BaseTypedDefinitionNode && this == ((BaseTypedDefinitionNode)parent).getTypeNode()) return true; } return false; }
result = asScope.findProperty(project, name, getDependencyType(), isTypeRef()); if (result != null && name.equals("graphics") && (result.getParent() instanceof ITypeDefinition) && ((ITypeDefinition)(result.getParent())).isInstanceOf("mx.core.UIComponent", project)) result = asScope.findProperty(project, "royalegraphics", getDependencyType(), isTypeRef()); result = asScope.findPropertyQualified(project, qualifier, name, getDependencyType(), isTypeRef()); if (result == null && wasMemberRef && baseIsPackage())
result = asScope.findProperty(project, name, getDependencyType(), isTypeRef()); result = asScope.findPropertyQualified(project, qualifier, name, getDependencyType(), isTypeRef()); if (result == null && wasMemberRef && baseIsPackage())