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

Method addComment

src/main/java/net/starlark/java/syntax/Lexer.java:1050–1055  ·  view source on GitHub ↗
(int start, int end)

Source from the content-addressed store, hash-verified

1048
1049 // TODO(adonovan): don't retain comments unconditionally.
1050 private Comment addComment(int start, int end) {
1051 String content = bufferSlice(start, end);
1052 Comment comment = new Comment(locs, start, content);
1053 comments.add(comment);
1054 return comment;
1055 }
1056}

Callers 3

computeIndentationMethod · 0.95
docCommentsMethod · 0.95
tokenizeMethod · 0.95

Calls 2

bufferSliceMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected