[−][src]Struct deno_lint::swc_util::AstParser
Low-level utility structure with common AST parsing functions.
Allows to build more complicated parser by providing a callback
to parse_module
.
Fields
buffered_error: SwcErrorBuffer
source_map: Arc<SourceMap>
handler: Handler
globals: Globals
Implementations
impl AstParser
[src]
pub fn new() -> Self
[src]
pub fn parse_module<F, R>(
&self,
file_name: &str,
syntax: Syntax,
source_code: &str,
callback: F
) -> R where
F: FnOnce(Result<Module, SwcDiagnosticBuffer>, Comments) -> R,
[src]
&self,
file_name: &str,
syntax: Syntax,
source_code: &str,
callback: F
) -> R where
F: FnOnce(Result<Module, SwcDiagnosticBuffer>, Comments) -> R,
pub fn get_span_location(&self, span: Span) -> Loc
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AstParser
impl Send for AstParser
impl Sync for AstParser
impl Unpin for AstParser
impl !UnwindSafe for AstParser
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>,