MCPcopy Create free account
hub / github.com/PSeitz/dep_graph_rs / parse_expr

Method parse_expr

src/query.rs:156–163  ·  view source on GitHub ↗
(mut self)

Source from the content-addressed store, hash-verified

154 }
155
156 pub fn parse_expr(mut self) -> Result<Expr, String> {
157 let expr = self.parse_or()?;
158 self.skip_whitespace();
159 if !self.eof() {
160 return Err("unexpected trailing characters in query".into());
161 }
162 Ok(expr)
163 }
164
165 fn eof(&self) -> bool {
166 self.i >= self.s.len()

Callers 1

parse_queryFunction · 0.80

Calls 3

parse_orMethod · 0.80
skip_whitespaceMethod · 0.80
eofMethod · 0.80

Tested by

no test coverage detected