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

Method peek_one_of_keywords

src/sql-parser/src/parser.rs:1755–1760  ·  view source on GitHub ↗
(&self, kws: &[Keyword])

Source from the content-addressed store, hash-verified

1753 }
1754
1755 fn peek_one_of_keywords(&self, kws: &[Keyword]) -> bool {
1756 match self.peek_token() {
1757 Some(Token::Keyword(k)) => kws.contains(&k),
1758 _ => false,
1759 }
1760 }
1761
1762 /// Returns whether the sequence of keywords is found at any point before
1763 /// the end of the unprocessed tokens.

Callers 1

Calls 2

peek_tokenMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected