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

lib/es_tree/switch_case.ex

defmodule ESTree.SwitchCase do
@type t :: %ESTree.SwitchCase{
type: binary,
loc: ESTree.SourceLocation.t | nil,
test: ESTree.Expression.t | nil,
consequent: [ESTree.Statement.t]
}
defstruct type: "SwitchCase",
loc: nil,
test: nil,
consequent: []
end