Enum resast::Program [−][src]
pub enum Program<'a> {
Mod(Vec<ProgramPart<'a>>),
Script(Vec<ProgramPart<'a>>),
}
Expand description
A fully parsed javascript program.
It is essentially a collection of ProgramPart
s
with a flag denoting if the representation is
a ES6 Mod or a Script.
Variants
Mod(Vec<ProgramPart<'a>>)
Tuple Fields
0: Vec<ProgramPart<'a>>
An ES6 Mod
Script(Vec<ProgramPart<'a>>)
Tuple Fields
0: Vec<ProgramPart<'a>>
Not an ES6 Mod
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Program<'a>
impl<'a> UnwindSafe for Program<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more