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

lib/es_tree/unary_expression.ex

defmodule ESTree.UnaryExpression do
@type t :: %ESTree.UnaryExpression{
type: binary,
loc: ESTree.SourceLocation.t | nil,
operator: ESTree.unary_operator,
prefix: boolean,
argument: ESTree.Expression.t
}
defstruct type: "UnaryExpression",
loc: nil,
operator: nil,
prefix: false,
argument: %ESTree.EmptyExpression{}
end