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

There is only one enum possible for program.

Fields of Program

The list of statements or declarations made by the source text.

This represents how the source is parsed. A module is parsed in strict mode, which disallows things in the parser level earlier on.

The location of the entire program.

Trait Implementations

impl Debug for Program
[src]

Formats the value using the given formatter. Read more

impl Clone for Program
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Program
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Program

impl Sync for Program