Пример #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;
 }