Package xtc.tree

Examples of xtc.tree.Location


      return;
    }
    String contentSoFar = sb.toString() + line;
    int textPos = contentSoFar.length() + needNewlines + 1;
    if (loc.hasLocation()) {
      Location location = loc.getLocation();
      mapping.put(textPos, new Location(location.file, location.line, location.column + columnCorrection));
      //System.out.println("PUT " + textPos + " -> " + loc.getLocation());
    }
  }
View Full Code Here


      fail();
    } catch (RuntimeException ignored) {}
  }

  private int checkLocation(int line, int col, String text) {
    return LocationHelper.absolutePositionFor(new Location("", line, col), text);
  }
View Full Code Here

TOP

Related Classes of xtc.tree.Location

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.