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

Method build

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

finishFunction · 0.85
OkInterface · 0.85
DictClass · 0.50
insert_rangeMethod · 0.45

Tested by

no test coverage detected