import PluginSyntaxESTree from 'escomplex-plugin-syntax-estree/src/PluginSyntaxESTree.js'
PluginSyntaxESTree
Extends:
Provides an typhonjs-escomplex-module / ESComplexModule plugin which loads syntax definitions for trait resolution for all ESTree AST nodes up to and including ES6.
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 |
onConfigure(ev: object) 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: *} |
public ArrayPattern(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ArrowFunctionExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public AssignmentExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public AssignmentPattern(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public BinaryExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public BlockStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public BreakStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
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:
Name | Type | Attribute | Description |
settings | object | escomplex settings |
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public CatchClause(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Params:
Name | Type | Attribute | Description |
settings | object | escomplex settings |
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ClassBody(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ClassDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ClassExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ConditionalExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ContinueStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public DoWhileStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public EmptyStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ExportAllDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ExportDefaultDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ExportNamedDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ExportSpecifier(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ExpressionStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ForInStatement(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Params:
Name | Type | Attribute | Description |
settings | object | escomplex settings |
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ForOfStatement(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Params:
Name | Type | Attribute | Description |
settings | object | escomplex settings |
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ForStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
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: *} |
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: *} |
public Identifier(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public IfStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ImportDeclaration(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Params:
Name | Type | Attribute | Description |
settings | object | escomplex settings |
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ImportDefaultSpecifier(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ImportNamespaceSpecifier(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ImportSpecifier(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public LabeledStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
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: *} |
public LogicalExpression(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Params:
Name | Type | Attribute | Description |
settings | object | escomplex settings |
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public MemberExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
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: *} |
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: *} |
public NewExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ObjectExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ObjectPattern(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
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: *} |
public RestElement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ReturnStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public SequenceExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public SpreadElement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public Super(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public SwitchCase(settings: object): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Params:
Name | Type | Attribute | Description |
settings | object | escomplex settings |
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public SwitchStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public TaggedTemplateExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public TemplateElement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public TemplateLiteral(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ThisExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public ThrowStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
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: *} |
public UnaryExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public UpdateExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public VariableDeclaration(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public VariableDeclarator(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public WhileStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public WithStatement(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES5 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public YieldExpression(): {lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} source
ES6 Node
Return:
{lloc: *, cyclomatic: *, operators: *, operands: *, ignoreKeys: *, newScope: *, dependencies: *} |
public onConfigure(ev: object) source
Loads any default settings that are not already provided by any user options.
Params:
Name | Type | Attribute | Description |
ev | object | escomplex plugin event data. The following options are:
|