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

lib/es_tree/switch_statement.ex

defmodule ESTree.SwitchStatement do
@type t :: %ESTree.SwitchStatement{
type: binary,
loc: ESTree.SourceLocation.t | nil,
discriminant: ESTree.Expression.t ,
cases: [ESTree.SwitchCase.t]
}
defstruct type: "SwitchStatement",
loc: nil,
discriminant: %ESTree.EmptyExpression{},
cases: []
end