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

Method build

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

finishFunction · 0.85
OkInterface · 0.85
StructClass · 0.50
insert_rangeMethod · 0.45

Tested by

no test coverage detected