[][src]Trait libslide::linter::LintRule

pub trait LintRule<'a, G> where
    Self: DiagnosticRecord,
    G: Grammar
{ fn lint(grammar: &G, source: &'a str) -> Vec<Diagnostic>; }

Describes a slide program linter. A Linter is implemented on a slide Grammar.

Required methods

fn lint(grammar: &G, source: &'a str) -> Vec<Diagnostic>

Lints a grammar given the original source code of the program.

Loading content...

Implementors

impl<'a> LintRule<'a, RcExprPat> for SimilarNamesLinter<'a>[src]

impl<'a> LintRule<'a, StmtList> for HomogenousAssignmentLinter<'a>[src]

impl<'a> LintRule<'a, StmtList> for RedundantNestingLinter<'a>[src]

impl<'a> LintRule<'a, StmtList> for UnarySeriesLinter<'a>[src]

Loading content...