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

Method parse

src/expr-parser/src/parser.rs:1274–1290  ·  view source on GitHub ↗
(input: ParseStream)

Source from the content-addressed store, hash-verified

1272
1273 impl Parse for Parsed<Row> {
1274 fn parse(input: ParseStream) -> syn::Result<Self> {
1275 let mut row = Row::default();
1276 let mut packer = ParseRow::new(&mut row);
1277
1278 loop {
1279 if input.is_empty() {
1280 break;
1281 }
1282 packer.parse_datum(input)?;
1283 if input.is_empty() {
1284 break;
1285 }
1286 input.parse::<syn::Token![,]>()?;
1287 }
1288
1289 Ok(Parsed(row))
1290 }
1291 }
1292
1293 impl From<Parsed<Row>> for Row {

Calls 3

ParsedClass · 0.85
parse_datumMethod · 0.80
is_emptyMethod · 0.45

Tested by 13

test_sqlfunc_strFunction · 0.36
serve_with_triggerMethod · 0.36
ws_addrMethod · 0.36
internal_ws_addrMethod · 0.36
test_load_generatorFunction · 0.36
test_explain_as_ofFunction · 0.36
test_password_auth_httpFunction · 0.36