(ParserInput input, List<SyntaxError> errors, FileOptions options)
| 100 | // Constructs a lexer which tokenizes the parser input. |
| 101 | // Errors are appended to errors. |
| 102 | Lexer(ParserInput input, List<SyntaxError> errors, FileOptions options) { |
| 103 | this.locs = FileLocations.create(input.getContent(), input.getFile()); |
| 104 | this.buffer = input.getContent(); |
| 105 | this.pos = 0; |
| 106 | this.errors = errors; |
| 107 | this.options = options; |
| 108 | this.checkIndentation = true; |
| 109 | this.dents = 0; |
| 110 | this.lineOnlyWhitespaceOrComments = true; |
| 111 | |
| 112 | indentStack.push(0); |
| 113 | } |
| 114 | |
| 115 | ImmutableList<Comment> getComments() { |
| 116 | return comments.build(); |
nothing calls this directly
no test coverage detected