MCPcopy Create free account
hub / github.com/PRQL/prql / with_span

Method with_span

prqlc/prqlc-parser/src/error.rs:192–195  ·  view source on GitHub ↗
(mut self, span: Option<Span>)

Source from the content-addressed store, hash-verified

190 }
191
192 fn with_span(mut self, span: Option<Span>) -> Self {
193 self.span = span;
194 self
195 }
196
197 fn with_code(mut self, code: &'static str) -> Self {
198 self.code = Some(code);

Callers 15

rich_error_to_errorFunction · 0.80
test_error_messagesFunction · 0.80
process_array_inFunction · 0.80
process_date_truncFunction · 0.80
process_date_to_textFunction · 0.80
translate_starFunction · 0.80
unpack_as_int_literalFunction · 0.80
translate_operator_exprFunction · 0.80
try_into_exprsFunction · 0.80
try_castMethod · 0.80
lower_to_irFunction · 0.80
lower_table_refMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_error_messagesFunction · 0.64