Package dtool.ast.util

Examples of dtool.ast.util.ASTSourceRangeChecker


  public static void checkNodeSourceRange(ASTNode node, final String fullSource) {
    assertTrue(node.hasSourceRangeInfo());
    assertTrue(node.getStartPos() <= fullSource.length() && node.getEndPos() <= fullSource.length());
   
    // Check consistency of source ranges (no overlapping ranges)
    new ASTSourceRangeChecker(node) {
      @Override
      public boolean visitChildrenAfterPreVisitOk() {
        return depth < 2;
      }
     
View Full Code Here

TOP

Related Classes of dtool.ast.util.ASTSourceRangeChecker

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.