Package dtool.ast.definitions.DefinitionEnum

Examples of dtool.ast.definitions.DefinitionEnum.EnumBody


  protected Reference getEffectiveTypeReference() {
    return type != null ? type : getEnumParentType();
  }
 
  public Reference getEnumParentType() {
    EnumBody enumBody = getParent_Concrete();
    ASTNode parentEnum = enumBody.getParent();
    if(parentEnum instanceof DeclarationEnum) {
      DeclarationEnum declarationEnum = (DeclarationEnum) parentEnum;
      return declarationEnum.type;
    }
    if(parentEnum instanceof DefinitionEnum) {
View Full Code Here


      return parseDefinitionEnumVar_afterId(parse);
    }
   
    ProtoDefSymbol defId = parseDefId();
    Reference type = null;
    EnumBody body = null;
   
    parsing : {
      if(tryConsume(DeeTokens.COLON)) {
        type = parse.checkResult(parseTypeReference_ToMissing());
        if(parse.ruleBroken) break parsing;
View Full Code Here

  protected NodeResult<DeclarationEnum> parseDeclarationEnum_start() {
    consumeLookAhead(DeeTokens.KW_ENUM);
    ParseHelper parse = new ParseHelper();
   
    Reference type = null;
    EnumBody body = null;
   
    parsing : {
      if(tryConsume(DeeTokens.COLON)) {
        type = parse.checkResult(parseTypeReference_ToMissing());
        if(parse.ruleBroken) break parsing;
View Full Code Here

    parse.parseList(DeeTokens.OPEN_BRACE, DeeTokens.COMMA, DeeTokens.CLOSE_BRACE);
    if(parse.members == null) {
      return nullResult();
    }
   
    return parse.resultConclude(new EnumBody(parse.members));
  }
View Full Code Here

TOP

Related Classes of dtool.ast.definitions.DefinitionEnum.EnumBody

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.