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

Method parse_keyword

src/sql-parser/src/parser.rs:1842–1849  ·  view source on GitHub ↗
(&mut self, kw: Keyword)

Source from the content-addressed store, hash-verified

1840 /// Look for an expected keyword and consume it if it exists
1841 #[must_use]
1842 fn parse_keyword(&mut self, kw: Keyword) -> bool {
1843 if self.peek_keyword(kw) {
1844 self.next_token();
1845 true
1846 } else {
1847 false
1848 }
1849 }
1850
1851 /// Look for an expected sequence of keywords and consume them if they exist
1852 #[must_use]

Callers 15

parse_functionMethod · 0.80
parse_window_frameMethod · 0.80
parse_case_exprMethod · 0.80
parse_trim_exprMethod · 0.80
parse_interval_valueMethod · 0.80
parse_infixMethod · 0.80
parse_substring_exprMethod · 0.80
parse_likeMethod · 0.80
expect_keywordMethod · 0.80
parse_createMethod · 0.80

Calls 2

peek_keywordMethod · 0.80
next_tokenMethod · 0.80

Tested by

no test coverage detected