Package dtool.ast.definitions

Examples of dtool.ast.definitions.DefinitionClass


    }
   
    Token[] comments = adp.parseEndDDocComments();
   
    return adp.resultConclude(isClass ?
      new DefinitionClass(
        comments, adp.defId, adp.tplParams, adp.tplConstraint, baseClasses.members, baseAfter, adp.declBody) :
      new DefinitionInterface(
        comments, adp.defId, adp.tplParams, adp.tplConstraint, baseClasses.members, baseAfter, adp.declBody)
    );
  }
View Full Code Here


    cp.append("super");
  }
 
  @Override
  public Collection<INamedElement> findTargetDefElements(IModuleResolver moduleResolver, boolean findFirstOnly) {
    DefinitionClass definitionClass = ExpThis.getClassNodeParent(this);
    if(definitionClass == null) {
      return null;
    }
   
    INamedElement superClass = definitionClass.resolveSuperClass(moduleResolver);
    if(superClass == null) {
      return null;
    }
    return Collections.<INamedElement>singleton(superClass);
  }
View Full Code Here

    cp.append("this");
  }
 
  @Override
  public Collection<INamedElement> findTargetDefElements(IModuleResolver moduleResolver, boolean findFirstOnly) {
    DefinitionClass definitionClass = getClassNodeParent(this);
    if(definitionClass == null) {
      return null;
    }
    return Collections.<INamedElement>singleton(definitionClass);
  }
View Full Code Here

 
  public static DefinitionClass getClassNodeParent(ASTNode node) {
    do {
      node = node.getParent();
      if(node instanceof DefinitionClass) {
        DefinitionClass definitionClass = (DefinitionClass) node;
        return definitionClass;
      }
    } while(node != null);
    return null;
  }
View Full Code Here

  @Override
  public void resolveSearchInScope(CommonDefUnitSearch search) {
    ReferenceResolver.findInNodeList(search, nodes, false);
    // TODO: a more typesafe alternative to this check
    if(getParent() instanceof DefinitionClass) {
      DefinitionClass definitionClass = (DefinitionClass) getParent();
      definitionClass.resolveSearchInSuperScopes(search);
    }
  }
View Full Code Here

TOP

Related Classes of dtool.ast.definitions.DefinitionClass

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.