public Lexer(ParserInputSource input, EventHandler eventHandler, boolean parsePython) { this( input, eventHandler, parsePython, LineNumberTable.create(input.getContent(), input.getPath())); }
public Lexer(ParserInputSource input, EventHandler eventHandler) { this( input, eventHandler, /*parsePython=*/ false, LineNumberTable.create(input.getContent(), input.getPath())); }
@Override public LineAndColumn getEndLineAndColumn() { return lineNumberTable.getLineAndColumn(getEndOffset()); }
@Override public PathFragment getPath() { PathFragment path = lineNumberTable.getPath(getStartOffset()); return path; }