estree v2.7.0 ESTree.Tools.Builder View Source
Functions to make building the Nodes easier
Link to this section Summary
Link to this section Functions
Link to this function
array_expression(elements, loc \\ nil)
View Source
array_expression(elements, loc \\ nil)
View Source
array_expression([ESTree.Expression.t() | nil], ESTree.SourceLocation.t() | nil) ::
ESTree.ArrayExpression.t()
array_expression([ESTree.Expression.t() | nil], ESTree.SourceLocation.t() | nil) :: ESTree.ArrayExpression.t()
Link to this function
array_pattern(elements, loc \\ nil)
View Source
array_pattern(elements, loc \\ nil)
View Source
array_pattern([ESTree.Pattern.t() | nil], ESTree.SourceLocation.t() | nil) ::
ESTree.ArrayPattern.t()
array_pattern([ESTree.Pattern.t() | nil], ESTree.SourceLocation.t() | nil) :: ESTree.ArrayPattern.t()
Link to this function
arrow_function_expression(params, defaults, body, generator \\ false, expression \\ false, async \\ false, loc \\ nil) View Source
Link to this function
assignment_expression(operator, left, right, loc \\ nil)
View Source
assignment_expression(operator, left, right, loc \\ nil)
View Source
assignment_expression(
ESTree.assignment_operator(),
ESTree.Pattern.t(),
ESTree.Expression.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.AssignmentExpression.t()
assignment_expression( ESTree.assignment_operator(), ESTree.Pattern.t(), ESTree.Expression.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.AssignmentExpression.t()
Link to this function
assignment_property(value, loc \\ nil)
View Source
assignment_property(value, loc \\ nil)
View Source
assignment_property(ESTree.Pattern.t(), ESTree.SourceLocation.t() | nil) ::
ESTree.AssignmentProperty.t()
assignment_property(ESTree.Pattern.t(), ESTree.SourceLocation.t() | nil) :: ESTree.AssignmentProperty.t()
Link to this function
await_expression(argument, all \\ false, loc \\ nil)
View Source
await_expression(argument, all \\ false, loc \\ nil)
View Source
await_expression(
ESTree.Expression.t() | nil,
boolean(),
ESTree.SourceLocation.t() | nil
) :: ESTree.AwaitExpression.t()
await_expression( ESTree.Expression.t() | nil, boolean(), ESTree.SourceLocation.t() | nil ) :: ESTree.AwaitExpression.t()
Link to this function
binary_expression(operator, left, right, loc \\ nil)
View Source
binary_expression(operator, left, right, loc \\ nil)
View Source
binary_expression(
ESTree.binary_operator(),
ESTree.Expression.t(),
ESTree.Expression.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.BinaryExpression.t()
binary_expression( ESTree.binary_operator(), ESTree.Expression.t(), ESTree.Expression.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.BinaryExpression.t()
Link to this function
block_statement(body, loc \\ nil)
View Source
block_statement(body, loc \\ nil)
View Source
block_statement([ESTree.Statement.t()], ESTree.SourceLocation.t() | nil) ::
ESTree.BlockStatement.t()
block_statement([ESTree.Statement.t()], ESTree.SourceLocation.t() | nil) :: ESTree.BlockStatement.t()
Link to this function
break_statement(label \\ nil, loc \\ nil)
View Source
break_statement(label \\ nil, loc \\ nil)
View Source
break_statement(ESTree.Identifier.t() | nil, ESTree.SourceLocation.t() | nil) ::
ESTree.BreakStatement.t()
break_statement(ESTree.Identifier.t() | nil, ESTree.SourceLocation.t() | nil) :: ESTree.BreakStatement.t()
Link to this function
call_expression(callee, arguments, loc \\ nil)
View Source
call_expression(callee, arguments, loc \\ nil)
View Source
call_expression(
ESTree.Expression.t(),
[ESTree.Expression.t()],
ESTree.SourceLocation.t() | nil
) :: ESTree.CallExpression.t()
call_expression( ESTree.Expression.t(), [ESTree.Expression.t()], ESTree.SourceLocation.t() | nil ) :: ESTree.CallExpression.t()
Link to this function
catch_clause(param, body, loc \\ nil)
View Source
catch_clause(param, body, loc \\ nil)
View Source
catch_clause(
ESTree.Pattern.t(),
ESTree.BlockStatement.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.CatchClause.t()
catch_clause( ESTree.Pattern.t(), ESTree.BlockStatement.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.CatchClause.t()
Link to this function
class_body(body, loc \\ nil)
View Source
class_body(body, loc \\ nil)
View Source
class_body([ESTree.MethodDefinition.t()], ESTree.SourceLocation.t() | nil) ::
ESTree.ClassBody.t()
class_body([ESTree.MethodDefinition.t()], ESTree.SourceLocation.t() | nil) :: ESTree.ClassBody.t()
Link to this function
class_declaration(id, body, superClass \\ nil, loc \\ nil)
View Source
class_declaration(id, body, superClass \\ nil, loc \\ nil)
View Source
class_declaration(
ESTree.Identifier.t(),
ESTree.ClassBody.t(),
ESTree.Expression.t() | nil,
ESTree.SourceLocation.t() | nil
) :: ESTree.ClassDeclaration.t()
class_declaration( ESTree.Identifier.t(), ESTree.ClassBody.t(), ESTree.Expression.t() | nil, ESTree.SourceLocation.t() | nil ) :: ESTree.ClassDeclaration.t()
Link to this function
class_expression(body, superClass \\ nil, loc \\ nil)
View Source
class_expression(body, superClass \\ nil, loc \\ nil)
View Source
class_expression(
ESTree.ClassBody.t(),
ESTree.Expression.t() | nil,
ESTree.SourceLocation.t() | nil
) :: ESTree.ClassExpression.t()
class_expression( ESTree.ClassBody.t(), ESTree.Expression.t() | nil, ESTree.SourceLocation.t() | nil ) :: ESTree.ClassExpression.t()
Link to this function
conditional_statement(test, alternate, consequent, loc \\ nil)
View Source
conditional_statement(test, alternate, consequent, loc \\ nil)
View Source
conditional_statement(
ESTree.Expression.t(),
ESTree.Expression.t(),
ESTree.Expression.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.ConditionalStatement.t()
conditional_statement( ESTree.Expression.t(), ESTree.Expression.t(), ESTree.Expression.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.ConditionalStatement.t()
Link to this function
continue_statement(label, loc \\ nil)
View Source
continue_statement(label, loc \\ nil)
View Source
continue_statement(ESTree.Identifier.t(), ESTree.SourceLocation.t() | nil) ::
ESTree.ContinueStatement.t()
continue_statement(ESTree.Identifier.t(), ESTree.SourceLocation.t() | nil) :: ESTree.ContinueStatement.t()
Link to this function
debugger_statement(loc \\ nil)
View Source
debugger_statement(loc \\ nil)
View Source
debugger_statement(ESTree.SourceLocation.t() | nil) ::
ESTree.DebuggerStatement.t()
debugger_statement(ESTree.SourceLocation.t() | nil) :: ESTree.DebuggerStatement.t()
Link to this function
do_while_statement(body, test, loc \\ nil)
View Source
do_while_statement(body, test, loc \\ nil)
View Source
do_while_statement(
ESTree.Statement.t(),
ESTree.Expression.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.DoWhileStatement.t()
do_while_statement( ESTree.Statement.t(), ESTree.Expression.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.DoWhileStatement.t()
Link to this function
empty_expression(loc \\ nil)
View Source
empty_expression(loc \\ nil)
View Source
empty_expression(ESTree.SourceLocation.t() | nil) :: ESTree.EmptyExpression.t()
empty_expression(ESTree.SourceLocation.t() | nil) :: ESTree.EmptyExpression.t()
Link to this function
empty_statement(loc \\ nil)
View Source
empty_statement(loc \\ nil)
View Source
empty_statement(ESTree.SourceLocation.t() | nil) :: ESTree.EmptyStatement.t()
empty_statement(ESTree.SourceLocation.t() | nil) :: ESTree.EmptyStatement.t()
Link to this function
export_all_declaration(source \\ nil, loc \\ nil)
View Source
export_all_declaration(source \\ nil, loc \\ nil)
View Source
export_all_declaration(
ESTree.Identifier.t() | nil,
ESTree.SourceLocation.t() | nil
) :: ESTree.ExportAllDeclaration.t()
export_all_declaration( ESTree.Identifier.t() | nil, ESTree.SourceLocation.t() | nil ) :: ESTree.ExportAllDeclaration.t()
Link to this function
export_default_declaration(declaration \\ nil, loc \\ nil)
View Source
export_default_declaration(declaration \\ nil, loc \\ nil)
View Source
export_default_declaration(
ESTree.Declaration.t() | ESTree.Expression.t() | nil,
ESTree.SourceLocation.t() | nil
) :: ESTree.ExportDefaultDeclaration.t()
export_default_declaration( ESTree.Declaration.t() | ESTree.Expression.t() | nil, ESTree.SourceLocation.t() | nil ) :: ESTree.ExportDefaultDeclaration.t()
Link to this function
export_named_declaration(declaration, specifiers \\ [], source \\ nil, loc \\ nil)
View Source
export_named_declaration(declaration, specifiers \\ [], source \\ nil, loc \\ nil)
View Source
export_named_declaration(
ESTree.Declaration.t() | nil,
[ESTree.ExportSpecifier],
ESTree.Literal.t() | nil,
ESTree.SourceLocation.t() | nil
) :: ESTree.ExportNamedDeclaration.t()
export_named_declaration( ESTree.Declaration.t() | nil, [ESTree.ExportSpecifier], ESTree.Literal.t() | nil, ESTree.SourceLocation.t() | nil ) :: ESTree.ExportNamedDeclaration.t()
Link to this function
export_specifier(exported, local \\ nil, loc \\ nil)
View Source
export_specifier(exported, local \\ nil, loc \\ nil)
View Source
export_specifier(
ESTree.Identifier.t(),
ESTree.Identifier.t() | nil,
ESTree.SourceLocation.t() | nil
) :: ESTree.ExportSpecifier.t()
export_specifier( ESTree.Identifier.t(), ESTree.Identifier.t() | nil, ESTree.SourceLocation.t() | nil ) :: ESTree.ExportSpecifier.t()
Link to this function
expression_statement(expression, loc \\ nil)
View Source
expression_statement(expression, loc \\ nil)
View Source
expression_statement(ESTree.Expression.t(), ESTree.SourceLocation.t() | nil) ::
ESTree.ExpressionStatement.t()
expression_statement(ESTree.Expression.t(), ESTree.SourceLocation.t() | nil) :: ESTree.ExpressionStatement.t()
Link to this function
for_in_statement(left, right, body, loc \\ nil)
View Source
for_in_statement(left, right, body, loc \\ nil)
View Source
for_in_statement(
ESTree.VariableDeclaration.t() | ESTree.Pattern.t(),
ESTree.Expression.t(),
ESTree.Statement.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.ForInStatement.t()
for_in_statement( ESTree.VariableDeclaration.t() | ESTree.Pattern.t(), ESTree.Expression.t(), ESTree.Statement.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.ForInStatement.t()
Link to this function
for_of_statement(left, right, body, loc \\ nil)
View Source
for_of_statement(left, right, body, loc \\ nil)
View Source
for_of_statement(
ESTree.VariableDeclaration.t() | ESTree.Pattern.t(),
ESTree.Expression.t(),
ESTree.Statement.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.ForOfStatement.t()
for_of_statement( ESTree.VariableDeclaration.t() | ESTree.Pattern.t(), ESTree.Expression.t(), ESTree.Statement.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.ForOfStatement.t()
Link to this function
for_statement(init, test, update, body, loc \\ nil)
View Source
for_statement(init, test, update, body, loc \\ nil)
View Source
for_statement(
ESTree.VariableDeclaration.t() | ESTree.Expression.t(),
ESTree.Expression.t() | nil,
ESTree.Expression.t() | nil,
ESTree.Statement.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.ForStatement.t()
for_statement( ESTree.VariableDeclaration.t() | ESTree.Expression.t(), ESTree.Expression.t() | nil, ESTree.Expression.t() | nil, ESTree.Statement.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.ForStatement.t()
Link to this function
function_declaration(id, params, defaults, body, generator \\ false, expression \\ false, async \\ false, loc \\ nil)
View Source
function_declaration(id, params, defaults, body, generator \\ false, expression \\ false, async \\ false, loc \\ nil)
View Source
function_declaration(
ESTree.Identifier.t(),
[ESTree.Pattern.t()],
[ESTree.Expression.t()],
ESTree.BlockStatement.t(),
boolean(),
boolean(),
boolean(),
ESTree.SourceLocation.t() | nil
) :: ESTree.FunctionDeclaration.t()
function_declaration( ESTree.Identifier.t(), [ESTree.Pattern.t()], [ESTree.Expression.t()], ESTree.BlockStatement.t(), boolean(), boolean(), boolean(), ESTree.SourceLocation.t() | nil ) :: ESTree.FunctionDeclaration.t()
Link to this function
function_expression(params, defaults, body, generator \\ false, expression \\ false, async \\ false, loc \\ nil)
View Source
function_expression(params, defaults, body, generator \\ false, expression \\ false, async \\ false, loc \\ nil)
View Source
function_expression(
[ESTree.Pattern.t()],
[ESTree.Expression.t()],
ESTree.BlockStatement.t(),
boolean(),
boolean(),
boolean(),
ESTree.SourceLocation.t() | nil
) :: ESTree.FunctionExpression.t()
function_expression( [ESTree.Pattern.t()], [ESTree.Expression.t()], ESTree.BlockStatement.t(), boolean(), boolean(), boolean(), ESTree.SourceLocation.t() | nil ) :: ESTree.FunctionExpression.t()
Link to this function
identifier(name, loc \\ nil)
View Source
identifier(name, loc \\ nil)
View Source
identifier(binary(), ESTree.SourceLocation.t() | nil) :: ESTree.Identifier.t()
identifier(binary(), ESTree.SourceLocation.t() | nil) :: ESTree.Identifier.t()
Link to this function
if_statement(test, consequent, alternate \\ nil, loc \\ nil)
View Source
if_statement(test, consequent, alternate \\ nil, loc \\ nil)
View Source
if_statement(
ESTree.Expression.t(),
ESTree.Statement.t(),
ESTree.Statement.t() | nil,
ESTree.SourceLocation.t() | nil
) :: ESTree.IfStatement.t()
if_statement( ESTree.Expression.t(), ESTree.Statement.t(), ESTree.Statement.t() | nil, ESTree.SourceLocation.t() | nil ) :: ESTree.IfStatement.t()
Link to this function
import_declaration(specifiers, source \\ nil, loc \\ nil)
View Source
import_declaration(specifiers, source \\ nil, loc \\ nil)
View Source
import_declaration(
[
ESTree.ImportSpecifier.t()
| ESTree.ImportNamespaceSpecifier.t()
| ESTree.ImportDefaultSpecifier.t()
],
ESTree.Identifier.t() | nil,
ESTree.SourceLocation.t() | nil
) :: ESTree.ImportDeclaration.t()
import_declaration( [ ESTree.ImportSpecifier.t() | ESTree.ImportNamespaceSpecifier.t() | ESTree.ImportDefaultSpecifier.t() ], ESTree.Identifier.t() | nil, ESTree.SourceLocation.t() | nil ) :: ESTree.ImportDeclaration.t()
Link to this function
import_default_specifier(local, loc \\ nil)
View Source
import_default_specifier(local, loc \\ nil)
View Source
import_default_specifier(ESTree.Identifier.t(), ESTree.SourceLocation.t() | nil) ::
ESTree.ImportDefaultSpecifier.t()
import_default_specifier(ESTree.Identifier.t(), ESTree.SourceLocation.t() | nil) :: ESTree.ImportDefaultSpecifier.t()
Link to this function
import_namespace_specifier(local, loc \\ nil)
View Source
import_namespace_specifier(local, loc \\ nil)
View Source
import_namespace_specifier(
ESTree.Identifier.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.ImportNamespaceSpecifier.t()
import_namespace_specifier( ESTree.Identifier.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.ImportNamespaceSpecifier.t()
Link to this function
import_specifier(imported, local \\ nil, loc \\ nil)
View Source
import_specifier(imported, local \\ nil, loc \\ nil)
View Source
import_specifier(
ESTree.Identifier.t(),
ESTree.Identifier.t() | nil,
ESTree.SourceLocation.t() | nil
) :: ESTree.ImportSpecifier.t()
import_specifier( ESTree.Identifier.t(), ESTree.Identifier.t() | nil, ESTree.SourceLocation.t() | nil ) :: ESTree.ImportSpecifier.t()
Link to this function
jsx_attribute(name, value \\ nil, loc \\ nil)
View Source
jsx_attribute(name, value \\ nil, loc \\ nil)
View Source
jsx_attribute(
ESTree.JSXIdentifier.t() | ESTree.JSXNamespacedName.t(),
ESTree.Literal.t()
| ESTree.JSXExpressionContainer.t()
| ESTree.JSXElement.t()
| nil,
ESTree.SourceLocation.t() | nil
) :: ESTree.JSXAttribute.t()
jsx_attribute( ESTree.JSXIdentifier.t() | ESTree.JSXNamespacedName.t(), ESTree.Literal.t() | ESTree.JSXExpressionContainer.t() | ESTree.JSXElement.t() | nil, ESTree.SourceLocation.t() | nil ) :: ESTree.JSXAttribute.t()
Link to this function
jsx_closing_element(name, loc \\ nil)
View Source
jsx_closing_element(name, loc \\ nil)
View Source
jsx_closing_element(
ESTree.JSXIdentifier.t()
| ESTree.JSXMemberExpression.t()
| ESTree.JSXNamespacedName.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.JSXClosingElement.t()
jsx_closing_element( ESTree.JSXIdentifier.t() | ESTree.JSXMemberExpression.t() | ESTree.JSXNamespacedName.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.JSXClosingElement.t()
Link to this function
jsx_element(openingElement, children \\ [], closingElement \\ nil, loc \\ nil)
View Source
jsx_element(openingElement, children \\ [], closingElement \\ nil, loc \\ nil)
View Source
jsx_element(
ESTree.JSXOpeningElement.t(),
[
ESTree.Literal.t()
| ESTree.JSXExpressionContainer.t()
| ESTree.JSXElement.t()
],
ESTree.JSXClosingElement.t() | nil,
ESTree.SourceLocation.t() | nil
) :: ESTree.JSXElement.t()
jsx_element( ESTree.JSXOpeningElement.t(), [ ESTree.Literal.t() | ESTree.JSXExpressionContainer.t() | ESTree.JSXElement.t() ], ESTree.JSXClosingElement.t() | nil, ESTree.SourceLocation.t() | nil ) :: ESTree.JSXElement.t()
Link to this function
jsx_empty_expression(loc \\ nil)
View Source
jsx_empty_expression(loc \\ nil)
View Source
jsx_empty_expression(ESTree.SourceLocation.t() | nil) ::
ESTree.JSXEmptyExpression.t()
jsx_empty_expression(ESTree.SourceLocation.t() | nil) :: ESTree.JSXEmptyExpression.t()
Link to this function
jsx_expression_container(expression, loc \\ nil)
View Source
jsx_expression_container(expression, loc \\ nil)
View Source
jsx_expression_container(
ESTree.Expression.t() | ESTree.JSXEmptyExpression.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.JSXExpressionContainer.t()
jsx_expression_container( ESTree.Expression.t() | ESTree.JSXEmptyExpression.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.JSXExpressionContainer.t()
Link to this function
jsx_identifier(name, loc \\ nil)
View Source
jsx_identifier(name, loc \\ nil)
View Source
jsx_identifier(binary(), ESTree.SourceLocation.t() | nil) ::
ESTree.JSXIdentifier.t()
jsx_identifier(binary(), ESTree.SourceLocation.t() | nil) :: ESTree.JSXIdentifier.t()
Link to this function
jsx_member_expression(object, property, loc \\ nil)
View Source
jsx_member_expression(object, property, loc \\ nil)
View Source
jsx_member_expression(
ESTree.JSXMemberExpression.t() | ESTree.JSXIdentifier.t(),
ESTree.JSXIdentifier.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.MemberExpression.t()
jsx_member_expression( ESTree.JSXMemberExpression.t() | ESTree.JSXIdentifier.t(), ESTree.JSXIdentifier.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.MemberExpression.t()
Link to this function
jsx_namespaced_name(namespace, name, loc \\ nil)
View Source
jsx_namespaced_name(namespace, name, loc \\ nil)
View Source
jsx_namespaced_name(
ESTree.JSXIdentifier.t(),
ESTree.JSXIdentifier.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.JSXNamespacedName.t()
jsx_namespaced_name( ESTree.JSXIdentifier.t(), ESTree.JSXIdentifier.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.JSXNamespacedName.t()
Link to this function
jsx_opening_element(name, attributes \\ [], selfClosing \\ false, loc \\ nil)
View Source
jsx_opening_element(name, attributes \\ [], selfClosing \\ false, loc \\ nil)
View Source
jsx_opening_element(
ESTree.JSXIdentifier.t()
| ESTree.JSXMemberExpression.t()
| ESTree.JSXNamespacedName.t(),
[ESTree.JSXAttribute.t() | ESTree.JSXSpreadAttribute.t()],
boolean(),
ESTree.SourceLocation.t() | nil
) :: ESTree.JSXOpeningElement.t()
jsx_opening_element( ESTree.JSXIdentifier.t() | ESTree.JSXMemberExpression.t() | ESTree.JSXNamespacedName.t(), [ESTree.JSXAttribute.t() | ESTree.JSXSpreadAttribute.t()], boolean(), ESTree.SourceLocation.t() | nil ) :: ESTree.JSXOpeningElement.t()
Link to this function
jsx_spread_attribute(argument, loc \\ nil)
View Source
jsx_spread_attribute(argument, loc \\ nil)
View Source
jsx_spread_attribute(
ESTree.Expression.t() | nil,
ESTree.SourceLocation.t() | nil
) :: ESTree.SpreadElement.t()
jsx_spread_attribute( ESTree.Expression.t() | nil, ESTree.SourceLocation.t() | nil ) :: ESTree.SpreadElement.t()
Link to this function
labeled_statement(label, body, loc \\ nil)
View Source
labeled_statement(label, body, loc \\ nil)
View Source
labeled_statement(
ESTree.Identifier.t(),
ESTree.Statement.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.LabeledStatement.t()
labeled_statement( ESTree.Identifier.t(), ESTree.Statement.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.LabeledStatement.t()
Link to this function
literal(value, regex \\ nil, loc \\ nil)
View Source
literal(value, regex \\ nil, loc \\ nil)
View Source
literal(
binary() | boolean() | number() | nil,
ESTree.Regex.t() | nil,
ESTree.SourceLocation.t() | nil
) :: ESTree.Literal.t()
literal( binary() | boolean() | number() | nil, ESTree.Regex.t() | nil, ESTree.SourceLocation.t() | nil ) :: ESTree.Literal.t()
Link to this function
logical_expression(operator, left, right, loc \\ nil)
View Source
logical_expression(operator, left, right, loc \\ nil)
View Source
logical_expression(
ESTree.logical_operator(),
ESTree.Expression.t(),
ESTree.Expression.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.LogicalExpression.t()
logical_expression( ESTree.logical_operator(), ESTree.Expression.t(), ESTree.Expression.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.LogicalExpression.t()
Link to this function
member_expression(object, property, computed \\ false, loc \\ nil)
View Source
member_expression(object, property, computed \\ false, loc \\ nil)
View Source
member_expression(
ESTree.Expression.t() | ESTree.Super.t(),
ESTree.Identifier.t() | ESTree.Expression.t(),
boolean(),
ESTree.SourceLocation.t() | nil
) :: ESTree.MemberExpression.t()
member_expression( ESTree.Expression.t() | ESTree.Super.t(), ESTree.Identifier.t() | ESTree.Expression.t(), boolean(), ESTree.SourceLocation.t() | nil ) :: ESTree.MemberExpression.t()
Link to this function
meta_property(meta, property, loc \\ nil)
View Source
meta_property(meta, property, loc \\ nil)
View Source
meta_property(
ESTree.Identifier.t(),
ESTree.Identifier.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.MetaProperty.t()
meta_property( ESTree.Identifier.t(), ESTree.Identifier.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.MetaProperty.t()
Link to this function
method_definition(key, value, kind \\ :method, computed \\ false, static \\ false, loc \\ nil)
View Source
method_definition(key, value, kind \\ :method, computed \\ false, static \\ false, loc \\ nil)
View Source
method_definition(
ESTree.Identifier.t(),
ESTree.FunctionExpression.t(),
:constructor | :method | :get | :set,
boolean(),
boolean(),
ESTree.SourceLocation.t() | nil
) :: ESTree.MethodDefinition.t()
method_definition( ESTree.Identifier.t(), ESTree.FunctionExpression.t(), :constructor | :method | :get | :set, boolean(), boolean(), ESTree.SourceLocation.t() | nil ) :: ESTree.MethodDefinition.t()
Link to this function
new_expression(callee, arguments, loc \\ nil)
View Source
new_expression(callee, arguments, loc \\ nil)
View Source
new_expression(
ESTree.Expression.t(),
[ESTree.Expression.t()],
ESTree.SourceLocation.t() | nil
) :: ESTree.NewExpression.t()
new_expression( ESTree.Expression.t(), [ESTree.Expression.t()], ESTree.SourceLocation.t() | nil ) :: ESTree.NewExpression.t()
Link to this function
object_expression(properties, loc \\ nil)
View Source
object_expression(properties, loc \\ nil)
View Source
object_expression([ESTree.Property.t()], ESTree.SourceLocation.t() | nil) ::
ESTree.ObjectExpression.t()
object_expression([ESTree.Property.t()], ESTree.SourceLocation.t() | nil) :: ESTree.ObjectExpression.t()
Link to this function
object_pattern(properties, loc \\ nil)
View Source
object_pattern(properties, loc \\ nil)
View Source
object_pattern([ESTree.Property.t()], ESTree.SourceLocation.t() | nil) ::
ESTree.ObjectPattern.t()
object_pattern([ESTree.Property.t()], ESTree.SourceLocation.t() | nil) :: ESTree.ObjectPattern.t()
Link to this function
position(line, column)
View Source
position(line, column)
View Source
position(pos_integer(), non_neg_integer()) :: ESTree.Position.t()
position(pos_integer(), non_neg_integer()) :: ESTree.Position.t()
Link to this function
program(body, sourceType \\ :script, loc \\ nil)
View Source
program(body, sourceType \\ :script, loc \\ nil)
View Source
program(
[ESTree.Statement.t()],
:script | :module,
ESTree.SourceLocation.t() | nil
) :: ESTree.Program.t()
program( [ESTree.Statement.t()], :script | :module, ESTree.SourceLocation.t() | nil ) :: ESTree.Program.t()
Link to this function
property(key, value, kind \\ :init, shorthand \\ false, method \\ false, computed \\ false, loc \\ nil)
View Source
property(key, value, kind \\ :init, shorthand \\ false, method \\ false, computed \\ false, loc \\ nil)
View Source
property(
ESTree.Expression.t(),
ESTree.Expression.t(),
:init | :get | :set,
boolean(),
boolean(),
boolean(),
ESTree.SourceLocation.t() | nil
) :: ESTree.Property.t()
property( ESTree.Expression.t(), ESTree.Expression.t(), :init | :get | :set, boolean(), boolean(), boolean(), ESTree.SourceLocation.t() | nil ) :: ESTree.Property.t()
Link to this function
regex(pattern, flags)
View Source
regex(pattern, flags)
View Source
regex(binary(), binary()) :: ESTree.Regex.t()
regex(binary(), binary()) :: ESTree.Regex.t()
Link to this function
rest_element(argument, loc \\ nil)
View Source
rest_element(argument, loc \\ nil)
View Source
rest_element(ESTree.Expression.t() | nil, ESTree.SourceLocation.t() | nil) ::
ESTree.RestElement.t()
rest_element(ESTree.Expression.t() | nil, ESTree.SourceLocation.t() | nil) :: ESTree.RestElement.t()
Link to this function
return_statement(argument, loc \\ nil)
View Source
return_statement(argument, loc \\ nil)
View Source
return_statement(ESTree.Expression.t() | nil, ESTree.SourceLocation.t() | nil) ::
ESTree.ReturnStatement.t()
return_statement(ESTree.Expression.t() | nil, ESTree.SourceLocation.t() | nil) :: ESTree.ReturnStatement.t()
Link to this function
sequence_expression(expressions, loc \\ nil)
View Source
sequence_expression(expressions, loc \\ nil)
View Source
sequence_expression([ESTree.Expression.t()], ESTree.SourceLocation.t() | nil) ::
ESTree.SequenceExpression.t()
sequence_expression([ESTree.Expression.t()], ESTree.SourceLocation.t() | nil) :: ESTree.SequenceExpression.t()
Link to this function
source_location(source, start, the_end)
View Source
source_location(source, start, the_end)
View Source
source_location(binary() | nil, ESTree.Position.t(), ESTree.Position.t()) ::
ESTree.SourceLocation.t()
source_location(binary() | nil, ESTree.Position.t(), ESTree.Position.t()) :: ESTree.SourceLocation.t()
Link to this function
spread_element(argument, loc \\ nil)
View Source
spread_element(argument, loc \\ nil)
View Source
spread_element(ESTree.Expression.t() | nil, ESTree.SourceLocation.t() | nil) ::
ESTree.SpreadElement.t()
spread_element(ESTree.Expression.t() | nil, ESTree.SourceLocation.t() | nil) :: ESTree.SpreadElement.t()
Link to this function
super(loc \\ nil)
View Source
super(loc \\ nil)
View Source
super(ESTree.SourceLocation.t() | nil) :: ESTree.Super.t()
super(ESTree.SourceLocation.t() | nil) :: ESTree.Super.t()
Link to this function
switch_case(test, consequent, loc \\ nil)
View Source
switch_case(test, consequent, loc \\ nil)
View Source
switch_case(
ESTree.Expression.t() | nil,
[ESTree.Statement.t()],
ESTree.SourceLocation.t() | nil
) :: ESTree.SwitchCase.t()
switch_case( ESTree.Expression.t() | nil, [ESTree.Statement.t()], ESTree.SourceLocation.t() | nil ) :: ESTree.SwitchCase.t()
Link to this function
switch_statement(discriminant, cases, loc \\ nil)
View Source
switch_statement(discriminant, cases, loc \\ nil)
View Source
switch_statement(
ESTree.Expression.t(),
[ESTree.SwitchCase.t()],
ESTree.SourceLocation.t() | nil
) :: ESTree.SwitchStatement.t()
switch_statement( ESTree.Expression.t(), [ESTree.SwitchCase.t()], ESTree.SourceLocation.t() | nil ) :: ESTree.SwitchStatement.t()
Link to this function
tagged_template_expression(tag, quasi, loc \\ nil)
View Source
tagged_template_expression(tag, quasi, loc \\ nil)
View Source
tagged_template_expression(
ESTree.Expression.t(),
ESTree.TemplateLiteral.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.TaggedTemplateExpression.t()
tagged_template_expression( ESTree.Expression.t(), ESTree.TemplateLiteral.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.TaggedTemplateExpression.t()
Link to this function
template_element(raw, cooked_value, tail, loc \\ nil)
View Source
template_element(raw, cooked_value, tail, loc \\ nil)
View Source
template_element(binary(), binary(), boolean(), ESTree.SourceLocation.t() | nil) ::
ESTree.TemplateElement.t()
template_element(binary(), binary(), boolean(), ESTree.SourceLocation.t() | nil) :: ESTree.TemplateElement.t()
Link to this function
template_literal(quasis, expressions, loc \\ nil)
View Source
template_literal(quasis, expressions, loc \\ nil)
View Source
template_literal(
[ESTree.TemplateElement.t()],
[ESTree.Expression.t()],
ESTree.SourceLocation.t() | nil
) :: ESTree.TemplateLiteral.t()
template_literal( [ESTree.TemplateElement.t()], [ESTree.Expression.t()], ESTree.SourceLocation.t() | nil ) :: ESTree.TemplateLiteral.t()
Link to this function
this_expression(loc \\ nil)
View Source
this_expression(loc \\ nil)
View Source
this_expression(ESTree.SourceLocation.t() | nil) :: ESTree.ThisExpression.t()
this_expression(ESTree.SourceLocation.t() | nil) :: ESTree.ThisExpression.t()
Link to this function
throw_statement(argument, loc \\ nil)
View Source
throw_statement(argument, loc \\ nil)
View Source
throw_statement(ESTree.Expression.t(), ESTree.SourceLocation.t() | nil) ::
ESTree.ThrowStatement.t()
throw_statement(ESTree.Expression.t(), ESTree.SourceLocation.t() | nil) :: ESTree.ThrowStatement.t()
Link to this function
try_statement(block, handler, finalizer \\ nil, loc \\ nil)
View Source
try_statement(block, handler, finalizer \\ nil, loc \\ nil)
View Source
try_statement(
ESTree.BlockStatement.t(),
ESTree.CatchClause.t() | nil,
ESTree.BlockStatement.t() | nil,
ESTree.SourceLocation.t() | nil
) :: ESTree.TryStatement.t()
try_statement( ESTree.BlockStatement.t(), ESTree.CatchClause.t() | nil, ESTree.BlockStatement.t() | nil, ESTree.SourceLocation.t() | nil ) :: ESTree.TryStatement.t()
Link to this function
unary_expression(operator, prefix, argument, loc \\ nil)
View Source
unary_expression(operator, prefix, argument, loc \\ nil)
View Source
unary_expression(
ESTree.unary_operator(),
boolean(),
ESTree.Expression.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.UnaryExpression.t()
unary_expression( ESTree.unary_operator(), boolean(), ESTree.Expression.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.UnaryExpression.t()
Link to this function
update_expression(operator, argument, prefix, loc \\ nil)
View Source
update_expression(operator, argument, prefix, loc \\ nil)
View Source
update_expression(
ESTree.update_operator(),
ESTree.Expression.t(),
boolean(),
ESTree.SourceLocation.t() | nil
) :: ESTree.UpdateExpression.t()
update_expression( ESTree.update_operator(), ESTree.Expression.t(), boolean(), ESTree.SourceLocation.t() | nil ) :: ESTree.UpdateExpression.t()
Link to this function
variable_declaration(declarations, kind \\ :var, loc \\ nil)
View Source
variable_declaration(declarations, kind \\ :var, loc \\ nil)
View Source
variable_declaration(
[ESTree.VariableDeclarator.t()],
:var | :let | :const,
ESTree.SourceLocation.t() | nil
) :: ESTree.VariableDeclaration.t()
variable_declaration( [ESTree.VariableDeclarator.t()], :var | :let | :const, ESTree.SourceLocation.t() | nil ) :: ESTree.VariableDeclaration.t()
Link to this function
variable_declarator(id, init \\ nil, loc \\ nil)
View Source
variable_declarator(id, init \\ nil, loc \\ nil)
View Source
variable_declarator(
ESTree.Pattern.t(),
ESTree.Expression.t() | nil,
ESTree.SourceLocation.t() | nil
) :: ESTree.VariableDeclarator.t()
variable_declarator( ESTree.Pattern.t(), ESTree.Expression.t() | nil, ESTree.SourceLocation.t() | nil ) :: ESTree.VariableDeclarator.t()
Link to this function
while_statement(test, body, loc \\ nil)
View Source
while_statement(test, body, loc \\ nil)
View Source
while_statement(
ESTree.Expression.t(),
ESTree.Statement.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.WhileStatement.t()
while_statement( ESTree.Expression.t(), ESTree.Statement.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.WhileStatement.t()
Link to this function
with_statement(object, body, loc \\ nil)
View Source
with_statement(object, body, loc \\ nil)
View Source
with_statement(
ESTree.Expression.t(),
ESTree.Statement.t(),
ESTree.SourceLocation.t() | nil
) :: ESTree.WithStatement.t()
with_statement( ESTree.Expression.t(), ESTree.Statement.t(), ESTree.SourceLocation.t() | nil ) :: ESTree.WithStatement.t()
Link to this function
yield_expression(argument \\ nil, delegate \\ false, loc \\ nil)
View Source
yield_expression(argument \\ nil, delegate \\ false, loc \\ nil)
View Source
yield_expression(
ESTree.Expression.t() | nil,
boolean(),
ESTree.SourceLocation.t() | nil
) :: ESTree.YieldExpression.t()
yield_expression( ESTree.Expression.t() | nil, boolean(), ESTree.SourceLocation.t() | nil ) :: ESTree.YieldExpression.t()