MCPcopy Create free account
hub / github.com/hashintel/hash / build

Method build

libs/@local/hashql/syntax-jexpr/src/parser/object/tuple.rs:60–72  ·  view source on GitHub ↗
(
        mut self,
        state: &mut ParserState<'heap, '_, '_>,
        span: TextRange,
    )

Source from the content-addressed store, hash-verified

58 }
59
60 fn build(
61 mut self,
62 state: &mut ParserState<'heap, '_, '_>,
63 span: TextRange,
64 ) -> Result<Expr<'heap>, ParserDiagnostic> {
65 self.expr.r#type = TypeNode::finish(self.r#type, state);
66
67 Ok(Expr {
68 id: NodeId::PLACEHOLDER,
69 span: state.insert_range(span),
70 kind: ExprKind::Tuple(self.expr),
71 })
72 }
73}
74
75fn parse_tuple<'heap>(

Callers

nothing calls this directly

Calls 4

finishFunction · 0.85
OkInterface · 0.85
TupleClass · 0.50
insert_rangeMethod · 0.45

Tested by

no test coverage detected