Package dtool.ast.definitions.DefinitionAlias

Examples of dtool.ast.definitions.DefinitionAlias.DefinitionAliasFragment


 
  protected NodeResult<DefinitionAlias> parseDefinitionAlias_atFragmentStart(DefParseHelper parse) {
    ArrayList<DefinitionAliasFragment> fragments = new ArrayList<>();
   
    while(true) {
      DefinitionAliasFragment fragment = parseAliasFragment();
      fragments.add(fragment);
     
      if(!tryConsume(DeeTokens.COMMA)) {
        break;
      }
View Full Code Here


      if(parse.consumeRequired(DeeTokens.ASSIGN).ruleBroken) break parsing;
     
      NodeResult<Reference> refResult = parseTypeReference_ToMissing();
      ref = refResult.node;
    }
    return parse.conclude(new DefinitionAliasFragment(defId, tplParams, ref));
  }
View Full Code Here

      cp.append(getDefUnitContainerSuffix(defUnit));
      return cp.toString();
    }
   
    case DEFINITION_ALIAS_FRAGMENT: {
      DefinitionAliasFragment elem = (DefinitionAliasFragment) defUnit;
      return elem.getName() + getAliasSegment(elem.target) + getDefUnitContainerSuffix(defUnit);
    }
    case DEFINITION_ALIAS_VAR_DECL: {
      DefinitionAliasVarDecl elem = (DefinitionAliasVarDecl) defUnit;
      return elem.getName() + getAliasSegment(elem.target) + getDefUnitContainerSuffix(defUnit);
    }
    case DEFINITION_ALIAS_FUNCTION_DECL: {
      DefinitionAliasFunctionDecl elem = (DefinitionAliasFunctionDecl) defUnit;
      // TODO: print a proper alias segment
      return elem.getName() + getAliasSegment(elem.target) + getDefUnitContainerSuffix(defUnit);
    }
   
   
    default: break;
    }
View Full Code Here

TOP

Related Classes of dtool.ast.definitions.DefinitionAlias.DefinitionAliasFragment

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.