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

lib/es_tree/conditional_statement.ex

defmodule ESTree.ConditionalStatement do
@type t :: %ESTree.ConditionalStatement{
type: binary,
loc: ESTree.SourceLocation.t | nil,
test: ESTree.Expression.t,
alternate: ESTree.Expression.t,
consequent: ESTree.Expression.t
}
defstruct type: "ConditionalStatement",
loc: nil,
test: %ESTree.EmptyExpression{},
alternate: %ESTree.EmptyExpression{},
consequent: %ESTree.EmptyExpression{}
end