MCPcopy Create free account
hub / github.com/questdb/questdb / tok

Method tok

core/src/main/java/io/questdb/griffin/SqlParser.java:5206–5213  ·  view source on GitHub ↗
(GenericLexer lexer, String expectedList)

Source from the content-addressed store, hash-verified

5204 }
5205
5206 private @NotNull CharSequence tok(GenericLexer lexer, String expectedList) throws SqlException {
5207 final int pos = lexer.getPosition();
5208 CharSequence tok = optTok(lexer);
5209 if (tok == null) {
5210 throw SqlException.position(pos).put(expectedList).put(" expected");
5211 }
5212 return tok;
5213 }
5214
5215 private @NotNull CharSequence tokIncludingLocalBrace(GenericLexer lexer, String expectedList) throws SqlException {
5216 final int pos = lexer.getPosition();

Callers 15

expectBooleanMethod · 0.95
expectByMethod · 0.95
expectDoubleMethod · 0.95
expectIntMethod · 0.95
expectIntervalLiteralMethod · 0.95
expectLiteralMethod · 0.95
expectLongMethod · 0.95
expectObservationMethod · 0.95
expectOffsetMethod · 0.95
expectSampleMethod · 0.95
expectStringLiteralMethod · 0.95

Calls 4

optTokMethod · 0.95
positionMethod · 0.95
getPositionMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected