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

Method parse_keywords

src/sql-parser/src/parser.rs:1853–1860  ·  view source on GitHub ↗
(&mut self, keywords: &[Keyword])

Source from the content-addressed store, hash-verified

1851 /// Look for an expected sequence of keywords and consume them if they exist
1852 #[must_use]
1853 fn parse_keywords(&mut self, keywords: &[Keyword]) -> bool {
1854 if self.peek_keywords(keywords) {
1855 self.index += keywords.len();
1856 true
1857 } else {
1858 false
1859 }
1860 }
1861
1862 fn parse_at_most_one_keyword(
1863 &mut self,

Callers 15

parse_functionMethod · 0.80
parse_createMethod · 0.80
parse_formatMethod · 0.80
parse_avro_schemaMethod · 0.80
parse_protobuf_schemaMethod · 0.80
parse_create_sourceMethod · 0.80
parse_key_constraintMethod · 0.80

Calls 2

peek_keywordsMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected