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

lib/es_tree/property.ex

defmodule ESTree.Property do
@type t :: %ESTree.Property{
type: binary,
loc: ESTree.SourceLocation.t | nil,
key: ESTree.Expression.t,
value: ESTree.Expression.t,
kind: :init | :get | :set,
method: boolean,
shorthand: boolean,
computed: boolean
}
defstruct type: "Property",
loc: nil,
key: %ESTree.Literal{},
value: %ESTree.EmptyExpression{},
kind: :init,
method: false,
shorthand: false,
computed: false
end