Skip to main content

locate_typecheck

Function locate_typecheck 

Source
pub(crate) fn locate_typecheck(
    kind: &ObjectTypeCheckErrorKind,
    source: &str,
) -> Option<Range<usize>>
Expand description

Locate the byte range a typecheck error points at within source.

Dispatches to locate_plan / locate_catalog for the wrapped mz_sql error, or returns the parser’s byte offset directly. Internal variants have no locatable position.