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

Method parse_many

src/expr-parser/src/parser.rs:1613–1623  ·  view source on GitHub ↗
(
            &self,
            ctx: C,
            function: fn(C, ParseStream) -> syn::Result<T>,
        )

Source from the content-addressed store, hash-verified

1611 }
1612
1613 pub fn parse_many<C: Copy, T>(
1614 &self,
1615 ctx: C,
1616 function: fn(C, ParseStream) -> syn::Result<T>,
1617 ) -> syn::Result<Vec<T>> {
1618 let mut inputs = vec![self.parse_one(ctx, function)?];
1619 while self.maybe_child().is_ok() {
1620 inputs.push(function(ctx, self.stream)?);
1621 }
1622 Ok(inputs)
1623 }
1624
1625 fn maybe_child(&self) -> syn::Result<()> {
1626 let start = self.stream.span().start();

Callers 7

parse_constantFunction · 0.80
parse_let_or_letrec_oldFunction · 0.80
parse_let_or_letrecFunction · 0.80
parse_cross_joinFunction · 0.80
parse_joinFunction · 0.80
parse_unionFunction · 0.80
parse_def_sourceFunction · 0.80

Calls 2

maybe_childMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected