Struct dprint_swc_ecma_ast_view::ScriptInfo [−][src]
pub struct ScriptInfo<'a> {
pub script: &'a Script,
pub source_file: Option<&'a dyn SourceFile>,
pub tokens: Option<&'a [TokenAndSpan]>,
pub comments: Option<Comments<'a>>,
}
Fields
script: &'a Script
source_file: Option<&'a dyn SourceFile>
tokens: Option<&'a [TokenAndSpan]>
comments: Option<Comments<'a>>
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ScriptInfo<'a>
impl<'a> !Send for ScriptInfo<'a>
impl<'a> !Sync for ScriptInfo<'a>
impl<'a> Unpin for ScriptInfo<'a>
impl<'a> !UnwindSafe for ScriptInfo<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more