@Override protected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems) { if (IASLanguageConstants.arguments.equals(name)) { if (!this.isMemberRef() && !this.isQualifiedRef() && set.contains(PostProcessStep.POPULATE_SCOPE)) { FunctionNode fn = (FunctionNode)getAncestorOfType(FunctionNode.class); if (fn != null) fn.needsArguments = true; } } }
@Override protected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems) { if (IASLanguageConstants.arguments.equals(name)) { if (!this.isMemberRef() && !this.isQualifiedRef() && set.contains(PostProcessStep.POPULATE_SCOPE)) { FunctionNode fn = (FunctionNode)getAncestorOfType(FunctionNode.class); if (fn != null) fn.needsArguments = true; } } }
private REF_TYPE getRefType() { if (isMemberRef()) { // If this is a member expr, then the stem better be a package; // otherwise we can't possibly be a type ref. if (baseIsPackage()) return REF_TYPE.PACKAGE_QUALIFIED; else return REF_TYPE.MEMBER; } else if (isQualifiedRef()) { return REF_TYPE.NAMESPACE_QUALIFIED; } else { return REF_TYPE.LEXICAL; } }
private REF_TYPE getRefType() { if (isMemberRef()) { // If this is a member expr, then the stem better be a package; // otherwise we can't possibly be a type ref. if (baseIsPackage()) return REF_TYPE.PACKAGE_QUALIFIED; else return REF_TYPE.MEMBER; } else if (isQualifiedRef()) { return REF_TYPE.NAMESPACE_QUALIFIED; } else { return REF_TYPE.LEXICAL; } }
IQualifiers qualifier = null; if (isQualifiedRef())
IQualifiers qualifier = null; if (isQualifiedRef())