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

Method expectTok

core/src/main/java/io/questdb/griffin/SqlParser.java:822–826  ·  view source on GitHub ↗
(GenericLexer lexer, CharSequence tok, CharSequence expected)

Source from the content-addressed store, hash-verified

820 }
821
822 private void expectTok(GenericLexer lexer, CharSequence tok, CharSequence expected) throws SqlException {
823 if (tok == null || !Chars.equalsLowerCaseAscii(tok, expected)) {
824 throw SqlException.position(lexer.lastTokenPosition()).put('\'').put(expected).put("' expected");
825 }
826 }
827
828 private void expectTok(GenericLexer lexer, CharSequence expected) throws SqlException {
829 CharSequence tok = optTok(lexer);

Callers 15

parseCompileViewMethod · 0.95
parseCopyMethod · 0.95
parseCreateMethod · 0.95
parseCreateMatViewMethod · 0.95
parseCreateTableMethod · 0.95
parseCreateViewMethod · 0.95

Calls 7

equalsLowerCaseAsciiMethod · 0.95
positionMethod · 0.95
optTokMethod · 0.95
equalsMethod · 0.95
lastTokenPositionMethod · 0.80
putMethod · 0.65
getPositionMethod · 0.65

Tested by

no test coverage detected