Packages

Represents the JavaScript AST from the ESTree spec. Includes tools for building an AST and generating code from it.

Current section

Files

Jump to
estree lib es_tree program.ex
Raw

lib/es_tree/program.ex

defmodule ESTree.Program do
@type t :: %ESTree.Program{
type: binary,
loc: ESTree.SourceLocation.t | nil,
body: [ESTree.Statement.t ],
sourceType: :script | :module
}
defstruct type: "Program", loc: nil, body: [], sourceType: :module
end