Enum ecmascript::ast::Program [−][src]
pub enum Program { Program { body: Vec<Statement>, source_type: SourceType, loc: Option<SourceLocation>, }, }
This is the main entry point to the syntax tree. A program is a list of statements, and statements include declarations.
Variants
Program
There is only one enum possible for program.
Fields of Program
body: Vec<Statement> | The list of statements or declarations made by the source text. |
source_type: SourceType | This represents how the source is parsed. A module is parsed in strict mode, which disallows things in the parser level earlier on. |
loc: Option<SourceLocation> | The location of the entire program. |
Trait Implementations
impl Debug for Program
[src]
impl Debug for Program
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Program
[src]
impl Clone for Program
fn clone(&self) -> Program
[src]
fn clone(&self) -> Program
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Program
[src]
impl PartialEq for Program