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

lib/es_tree/method_definition.ex

defmodule ESTree.MethodDefinition do
@type t :: %ESTree.MethodDefinition{
type: binary,
loc: ESTree.SourceLocation.t | nil,
key: ESTree.Identifier.t,
value: ESTree.FunctionExpression.t,
kind: :"" | :get | :set,
computed: boolean,
static: boolean
}
defstruct type: "MethodDefinition",
loc: nil,
key: %ESTree.Identifier{},
value: %ESTree.FunctionExpression{},
kind: :"",
computed: false,
static: false
end