MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / peek_token

Method peek_token

src/sql-parser/src/parser.rs:1726–1728  ·  view source on GitHub ↗

Return the first non-whitespace token that has not yet been processed (or None if reached end-of-file)

(&self)

Source from the content-addressed store, hash-verified

1724 /// Return the first non-whitespace token that has not yet been processed
1725 /// (or None if reached end-of-file)
1726 fn peek_token(&self) -> Option<Token> {
1727 self.peek_nth_token(0)
1728 }
1729
1730 fn peek_keyword(&self, kw: Keyword) -> bool {
1731 match self.peek_token() {

Callers 15

parse_statementsMethod · 0.80
parse_prefixMethod · 0.80
parse_infixMethod · 0.80
parse_subscriptMethod · 0.80
get_next_precedenceMethod · 0.80
peek_keywordMethod · 0.80
peek_one_of_keywordsMethod · 0.80
parse_one_of_keywordsMethod · 0.80
expect_keywordMethod · 0.80

Calls 1

peek_nth_tokenMethod · 0.80

Tested by

no test coverage detected