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

lib/es_tree/literal.ex

defmodule ESTree.Literal do
@type t :: %ESTree.Literal{
type: binary,
loc: ESTree.SourceLocation.t | nil,
value: binary | boolean | number | nil,
regex: ESTree.Regex.t | nil
}
defstruct type: "Literal",
loc: nil,
value: nil,
regex: nil
end