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 variable_declaration.ex
Raw

lib/es_tree/variable_declaration.ex

defmodule ESTree.VariableDeclaration do
@type t :: %ESTree.VariableDeclaration{
type: binary,
loc: ESTree.SourceLocation.t | nil,
declarations: [ESTree.VariableDeclarator.t],
kind: :var | :let | :const
}
defstruct type: "VariableDeclaration",
loc: nil,
declarations: [],
kind: :var
end