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

Method maybe_child

src/expr-parser/src/parser.rs:1625–1636  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1623 }
1624
1625 fn maybe_child(&self) -> syn::Result<()> {
1626 let start = self.stream.span().start();
1627 if start.line <= self.parent.line {
1628 let msg = format!("child expected at line > {}", self.parent.line);
1629 Err(Error::new(self.stream.span(), msg))?
1630 }
1631 if start.column != self.parent.column + 2 {
1632 let msg = format!("child expected at column {}", self.parent.column + 2);
1633 Err(Error::new(self.stream.span(), msg))?
1634 }
1635 Ok(())
1636 }
1637 }
1638}
1639

Callers 2

parse_oneMethod · 0.80
parse_manyMethod · 0.80

Calls 2

spanMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected