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

Method change_category

libs/@local/hashql/syntax-jexpr/src/error.rs:58–63  ·  view source on GitHub ↗
(
        self,
        category: impl FnOnce(Self::DiagnosticCategory) -> D,
    )

Source from the content-addressed store, hash-verified

56 type Span = S;
57
58 fn change_category<D>(
59 self,
60 category: impl FnOnce(Self::DiagnosticCategory) -> D,
61 ) -> Result<T, Diagnostic<D, Self::Span, K>> {
62 self.map_err(|diagnostic| diagnostic.map_category(category))
63 }
64}

Callers 15

parse_exprMethod · 0.80
finishMethod · 0.80
parse_exprFunction · 0.80
verify_no_repeatFunction · 0.80
visit_arrayFunction · 0.80
error_in_callbackFunction · 0.80
parse_labelled_argumentFunction · 0.80
parse_arrayFunction · 0.80
parse_dict_arrayFunction · 0.80
parse_dictFunction · 0.80
visit_object_entryFunction · 0.80

Calls 2

map_errMethod · 0.80
map_categoryMethod · 0.45

Tested by 2

error_in_callbackFunction · 0.64
error_in_callbackFunction · 0.64