MCPcopy Index your code
hub / github.com/bazelbuild/bazel / Lexer

Method Lexer

src/main/java/net/starlark/java/syntax/Lexer.java:102–113  ·  view source on GitHub ↗
(ParserInput input, List<SyntaxError> errors, FileOptions options)

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 4

createMethod · 0.95
getContentMethod · 0.80
getFileMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected