[][src]Struct deno_lint::linter::Context

pub struct Context {
    pub file_name: String,
    pub diagnostics: Arc<Mutex<Vec<LintDiagnostic>>>,
    pub source_map: Arc<SourceMap>,
    pub leading_comments: CommentMap,
    pub trailing_comments: CommentMap,
    pub ignore_directives: Vec<IgnoreDirective>,
}

Fields

file_name: Stringdiagnostics: Arc<Mutex<Vec<LintDiagnostic>>>source_map: Arc<SourceMap>leading_comments: CommentMaptrailing_comments: CommentMapignore_directives: Vec<IgnoreDirective>

Implementations

impl Context[src]

pub fn create_diagnostic(
    &self,
    span: Span,
    code: &str,
    message: &str
) -> LintDiagnostic
[src]

pub fn add_diagnostic(&self, span: Span, code: &str, message: &str)[src]

Trait Implementations

impl Clone for Context[src]

Auto Trait Implementations

impl !RefUnwindSafe for Context

impl Send for Context

impl Sync for Context

impl Unpin for Context

impl !UnwindSafe for Context

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

impl<T> Node for T where
    T: Any + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.