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.Literal.t | ESTree.Identifier.t,
value: ESTree.Expression.t ,
kind: :init | :get | :set
}
defstruct type: "Property",
loc: nil,
key: %ESTree.Literal{},
value: %ESTree.EmptyExpression{},
kind: :init
end