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

lib/es_tree/variable_declarator.ex

defmodule ESTree.VariableDeclarator do
@type t :: %ESTree.VariableDeclarator{
type: binary,
loc: ESTree.SourceLocation.t | nil,
id: ESTree.Pattern.t ,
init: ESTree.Expression.t | nil
}
defstruct type: "VariableDeclarator",
loc: nil,
id: %ESTree.EmptyExpression{},
init: nil
end