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

Method skipTripleQuote

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

Returns true if current position is in the middle of a triple quote delimiter (3 x quot), and advances 'pos' by two if so.

(char quot)

Source from the content-addressed store, hash-verified

263 * delimiter (3 x quot), and advances 'pos' by two if so.
264 */
265 private boolean skipTripleQuote(char quot) {
266 if (peek(0) == quot && peek(1) == quot) {
267 pos += 2;
268 return true;
269 } else {
270 return false;
271 }
272 }
273
274 /**
275 * Scans a string literal delimited by 'quot', containing escape sequences.

Callers 2

escapedStringLiteralMethod · 0.95
stringLiteralMethod · 0.95

Calls 1

peekMethod · 0.95

Tested by

no test coverage detected