[−][src]Struct deno_lint::linter::Linter
Fields
ast_parser: AstParser
ignore_file_directive: String
ignore_diagnostic_directives: Vec<String>
lint_unused_ignore_directives: bool
Implementations
impl Linter
[src]
pub fn default() -> Self
[src]
pub fn new(
ignore_file_directive: String,
ignore_diagnostic_directives: Vec<String>,
lint_unused_ignore_directives: bool
) -> Self
[src]
ignore_file_directive: String,
ignore_diagnostic_directives: Vec<String>,
lint_unused_ignore_directives: bool
) -> Self
pub fn lint(
&mut self,
file_name: String,
source_code: String,
syntax: Syntax,
rules: Vec<Box<dyn LintRule>>
) -> Result<Vec<LintDiagnostic>, SwcDiagnosticBuffer>
[src]
&mut self,
file_name: String,
source_code: String,
syntax: Syntax,
rules: Vec<Box<dyn LintRule>>
) -> Result<Vec<LintDiagnostic>, SwcDiagnosticBuffer>
Auto Trait Implementations
impl !RefUnwindSafe for Linter
impl Send for Linter
impl Sync for Linter
impl Unpin for Linter
impl !UnwindSafe for Linter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Node for T where
T: Any + ?Sized,
[src]
T: Any + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,