Package dtool.ast.util

Examples of dtool.ast.util.ASTNodeFinderExtension


    } else {
      nameToken = null;
    }
   
    Module module = parseResult.getModuleNode();
    ASTNode nodeAtOffset = new ASTNodeFinderExtension(module, offset, true).match;
    assertTrue(nodeAtOffset.getSourceRange().contains(offset));
   
    if(nodeAtOffset instanceof CommonQualifiedReference) {
      CommonQualifiedReference namedRef = (CommonQualifiedReference) nodeAtOffset;
      assertTrue(nameToken == null);
View Full Code Here


    }
   
  }
 
  protected static ASTNode getStartingNodeForNameLookup(int offset, Module module) {
    ASTNodeFinderExtension nodeFinder = new ASTNodeFinderExtension(module, offset, true);
    ASTNode node = nodeFinder.match;
    if(nodeFinder.matchOnLeft instanceof NamedReference) {
      NamedReference reference = (NamedReference) nodeFinder.matchOnLeft;
      if(reference.isMissingCoreReference()) {
        node = nodeFinder.matchOnLeft;
View Full Code Here

TOP

Related Classes of dtool.ast.util.ASTNodeFinderExtension

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.