Skip to main content

resolve_targets

Function resolve_targets 

Source
pub fn resolve_targets(
    expr: &Expr,
    is_known: impl Fn(&Expr) -> bool,
) -> Result<(), IntentError>
Expand description

Resolve every target an Intent references against is_known, returning a diagnostic for the first unknown target. A failed resolution means the editor must not produce an operation: nothing mutates.