Skip to main content

make_resource_diagnostic_at_source

Function make_resource_diagnostic_at_source 

Source
pub fn make_resource_diagnostic_at_source(
    rule_id: &str,
    message: &str,
    model: &SemanticModel,
    resource_id: &str,
    prop_path: &str,
    source_path: &str,
    suggested_fix: Option<&str>,
) -> Diagnostic
Expand description

Builds a resource diagnostic whose public property path and source-span anchor differ. Scenario-aware rules use this when an effective path maps to an authored intrinsic branch.