Trait LateLintPass

Source
pub trait LateLintPass<'hir>: Send + Sync {
Show 14 methods // Provided methods fn check_nested_source( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _id: SourceId, ) { ... } fn check_nested_item( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _id: &'hir ItemId, ) { ... } fn check_nested_contract( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _id: &'hir ContractId, ) { ... } fn check_nested_function( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _id: &'hir FunctionId, ) { ... } fn check_nested_var( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _id: &'hir VariableId, ) { ... } fn check_item( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _item: Item<'hir, 'hir>, ) { ... } fn check_contract( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _contract: &'hir Contract<'hir>, ) { ... } fn check_function( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _func: &'hir Function<'hir>, ) { ... } fn check_modifier( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _mod: &'hir Modifier<'hir>, ) { ... } fn check_var( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _var: &'hir Variable<'hir>, ) { ... } fn check_expr( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _expr: &'hir Expr<'hir>, ) { ... } fn check_call_args( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _args: &'hir CallArgs<'hir>, ) { ... } fn check_stmt( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _stmt: &'hir Stmt<'hir>, ) { ... } fn check_ty( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _ty: &'hir Type<'hir>, ) { ... }
}
Expand description

Trait for lints that operate on the HIR (High-level Intermediate Representation). Its methods mirror hir::visit::Visit, with the addition of LintCotext.

Provided Methods§

Source

fn check_nested_source( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _id: SourceId, )

Source

fn check_nested_item( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _id: &'hir ItemId, )

Source

fn check_nested_contract( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _id: &'hir ContractId, )

Source

fn check_nested_function( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _id: &'hir FunctionId, )

Source

fn check_nested_var( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _id: &'hir VariableId, )

Source

fn check_item( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _item: Item<'hir, 'hir>, )

Source

fn check_contract( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _contract: &'hir Contract<'hir>, )

Source

fn check_function( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _func: &'hir Function<'hir>, )

Source

fn check_modifier( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _mod: &'hir Modifier<'hir>, )

Source

fn check_var( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _var: &'hir Variable<'hir>, )

Source

fn check_expr( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _expr: &'hir Expr<'hir>, )

Source

fn check_call_args( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _args: &'hir CallArgs<'hir>, )

Source

fn check_stmt( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _stmt: &'hir Stmt<'hir>, )

Source

fn check_ty( &mut self, _ctx: &LintContext<'_>, _hir: &'hir Hir<'hir>, _ty: &'hir Type<'hir>, )

Implementors§