Function rslint_core::run_rule[][src]

pub fn run_rule(
    rule: &dyn CstRule,
    file_id: usize,
    root: SyntaxNode,
    verbose: bool,
    directives: &[Directive],
    src: Arc<str>
) -> RuleResult
Expand description

Run a single run on an entire parsed file.

Panics

Panics if root’s kind is not SCRIPT or MODULE