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

Method build

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

finishFunction · 0.85
OkInterface · 0.85
LiteralInterface · 0.85
insert_rangeMethod · 0.45

Tested by

no test coverage detected