Struct rslint_core::DirectiveParser [−][src]
pub struct DirectiveParser<'store, 'file> { /* fields omitted */ }
Implementations
Create a new DirectivesParser
with a root of a file which will
use all default rules to check the rule names of a directive.
Panics
If the given root
is not SCRIPT
or MODULE
.
pub fn new_with_store(
root: SyntaxNode,
file: &'file File,
store: impl Into<Option<&'store CstRuleStore>>
) -> Self
pub fn new_with_store(
root: SyntaxNode,
file: &'file File,
store: impl Into<Option<&'store CstRuleStore>>
) -> Self
Create a new DirectivesParser
with a root of a file and a store of rules.
Panics
If the given root
is not SCRIPT
or MODULE
.