Home Manual Reference Source Test Repository
public class | source

PluginSyntaxESTree

Extends:

typhonjs-escomplex-commons/src/module/plugin/syntax/AbstractSyntaxLoader~AbstractSyntaxLoader → PluginSyntaxESTree

Provides an typhonjs-escomplex-module / ESComplexModule plugin which loads syntax definitions for trait resolution for all ESTree AST nodes up to and including ES6.

See:

Method Summary

Public Methods
public

ArrayExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

ArrayPattern(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

ArrowFunctionExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

AssignmentExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

AssignmentPattern(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

BinaryExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

BlockStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

BreakStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

CallExpression(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

CatchClause(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

ClassBody(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

ClassDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

ClassExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

ConditionalExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

ContinueStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

DoWhileStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

EmptyStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

ExportAllDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

ExportDefaultDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

ExportNamedDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

ExportSpecifier(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

ExpressionStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

ForInStatement(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

ForOfStatement(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

ForStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

FunctionDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

FunctionExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

Identifier(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

IfStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

ImportDeclaration(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

ImportDefaultSpecifier(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

ImportNamespaceSpecifier(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

ImportSpecifier(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

LabeledStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

Literal(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

LogicalExpression(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

MemberExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

MetaProperty(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

MethodDefinition(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

NewExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

ObjectExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

ObjectPattern(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

Property(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

RestElement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

ReturnStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

SequenceExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

SpreadElement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

Super(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

SwitchCase(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

SwitchStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

TaggedTemplateExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

TemplateElement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

TemplateLiteral(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

ThisExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

ThrowStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

TryStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

UnaryExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

UpdateExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

VariableDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

VariableDeclarator(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

WhileStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

WithStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES5 Node

public

YieldExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

ES6 Node

public

Loads any default settings that are not already provided by any user options.

Public Methods

public ArrayExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ArrayPattern(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ArrowFunctionExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public AssignmentExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public AssignmentPattern(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public BinaryExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public BlockStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public BreakStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public CallExpression(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Processes CommonJS dependencies if settings.commonjs is set to true. An optional function settings.dependencyResolver may be used to resolve dynamic dependencies.

Params:

NameTypeAttributeDescription
settings object

escomplex settings

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public CatchClause(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Params:

NameTypeAttributeDescription
settings object

escomplex settings

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ClassBody(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ClassDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ClassExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ConditionalExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ContinueStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public DoWhileStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public EmptyStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ExportAllDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ExportDefaultDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ExportNamedDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ExportSpecifier(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ExpressionStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ForInStatement(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Params:

NameTypeAttributeDescription
settings object

escomplex settings

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ForOfStatement(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Params:

NameTypeAttributeDescription
settings object

escomplex settings

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ForStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public FunctionDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Note: The function name (node.id) is returned as an operand and excluded from traversal as to not be included in the function operand calculations.

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public FunctionExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Note: The function name (node.id) is returned as an operand and excluded from traversal as to not be included in the function operand calculations.

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public Identifier(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public IfStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ImportDeclaration(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Params:

NameTypeAttributeDescription
settings object

escomplex settings

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ImportDefaultSpecifier(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ImportNamespaceSpecifier(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ImportSpecifier(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public LabeledStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public Literal(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Avoid conflicts between string literals and identifiers.

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public LogicalExpression(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Params:

NameTypeAttributeDescription
settings object

escomplex settings

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public MemberExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public MetaProperty(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Note: esprima doesn't follow the ESTree spec and meta & property are strings instead of Identifier nodes.

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public MethodDefinition(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Note: must skip as the following FunctionExpression assigns the name.

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public NewExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ObjectExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ObjectPattern(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public Property(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Note that w/ ES6+ : may be omitted and the Property node defines shorthand to indicate this case.

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public RestElement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ReturnStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public SequenceExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public SpreadElement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public Super(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public SwitchCase(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Params:

NameTypeAttributeDescription
settings object

escomplex settings

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public SwitchStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public TaggedTemplateExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public TemplateElement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public TemplateLiteral(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ThisExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public ThrowStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public TryStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Note: esprima has duplicate nodes the catch block; handler is the actual ESTree spec.

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public UnaryExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public UpdateExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public VariableDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public VariableDeclarator(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public WhileStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public WithStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES5 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public YieldExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source

ES6 Node

Return:

{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *}

See:

public onConfigure(ev: object) source

Loads any default settings that are not already provided by any user options.

Params:

NameTypeAttributeDescription
ev object

escomplex plugin event data.

The following options are:

(boolean)   commonjs - Boolean indicating that source code being processed is CommonJS; defaults to false.

(function)  dependencyResolver - Provides a function to resolve dynamic dependencies; defaults to undefined.

(boolean)   forin - Boolean indicating whether for...in / for...of loops should be considered a source of
                    cyclomatic complexity; defaults to false.

(boolean)   logicalor - Boolean indicating whether operator || should be considered a source of cyclomatic
                        complexity; defaults to true.

(boolean)   switchcase - Boolean indicating whether switch statements should be considered a source of cyclomatic
                         complexity; defaults to true.

(boolean)   trycatch - Boolean indicating whether catch clauses should be considered a source of cyclomatic
                       complexity; defaults to false.