Examples of ASTNodeFinderExtension


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

Examples of dtool.ast.util.ASTNodeFinderExtension

    }
   
  }
 
  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
Copyright © 2018 www.massapi.com. 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.