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

Function function_pointer_constant

libs/@local/hashql/eval/src/postgres/error.rs:253–268  ·  view source on GitHub ↗
(span: SpanId)

Source from the content-addressed store, hash-verified

251
252#[coverage(off)]
253pub(super) fn function_pointer_constant(span: SpanId) -> EvalDiagnostic {
254 let mut diagnostic = Diagnostic::new(
255 category(PostgresDiagnosticCategory::FunctionPointerConstant),
256 Severity::Bug,
257 )
258 .primary(Label::new(
259 span,
260 "function pointer cannot be compiled to SQL",
261 ));
262
263 diagnostic.add_message(Message::note(
264 "the statement placement pass should have rejected this from the Postgres backend",
265 ));
266
267 diagnostic
268}
269
270#[coverage(off)]
271pub(super) fn projected_assignment(span: SpanId) -> EvalDiagnostic {

Callers 1

compile_constantMethod · 0.85

Calls 3

primaryMethod · 0.80
add_messageMethod · 0.80
categoryFunction · 0.70

Tested by

no test coverage detected