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

Method getText

src/test/java/net/starlark/java/syntax/ParserTest.java:123–125  ·  view source on GitHub ↗
(String text, Node node)

Source from the content-addressed store, hash-verified

121 }
122
123 private static String getText(String text, Node node) {
124 return text.substring(node.getStartOffset(), node.getEndOffset());
125 }
126
127 private static void assertLocation(int start, int end, Node node) throws Exception {
128 int actualStart = node.getStartOffset();

Calls 2

getStartOffsetMethod · 0.45
getEndOffsetMethod · 0.45

Tested by

no test coverage detected