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

Method eat

src/expr-parser/src/parser.rs:1526–1533  ·  view source on GitHub ↗
(&self, t: T)

Source from the content-addressed store, hash-verified

1524 }
1525
1526 fn eat<T: Eat>(&self, t: T) -> bool {
1527 if self.peek(t) {
1528 self.parse::<T::Token>().unwrap();
1529 true
1530 } else {
1531 false
1532 }
1533 }
1534
1535 fn eat2<T1: Eat, T2: Eat>(&self, t1: T1, t2: T2) -> bool {
1536 if self.peek(t1) && self.peek2(t2) {

Callers 11

parse_distinctFunction · 0.80
parse_reduceFunction · 0.80
parse_top_kFunction · 0.80
parse_exprFunction · 0.80
parse_column_orderFunction · 0.80
parse_literal_okFunction · 0.80
parse_join_equivalencesFunction · 0.80
parse_datumMethod · 0.80
parse_analysesFunction · 0.80
parse_column_typeFunction · 0.80
parse_def_sourceFunction · 0.80

Calls 2

unwrapMethod · 0.80
peekMethod · 0.45

Tested by

no test coverage detected