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

lib/es_tree/function_expression.ex

defmodule ESTree.FunctionExpression do
@type t :: %ESTree.FunctionExpression{
type: binary,
loc: ESTree.SourceLocation.t | nil,
params: [ESTree.Pattern.t],
defaults: [ ESTree.Expression.t ],
rest: ESTree.Identifier.t | nil,
body: ESTree.BlockStatement.t,
generator: boolean,
expression: boolean
}
defstruct type: "FunctionExpression",
loc: nil,
params: [],
defaults: [],
rest: nil,
body: %ESTree.BlockStatement{},
generator: false,
expression: false
end