Package dtool.ast.declarations

Examples of dtool.ast.declarations.DeclarationAttrib


    while(true) {
      if(node instanceof DefUnit) {
        return (DefUnit) node;
      }
      if(node instanceof DeclarationAttrib) {
        DeclarationAttrib declAttrib = (DeclarationAttrib) node;
        if(declAttrib.bodySyntax == AttribBodySyntax.SINGLE_DECL) {
          node = declAttrib.body;
          continue;
        }
      }
View Full Code Here


        NodeResult<? extends IDeclaration> decl = parseDeclaration(true, autoDeclEnabled, defStartInfo);
        body = !isNull(decl) ? decl.node : parseMissingDeclaration(RULE_DECLARATOR);
      }
    }
   
    return parse.resultConclude(new DeclarationAttrib(attributes, bodySyntax, body));
  }
View Full Code Here

  }
 
 
  public static boolean nodeConsumesTrailingWhiteSpace(final ASTNode node) {
    if(node instanceof DeclarationAttrib) {
      DeclarationAttrib declAttrib = (DeclarationAttrib) node;
      if(declAttrib.bodySyntax == AttribBodySyntax.COLON) {
        return true;
      }
    }
    if(node instanceof RefIdentifier) {
View Full Code Here

      return getDDocHTMLViewForAutoLike(mr, autoReference.getParent_());
    } else if(pickedNode instanceof AttribBasic) {
      AttribBasic attribBasic = (AttribBasic) pickedNode;
      if(attribBasic.attribKind == AttributeKinds.AUTO) {
        if(attribBasic.getParent() instanceof DeclarationAttrib) {
          DeclarationAttrib declAttrib = (DeclarationAttrib) attribBasic.getParent();
          return getDDocHTMLViewForAuto(mr, declAttrib);
        }
      }
    } else if(pickedNode instanceof DefinitionEnumVar) {
      DefinitionEnumVar definitionEnumVar = (DefinitionEnumVar) pickedNode;
View Full Code Here

TOP

Related Classes of dtool.ast.declarations.DeclarationAttrib

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.