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

lib/es_tree/if_statement.ex

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