Package dtool.ast.references

Examples of dtool.ast.references.RefIdentifier


    return ref instanceof RefIdentifier;
  }
 
  public static ProtoDefSymbol convertRefIdToDef(Reference ref) {
    assertTrue(couldHaveBeenParsedAsId(ref));
    RefIdentifier refId = (RefIdentifier) ref;
    ParserError error = refId.isMissing() ? getMissingIdError(refId) : null;
    return new ProtoDefSymbol(refId.getDenulledIdentifier(), ref.getSourceRange(), error);
  }
View Full Code Here


    if(!tryConsume(DeeTokens.KW_ALIAS))
      return null;
    ParseHelper parse = new ParseHelper();
   
    boolean isAssignSyntax = false;
    RefIdentifier refId = null;
   
    parsing:
    if(tryConsume(DeeTokens.KW_THIS)) {
      isAssignSyntax = true;
     
View Full Code Here

      if(declAttrib.bodySyntax == AttribBodySyntax.COLON) {
        return true;
      }
    }
    if(node instanceof RefIdentifier) {
      RefIdentifier refId = (RefIdentifier) node;
      return refId.isMissing();
    }
    if(node instanceof DefSymbol) {
      return false;
    }
   
View Full Code Here

    ParserError error = expectedRule != null ? createErrorExpectedRule(expectedRule) : null;
    return createMissingTypeReferenceNode(sourceRange, error);
  }
 
  public Reference createMissingTypeReferenceNode(SourceRange sourceRange, ParserError error) {
    RefIdentifier refMissing = new RefIdentifier(null);
    refMissing.setSourceRange(sourceRange);
    assertTrue(refMissing.isMissing());
    return conclude(error, refMissing);
  }
View Full Code Here

    return parseRefIdentifier();
  }
 
  public RefIdentifier parseRefIdentifier() {
    BaseLexElement id = consumeExpectedContentToken(DeeTokens.IDENTIFIER);
    return conclude(id.getMissingError(), srEffective(id, new RefIdentifier(idTokenToString(id))));
  }
View Full Code Here

  public NodeResult<RefModuleQualified> parseRefModuleQualified() {
    if(!tryConsume(DeeTokens.DOT))
      return nullResult();
    int nodeStart = lastLexElement().getStartPos();
   
    RefIdentifier id = parseRefIdentifier();
    return resultConclude(id.isMissing(), srToPosition(nodeStart, new RefModuleQualified(id)));
  }
View Full Code Here

    return parseTypeReference_withLeftReference(leftRef, refRestrictions);
  }
 
  public Reference parseRefQualified(ParseHelper parse, IQualifierNode qualifier) {
    LexElement dotToken = consumeLookAhead(DeeTokens.DOT);
    RefIdentifier qualifiedId = parseRefIdentifier();
    parse.setRuleBroken(qualifiedId.isMissing());
    return parse.conclude(new RefQualified(qualifier, dotToken.getStartPos(), qualifiedId));
  }
View Full Code Here

  }
 
  public class ParseStructInitEntry extends ElementListParseHelper<StructInitEntry> {
    @Override
    protected StructInitEntry parseElement(boolean createMissing) {
      RefIdentifier member = null;
      if(lookAhead() == DeeTokens.COLON ||
        (lookAhead() == DeeTokens.IDENTIFIER && lookAhead(1) == DeeTokens.COLON)) {
        member = parseRefIdentifier();
        consumeLookAhead(DeeTokens.COLON);
      }
View Full Code Here

TOP

Related Classes of dtool.ast.references.RefIdentifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.