Struct dprint_swc_ecma_ast_view::Script[][src]

pub struct Script<'a> {
    pub source_file: Option<&'a SourceFile>,
    pub tokens: Option<&'a TokenContainer<'a>>,
    pub comments: Option<&'a CommentContainer<'a>>,
    pub inner: &'a Script,
    pub body: Vec<Stmt<'a>>,
}

Fields

source_file: Option<&'a SourceFile>tokens: Option<&'a TokenContainer<'a>>comments: Option<&'a CommentContainer<'a>>inner: &'a Scriptbody: Vec<Stmt<'a>>

Implementations

impl<'a> Script<'a>[src]

pub fn shebang(&self) -> &Option<JsWord>[src]

Trait Implementations

impl<'a> CastableNode<'a> for Script<'a>[src]

impl<'a> Clone for Script<'a>[src]

impl<'a> From<&'_ Script<'a>> for Node<'a>[src]

impl<'a> NodeTrait<'a> for Script<'a>[src]

impl<'a> RootNode<'a> for Script<'a>[src]

impl<'a> RootNode<'a> for &Script<'a>[src]

impl<'a> Spanned for Script<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Script<'a>

impl<'a> !Send for Script<'a>

impl<'a> !Sync for Script<'a>

impl<'a> Unpin for Script<'a>

impl<'a> !UnwindSafe for Script<'a>

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> 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

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

impl<T> Sync for T where
    T: ?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.