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

Method bufferSlice

src/main/java/net/starlark/java/syntax/Lexer.java:1045–1047  ·  view source on GitHub ↗

Returns a string containing the part of the source buffer beginning at offset start and ending immediately before offset end (so the length of the resulting string is end - start).

(int start, int end)

Source from the content-addressed store, hash-verified

1043 * end - start}).
1044 */
1045 String bufferSlice(int start, int end) {
1046 return new String(this.buffer, start, end - start);
1047 }
1048
1049 // TODO(adonovan): don't retain comments unconditionally.
1050 private Comment addComment(int start, int end) {

Callers 6

getRawMethod · 0.95
stringLiteralMethod · 0.95
scanIdentifierMethod · 0.95
addCommentMethod · 0.95
makeErrorExpressionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected