Examples of ASTSourceRangeChecker


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
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.