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