AST 规范
¥AST Specification
以下自动生成的文档描述了 @typescript-eslint/typescript-estree 为 @typescript-eslint/parser 等解析器生成的抽象语法树 (AST)。
¥The following auto-generated documentation describes the Abstract Syntax Tree (AST) generated by @typescript-eslint/typescript-estree for parsers such as @typescript-eslint/parser.
Enumerations
AST_NODE_TYPES
Defined in: ast-node-types.ts:1
Enumeration Members
AST_TOKEN_TYPES
Defined in: ast-token-types.ts:1
Enumeration Members
Interfaces
AccessorPropertyComputedName
Defined in: element/AccessorProperty/spec.ts:7
Extends
PropertyDefinitionComputedNameBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
accessibility | undefined | Accessibility | - | - | PropertyDefinitionComputedNameBase.accessibility | base/PropertyDefinitionBase.ts:14 |
computed | true | - | - | PropertyDefinitionComputedNameBase.computed | base/PropertyDefinitionBase.ts:30 |
declare | boolean | - | - | PropertyDefinitionComputedNameBase.declare | base/PropertyDefinitionBase.ts:16 |
decorators | Decorator[] | - | - | PropertyDefinitionComputedNameBase.decorators | base/PropertyDefinitionBase.ts:17 |
definite | boolean | - | - | PropertyDefinitionComputedNameBase.definite | base/PropertyDefinitionBase.ts:18 |
key | Expression | - | - | PropertyDefinitionComputedNameBase.key | base/PropertyDefinitionBase.ts:31 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | PropertyDefinitionComputedNameBase.loc | base/NodeOrTokenData.ts:12 |
optional | boolean | - | - | PropertyDefinitionComputedNameBase.optional | base/PropertyDefinitionBase.ts:20 |
override | boolean | - | - | PropertyDefinitionComputedNameBase.override | base/PropertyDefinitionBase.ts:21 |
range | Range | - | - | PropertyDefinitionComputedNameBase.range | base/NodeOrTokenData.ts:14 |
readonly | boolean | - | - | PropertyDefinitionComputedNameBase.readonly | base/PropertyDefinitionBase.ts:22 |
static | boolean | - | - | PropertyDefinitionComputedNameBase.static | base/PropertyDefinitionBase.ts:23 |
type | AccessorProperty | - | PropertyDefinitionComputedNameBase.type | - | element/AccessorProperty/spec.ts:9 |
typeAnnotation | undefined | TSTypeAnnotation | - | - | PropertyDefinitionComputedNameBase.typeAnnotation | base/PropertyDefinitionBase.ts:24 |
value | null | Expression | - | - | PropertyDefinitionComputedNameBase.value | base/PropertyDefinitionBase.ts:25 |
AccessorPropertyNonComputedName
Defined in: element/AccessorProperty/spec.ts:12
Extends
PropertyDefinitionNonComputedNameBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
accessibility | undefined | Accessibility | - | - | PropertyDefinitionNonComputedNameBase.accessibility | base/PropertyDefinitionBase.ts:14 |
computed | false | - | - | PropertyDefinitionNonComputedNameBase.computed | base/PropertyDefinitionBase.ts:36 |
declare | boolean | - | - | PropertyDefinitionNonComputedNameBase.declare | base/PropertyDefinitionBase.ts:16 |
decorators | Decorator[] | - | - | PropertyDefinitionNonComputedNameBase.decorators | base/PropertyDefinitionBase.ts:17 |
definite | boolean | - | - | PropertyDefinitionNonComputedNameBase.definite | base/PropertyDefinitionBase.ts:18 |
key | PropertyNameNonComputed | - | - | PropertyDefinitionNonComputedNameBase.key | base/PropertyDefinitionBase.ts:37 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | PropertyDefinitionNonComputedNameBase.loc | base/NodeOrTokenData.ts:12 |
optional | boolean | - | - | PropertyDefinitionNonComputedNameBase.optional | base/PropertyDefinitionBase.ts:20 |
override | boolean | - | - | PropertyDefinitionNonComputedNameBase.override | base/PropertyDefinitionBase.ts:21 |
range | Range | - | - | PropertyDefinitionNonComputedNameBase.range | base/NodeOrTokenData.ts:14 |
readonly | boolean | - | - | PropertyDefinitionNonComputedNameBase.readonly | base/PropertyDefinitionBase.ts:22 |
static | boolean | - | - | PropertyDefinitionNonComputedNameBase.static | base/PropertyDefinitionBase.ts:23 |
type | AccessorProperty | - | PropertyDefinitionNonComputedNameBase.type | - | element/AccessorProperty/spec.ts:14 |
typeAnnotation | undefined | TSTypeAnnotation | - | - | PropertyDefinitionNonComputedNameBase.typeAnnotation | base/PropertyDefinitionBase.ts:24 |
value | null | Expression | - | - | PropertyDefinitionNonComputedNameBase.value | base/PropertyDefinitionBase.ts:25 |
ArrayExpression
Defined in: expression/ArrayExpression/spec.ts:6
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
elements | ( | null | Expression | SpreadElement)[] | an element will be null in the case of a sparse array: [1, ,3] | - | - | expression/ArrayExpression/spec.ts:11 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | ArrayExpression | - | BaseNode.type | - | expression/ArrayExpression/spec.ts:7 |
ArrayPattern
Defined in: parameter/ArrayPattern/spec.ts:7
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
decorators | Decorator[] | - | - | - | parameter/ArrayPattern/spec.ts:9 |
elements | (null | DestructuringPattern)[] | - | - | - | parameter/ArrayPattern/spec.ts:10 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
optional | boolean | - | - | - | parameter/ArrayPattern/spec.ts:11 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | ArrayPattern | - | BaseNode.type | - | parameter/ArrayPattern/spec.ts:8 |
typeAnnotation | undefined | TSTypeAnnotation | - | - | - | parameter/ArrayPattern/spec.ts:12 |
ArrowFunctionExpression
Defined in: expression/ArrowFunctionExpression/spec.ts:9
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
async | boolean | - | - | - | expression/ArrowFunctionExpression/spec.ts:11 |
body | Expression | BlockStatement | - | - | - | expression/ArrowFunctionExpression/spec.ts:12 |
expression | boolean | - | - | - | expression/ArrowFunctionExpression/spec.ts:13 |
generator | false | - | - | - | expression/ArrowFunctionExpression/spec.ts:14 |
id | null | - | - | - | expression/ArrowFunctionExpression/spec.ts:15 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
params | Parameter[] | - | - | - | expression/ArrowFunctionExpression/spec.ts:16 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
returnType | undefined | TSTypeAnnotation | - | - | - | expression/ArrowFunctionExpression/spec.ts:17 |
type | ArrowFunctionExpression | - | BaseNode.type | - | expression/ArrowFunctionExpression/spec.ts:10 |
typeParameters | | undefined | TSTypeParameterDeclaration | - | - | - | expression/ArrowFunctionExpression/spec.ts:18 |
AssignmentExpression
Defined in: expression/AssignmentExpression/spec.ts:9
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
left | Expression | - | - | - | expression/AssignmentExpression/spec.ts:11 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
operator | ValueOf<AssignmentOperatorToText> | - | - | - | expression/AssignmentExpression/spec.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
right | Expression | - | - | - | expression/AssignmentExpression/spec.ts:13 |
type | AssignmentExpression | - | BaseNode.type | - | expression/AssignmentExpression/spec.ts:10 |
AssignmentOperatorToText
Defined in: expression/AssignmentExpression/AssignmentOperatorToText.ts:3
Extended by
Properties
AssignmentPattern
Defined in: parameter/AssignmentPattern/spec.ts:8
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
decorators | Decorator[] | - | - | - | parameter/AssignmentPattern/spec.ts:10 |
left | BindingName | - | - | - | parameter/AssignmentPattern/spec.ts:11 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
optional | boolean | - | - | - | parameter/AssignmentPattern/spec.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
right | Expression | - | - | - | parameter/AssignmentPattern/spec.ts:13 |
type | AssignmentPattern | - | BaseNode.type | - | parameter/AssignmentPattern/spec.ts:9 |
typeAnnotation | undefined | TSTypeAnnotation | - | - | - | parameter/AssignmentPattern/spec.ts:14 |
AwaitExpression
Defined in: expression/AwaitExpression/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
argument | Expression | - | - | - | expression/AwaitExpression/spec.ts:7 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | AwaitExpression | - | BaseNode.type | - | expression/AwaitExpression/spec.ts:6 |
BaseNode
Defined in: base/BaseNode.ts:5
Extends
Extended by
ExportAllDeclarationExportDefaultDeclarationImportDeclarationTSEnumDeclarationTSInterfaceDeclarationTSNamespaceExportDeclarationTSTypeAliasDeclarationSpreadElementStaticBlockTSEnumMemberTSIndexSignatureArrayExpressionArrowFunctionExpressionAssignmentExpressionAwaitExpressionPrivateInExpressionSymmetricBinaryExpressionCallExpressionChainExpressionConditionalExpressionIdentifierImportExpressionJSXElementJSXFragmentLogicalExpressionMetaPropertyNewExpressionObjectExpressionSequenceExpressionSuperTaggedTemplateExpressionTemplateLiteralThisExpressionTSAsExpressionTSInstantiationExpressionTSNonNullExpressionTSSatisfiesExpressionTSTypeAssertionYieldExpressionJSXAttributeJSXClosingElementJSXClosingFragmentJSXEmptyExpressionJSXExpressionContainerJSXIdentifierJSXMemberExpressionJSXNamespacedNameJSXOpeningElementJSXOpeningFragmentJSXSpreadAttributeJSXSpreadChildJSXTextArrayPatternAssignmentPatternObjectPatternRestElementTSParameterPropertyCatchClauseClassBodyDecoratorEmptyStatementImportAttributeImportDefaultSpecifierImportNamespaceSpecifierImportSpecifierPrivateIdentifierSwitchCaseTemplateElementTSEnumBodyTSExternalModuleReferenceTSInterfaceBodyTSModuleBlockTSTypeAnnotationTSTypeParameterTSTypeParameterDeclarationTSTypeParameterInstantiationBlockStatementBreakStatementContinueStatementDebuggerStatementDoWhileStatementExpressionStatementForInStatementForOfStatementForStatementIfStatementLabeledStatementReturnStatementSwitchStatementThrowStatementTryStatementTSExportAssignmentWhileStatementWithStatementTSAbstractKeywordTSAnyKeywordTSArrayTypeTSAsyncKeywordTSBigIntKeywordTSBooleanKeywordTSConditionalTypeTSDeclareKeywordTSExportKeywordTSImportTypeTSIndexedAccessTypeTSInferTypeTSIntersectionTypeTSIntrinsicKeywordTSLiteralTypeTSMappedTypeTSNamedTupleMemberTSNeverKeywordTSNullKeywordTSNumberKeywordTSObjectKeywordTSOptionalTypeTSPrivateKeywordTSProtectedKeywordTSPublicKeywordTSQualifiedNameTSReadonlyKeywordTSRestTypeTSStaticKeywordTSStringKeywordTSSymbolKeywordTSTemplateLiteralTypeTSThisTypeTSTupleTypeTSTypeLiteralTSTypeOperatorTSTypePredicateTSTypeQueryTSTypeReferenceTSUndefinedKeywordTSUnionTypeTSUnknownKeywordTSVoidKeyword
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | NodeOrTokenData.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | NodeOrTokenData.range | base/NodeOrTokenData.ts:14 |
type | AST_NODE_TYPES | - | NodeOrTokenData.type | - | base/BaseNode.ts:6 |
BigIntLiteral
Defined in: expression/literal/BigIntLiteral/spec.ts:3
Extends
LiteralBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
bigint | string | - | - | - | expression/literal/BigIntLiteral/spec.ts:4 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | LiteralBase.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | LiteralBase.range | base/NodeOrTokenData.ts:14 |
raw | string | - | - | LiteralBase.raw | base/LiteralBase.ts:6 |
type | Literal | - | - | LiteralBase.type | base/LiteralBase.ts:5 |
value | null | bigint | - | LiteralBase.value | - | expression/literal/BigIntLiteral/spec.ts:5 |
BinaryOperatorToText
Defined in: expression/BinaryExpression/BinaryOperatorToText.ts:4
Properties
BlockComment
Defined in: token/BlockComment/spec.ts:4
Extends
BaseToken
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseToken.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseToken.range | base/NodeOrTokenData.ts:14 |
type | Block | - | BaseToken.type | - | token/BlockComment/spec.ts:5 |
value | string | - | - | BaseToken.value | base/BaseToken.ts:9 |
BlockStatement
Defined in: statement/BlockStatement/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
body | Statement[] | - | - | - | statement/BlockStatement/spec.ts:7 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | BlockStatement | - | BaseNode.type | - | statement/BlockStatement/spec.ts:6 |
BooleanLiteral
Defined in: expression/literal/BooleanLiteral/spec.ts:3
Extends
LiteralBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | LiteralBase.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | LiteralBase.range | base/NodeOrTokenData.ts:14 |
raw | "false" | "true" | - | LiteralBase.raw | - | expression/literal/BooleanLiteral/spec.ts:4 |
type | Literal | - | - | LiteralBase.type | base/LiteralBase.ts:5 |
value | boolean | - | LiteralBase.value | - | expression/literal/BooleanLiteral/spec.ts:5 |
BooleanToken
Defined in: token/BooleanToken/spec.ts:4
Extends
BaseToken
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseToken.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseToken.range | base/NodeOrTokenData.ts:14 |
type | Boolean | - | BaseToken.type | - | token/BooleanToken/spec.ts:5 |
value | string | - | - | BaseToken.value | base/BaseToken.ts:9 |
BreakStatement
Defined in: statement/BreakStatement/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
label | null | Identifier | - | - | - | statement/BreakStatement/spec.ts:7 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | BreakStatement | - | BaseNode.type | - | statement/BreakStatement/spec.ts:6 |
CallExpression
Defined in: expression/CallExpression/spec.ts:7
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
arguments | CallExpressionArgument[] | - | - | - | expression/CallExpression/spec.ts:9 |
callee | Expression | - | - | - | expression/CallExpression/spec.ts:10 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
optional | boolean | - | - | - | expression/CallExpression/spec.ts:11 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | CallExpression | - | BaseNode.type | - | expression/CallExpression/spec.ts:8 |
typeArguments | | undefined | TSTypeParameterInstantiation | - | - | - | expression/CallExpression/spec.ts:12 |
CatchClause
Defined in: special/CatchClause/spec.ts:6
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
body | BlockStatement | - | - | - | special/CatchClause/spec.ts:8 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
param | null | BindingName | - | - | - | special/CatchClause/spec.ts:9 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | CatchClause | - | BaseNode.type | - | special/CatchClause/spec.ts:7 |
ChainExpression
Defined in: expression/ChainExpression/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
expression | ChainElement | - | - | - | expression/ChainExpression/spec.ts:7 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | ChainExpression | - | BaseNode.type | - | expression/ChainExpression/spec.ts:6 |
ClassBody
Defined in: special/ClassBody/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
body | ClassElement[] | - | - | - | special/ClassBody/spec.ts:7 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | ClassBody | - | BaseNode.type | - | special/ClassBody/spec.ts:6 |
ClassDeclarationWithName
Defined in: declaration/ClassDeclaration/spec.ts:15
A normal class declaration:
class A {}
Extends
ClassDeclarationBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
abstract | boolean | Whether the class is an abstract class. Example abstract class Foo {} | - | ClassDeclarationBase.abstract | base/ClassBase.ts:18 |
body | ClassBody | The class body. | - | ClassDeclarationBase.body | base/ClassBase.ts:22 |
declare | boolean | Whether the class has been declared: Example declare class Foo {} | - | ClassDeclarationBase.declare | base/ClassBase.ts:30 |
decorators | Decorator[] | The decorators declared for the class. Example @deco class Foo {} | - | ClassDeclarationBase.decorators | base/ClassBase.ts:39 |
id | Identifier | The class's name. - For a ClassExpression this may be null if the name is omitted. - For a ClassDeclaration this may be null if and only if the parent is an ExportDefaultDeclaration. | ClassDeclarationBase.id | - | declaration/ClassDeclaration/spec.ts:16 |
implements | TSClassImplements[] | The implemented interfaces for the class. | - | ClassDeclarationBase.implements | base/ClassBase.ts:50 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | ClassDeclarationBase.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | ClassDeclarationBase.range | base/NodeOrTokenData.ts:14 |
superClass | null | LeftHandSideExpression | The super class this class extends. | - | ClassDeclarationBase.superClass | base/ClassBase.ts:54 |
superTypeArguments | | undefined | TSTypeParameterInstantiation | The generic type parameters passed to the superClass. | - | ClassDeclarationBase.superTypeArguments | base/ClassBase.ts:58 |
type | ClassDeclaration | - | - | ClassDeclarationBase.type | declaration/ClassDeclaration/spec.ts:6 |
typeParameters | | undefined | TSTypeParameterDeclaration | The generic type parameters declared for the class. | - | ClassDeclarationBase.typeParameters | base/ClassBase.ts:62 |
ClassDeclarationWithOptionalName
Defined in: declaration/ClassDeclaration/spec.ts:25
Default-exported class declarations have optional names:
export default class {}
Extends
ClassDeclarationBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
abstract | boolean | Whether the class is an abstract class. Example abstract class Foo {} | - | ClassDeclarationBase.abstract | base/ClassBase.ts:18 |
body | ClassBody | The class body. | - | ClassDeclarationBase.body | base/ClassBase.ts:22 |
declare | boolean | Whether the class has been declared: Example declare class Foo {} | - | ClassDeclarationBase.declare | base/ClassBase.ts:30 |
decorators | Decorator[] | The decorators declared for the class. Example @deco class Foo {} | - | ClassDeclarationBase.decorators | base/ClassBase.ts:39 |
id | null | Identifier | The class's name. - For a ClassExpression this may be null if the name is omitted. - For a ClassDeclaration this may be null if and only if the parent is an ExportDefaultDeclaration. | ClassDeclarationBase.id | - | declaration/ClassDeclaration/spec.ts:26 |
implements | TSClassImplements[] | The implemented interfaces for the class. | - | ClassDeclarationBase.implements | base/ClassBase.ts:50 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | ClassDeclarationBase.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | ClassDeclarationBase.range | base/NodeOrTokenData.ts:14 |
superClass | null | LeftHandSideExpression | The super class this class extends. | - | ClassDeclarationBase.superClass | base/ClassBase.ts:54 |
superTypeArguments | | undefined | TSTypeParameterInstantiation | The generic type parameters passed to the superClass. | - | ClassDeclarationBase.superTypeArguments | base/ClassBase.ts:58 |
type | ClassDeclaration | - | - | ClassDeclarationBase.type | declaration/ClassDeclaration/spec.ts:6 |
typeParameters | | undefined | TSTypeParameterDeclaration | The generic type parameters declared for the class. | - | ClassDeclarationBase.typeParameters | base/ClassBase.ts:62 |
ClassExpression
Defined in: expression/ClassExpression/spec.ts:4
Extends
ClassBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
abstract | false | Whether the class is an abstract class. Example abstract class Foo {} | ClassBase.abstract | - | expression/ClassExpression/spec.ts:6 |
body | ClassBody | The class body. | - | ClassBase.body | base/ClassBase.ts:22 |
declare | false | Whether the class has been declared: Example declare class Foo {} | ClassBase.declare | - | expression/ClassExpression/spec.ts:7 |
decorators | Decorator[] | The decorators declared for the class. Example @deco class Foo {} | - | ClassBase.decorators | base/ClassBase.ts:39 |
id | null | Identifier | The class's name. - For a ClassExpression this may be null if the name is omitted. - For a ClassDeclaration this may be null if and only if the parent is an ExportDefaultDeclaration. | - | ClassBase.id | base/ClassBase.ts:46 |
implements | TSClassImplements[] | The implemented interfaces for the class. | - | ClassBase.implements | base/ClassBase.ts:50 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | ClassBase.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | ClassBase.range | base/NodeOrTokenData.ts:14 |
superClass | null | LeftHandSideExpression | The super class this class extends. | - | ClassBase.superClass | base/ClassBase.ts:54 |
superTypeArguments | | undefined | TSTypeParameterInstantiation | The generic type parameters passed to the superClass. | - | ClassBase.superTypeArguments | base/ClassBase.ts:58 |
type | ClassExpression | - | ClassBase.type | - | expression/ClassExpression/spec.ts:5 |
typeParameters | | undefined | TSTypeParameterDeclaration | The generic type parameters declared for the class. | - | ClassBase.typeParameters | base/ClassBase.ts:62 |
ConditionalExpression
Defined in: expression/ConditionalExpression/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
alternate | Expression | - | - | - | expression/ConditionalExpression/spec.ts:7 |
consequent | Expression | - | - | - | expression/ConditionalExpression/spec.ts:8 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
test | Expression | - | - | - | expression/ConditionalExpression/spec.ts:9 |
type | ConditionalExpression | - | BaseNode.type | - | expression/ConditionalExpression/spec.ts:6 |
ConstDeclaration
Defined in: declaration/VariableDeclaration/spec.ts:75
Extends
LetOrConstOrVarDeclarationBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
declarations | VariableDeclaratorMaybeInit[] | In a declare const declaration, the declarators may have initializers, but not definite assignment assertions. Each declarator cannot have both an initializer and a type annotation. Even if the declaration has no declare, it may still be ambient and have no initializer. | LetOrConstOrVarDeclarationBase.declarations | - | declaration/VariableDeclaration/spec.ts:84 |
declare | boolean | Whether the declaration is declared Example declare const x = 1; | - | LetOrConstOrVarDeclarationBase.declare | declaration/VariableDeclaration/spec.ts:31 |
kind | "const" | The keyword used to declare the variable(s) Example const x = 1; let y = 2; var z = 3; | LetOrConstOrVarDeclarationBase.kind | - | declaration/VariableDeclaration/spec.ts:85 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | LetOrConstOrVarDeclarationBase.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | LetOrConstOrVarDeclarationBase.range | base/NodeOrTokenData.ts:14 |
type | VariableDeclaration | - | - | LetOrConstOrVarDeclarationBase.type | declaration/VariableDeclaration/spec.ts:13 |
ContinueStatement
Defined in: statement/ContinueStatement/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
label | null | Identifier | - | - | - | statement/ContinueStatement/spec.ts:7 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | ContinueStatement | - | BaseNode.type | - | statement/ContinueStatement/spec.ts:6 |
DebuggerStatement
Defined in: statement/DebuggerStatement/spec.ts:4
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | DebuggerStatement | - | BaseNode.type | - | statement/DebuggerStatement/spec.ts:5 |
Decorator
Defined in: special/Decorator/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
expression | LeftHandSideExpression | - | - | - | special/Decorator/spec.ts:7 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | Decorator | - | BaseNode.type | - | special/Decorator/spec.ts:6 |
DoWhileStatement
Defined in: statement/DoWhileStatement/spec.ts:6
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
body | Statement | - | - | - | statement/DoWhileStatement/spec.ts:8 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
test | Expression | - | - | - | statement/DoWhileStatement/spec.ts:9 |
type | DoWhileStatement | - | BaseNode.type | - | statement/DoWhileStatement/spec.ts:7 |
EmptyStatement
Defined in: special/EmptyStatement/spec.ts:4
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | EmptyStatement | - | BaseNode.type | - | special/EmptyStatement/spec.ts:5 |
ExportAllDeclaration
Defined in: declaration/ExportAllDeclaration/spec.ts:8
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
assertions | ImportAttribute[] | The assertions declared for the export. Example export * from 'mod' assert \{ type: 'json' \}; Deprecated Replaced with `attributes`. | - | - | declaration/ExportAllDeclaration/spec.ts:18 |
attributes | ImportAttribute[] | The attributes declared for the export. Example export * from 'mod' with \{ type: 'json' \}; | - | - | declaration/ExportAllDeclaration/spec.ts:26 |
exported | null | Identifier | The name for the exported items (as X). null if no name is assigned. | - | - | declaration/ExportAllDeclaration/spec.ts:30 |
exportKind | ExportAndImportKind | The kind of the export. | - | - | declaration/ExportAllDeclaration/spec.ts:34 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
source | StringLiteral | The source module being exported from. | - | - | declaration/ExportAllDeclaration/spec.ts:38 |
type | ExportAllDeclaration | - | BaseNode.type | - | declaration/ExportAllDeclaration/spec.ts:9 |
ExportDefaultDeclaration
Defined in: declaration/ExportDefaultDeclaration/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
declaration | DefaultExportDeclarations | The declaration being exported. | - | - | declaration/ExportDefaultDeclaration/spec.ts:10 |
exportKind | "value" | The kind of the export. Always value for default exports. | - | - | declaration/ExportDefaultDeclaration/spec.ts:14 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | ExportDefaultDeclaration | - | BaseNode.type | - | declaration/ExportDefaultDeclaration/spec.ts:6 |
ExportNamedDeclarationWithoutSourceWithMultiple
Defined in: declaration/ExportNamedDeclaration/spec.ts:68
Exporting names from the current module.
export {};
export { a, b };
Extends
ExportNamedDeclarationBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
assertions | ImportAttribute[] | This will always be an empty array. Deprecated Replaced with `attributes`. | ExportNamedDeclarationBase.assertions | - | declaration/ExportNamedDeclaration/spec.ts:74 |
attributes | ImportAttribute[] | This will always be an empty array. | ExportNamedDeclarationBase.attributes | - | declaration/ExportNamedDeclaration/spec.ts:78 |
declaration | null | The exported declaration. Example export const x = 1; This will be null if source is not null, or if there are specifiers | ExportNamedDeclarationBase.declaration | - | declaration/ExportNamedDeclaration/spec.ts:79 |
exportKind | ExportAndImportKind | The kind of the export. | - | ExportNamedDeclarationBase.exportKind | declaration/ExportNamedDeclaration/spec.ts:45 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | ExportNamedDeclarationBase.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | ExportNamedDeclarationBase.range | base/NodeOrTokenData.ts:14 |
source | null | The source module being exported from. | ExportNamedDeclarationBase.source | - | declaration/ExportNamedDeclaration/spec.ts:80 |
specifiers | ExportSpecifierWithIdentifierLocal[] | The specifiers being exported. Example export { a, b }; This will be an empty array if declaration is not null | ExportNamedDeclarationBase.specifiers | - | declaration/ExportNamedDeclaration/spec.ts:82 |
type | ExportNamedDeclaration | - | - | ExportNamedDeclarationBase.type | declaration/ExportNamedDeclaration/spec.ts:13 |
ExportNamedDeclarationWithoutSourceWithSingle
Defined in: declaration/ExportNamedDeclaration/spec.ts:91
Exporting a single named declaration.
export const x = 1;
Extends
ExportNamedDeclarationBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
assertions | ImportAttribute[] | This will always be an empty array. Deprecated Replaced with `attributes`. | ExportNamedDeclarationBase.assertions | - | declaration/ExportNamedDeclaration/spec.ts:97 |
attributes | ImportAttribute[] | This will always be an empty array. | ExportNamedDeclarationBase.attributes | - | declaration/ExportNamedDeclaration/spec.ts:101 |
declaration | NamedExportDeclarations | The exported declaration. Example export const x = 1; This will be null if source is not null, or if there are specifiers | ExportNamedDeclarationBase.declaration | - | declaration/ExportNamedDeclaration/spec.ts:102 |
exportKind | ExportAndImportKind | The kind of the export. | - | ExportNamedDeclarationBase.exportKind | declaration/ExportNamedDeclaration/spec.ts:45 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | ExportNamedDeclarationBase.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | ExportNamedDeclarationBase.range | base/NodeOrTokenData.ts:14 |
source | null | The source module being exported from. | ExportNamedDeclarationBase.source | - | declaration/ExportNamedDeclaration/spec.ts:103 |
specifiers | ExportSpecifierWithIdentifierLocal[] | This will always be an empty array. | ExportNamedDeclarationBase.specifiers | - | declaration/ExportNamedDeclaration/spec.ts:107 |
type | ExportNamedDeclaration | - | - | ExportNamedDeclarationBase.type | declaration/ExportNamedDeclaration/spec.ts:13 |
ExportNamedDeclarationWithSource
Defined in: declaration/ExportNamedDeclaration/spec.ts:116
Export names from another module.
export { a, b } from 'mod';
Extends
ExportNamedDeclarationBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
assertions | ImportAttribute[] | The assertions declared for the export. Example export { foo } from 'mod' assert \{ type: 'json' \}; This will be an empty array if source is null Deprecated Replaced with `attributes`. | - | ExportNamedDeclarationBase.assertions | declaration/ExportNamedDeclaration/spec.ts:23 |
attributes | ImportAttribute[] | The attributes declared for the export. Example export { foo } from 'mod' with \{ type: 'json' \}; This will be an empty array if source is null | - | ExportNamedDeclarationBase.attributes | declaration/ExportNamedDeclaration/spec.ts:32 |
declaration | null | The exported declaration. Example export const x = 1; This will be null if source is not null, or if there are specifiers | ExportNamedDeclarationBase.declaration | - | declaration/ExportNamedDeclaration/spec.ts:118 |
exportKind | ExportAndImportKind | The kind of the export. | - | ExportNamedDeclarationBase.exportKind | declaration/ExportNamedDeclaration/spec.ts:45 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | ExportNamedDeclarationBase.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | ExportNamedDeclarationBase.range | base/NodeOrTokenData.ts:14 |
source | StringLiteral | The source module being exported from. | ExportNamedDeclarationBase.source | - | declaration/ExportNamedDeclaration/spec.ts:119 |
specifiers | ExportSpecifier[] | The specifiers being exported. Example export { a, b }; This will be an empty array if declaration is not null | - | ExportNamedDeclarationBase.specifiers | declaration/ExportNamedDeclaration/spec.ts:58 |
type | ExportNamedDeclaration | - | - | ExportNamedDeclarationBase.type | declaration/ExportNamedDeclaration/spec.ts:13 |
ExportSpecifierWithIdentifierLocal
Defined in: special/ExportSpecifier/spec.ts:14
Extends
ExportSpecifierBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
exported | Identifier | StringLiteral | - | - | ExportSpecifierBase.exported | special/ExportSpecifier/spec.ts:9 |
exportKind | ExportAndImportKind | - | - | ExportSpecifierBase.exportKind | special/ExportSpecifier/spec.ts:10 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | ExportSpecifierBase.loc | base/NodeOrTokenData.ts:12 |
local | Identifier | - | ExportSpecifierBase.local | - | special/ExportSpecifier/spec.ts:16 |
range | Range | - | - | ExportSpecifierBase.range | base/NodeOrTokenData.ts:14 |
type | ExportSpecifier | - | - | ExportSpecifierBase.type | special/ExportSpecifier/spec.ts:8 |
ExportSpecifierWithStringOrLiteralLocal
Defined in: special/ExportSpecifier/spec.ts:19
Extends
ExportSpecifierBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
exported | Identifier | StringLiteral | - | - | ExportSpecifierBase.exported | special/ExportSpecifier/spec.ts:9 |
exportKind | ExportAndImportKind | - | - | ExportSpecifierBase.exportKind | special/ExportSpecifier/spec.ts:10 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | ExportSpecifierBase.loc | base/NodeOrTokenData.ts:12 |
local | Identifier | StringLiteral | - | ExportSpecifierBase.local | - | special/ExportSpecifier/spec.ts:21 |
range | Range | - | - | ExportSpecifierBase.range | base/NodeOrTokenData.ts:14 |
type | ExportSpecifier | - | - | ExportSpecifierBase.type | special/ExportSpecifier/spec.ts:8 |
ExpressionStatement
Defined in: statement/ExpressionStatement/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
directive | undefined | string | - | - | - | statement/ExpressionStatement/spec.ts:7 |
expression | Expression | - | - | - | statement/ExpressionStatement/spec.ts:8 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | ExpressionStatement | - | BaseNode.type | - | statement/ExpressionStatement/spec.ts:6 |
ForInStatement
Defined in: statement/ForInStatement/spec.ts:7
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
body | Statement | - | - | - | statement/ForInStatement/spec.ts:9 |
left | ForInitialiser | - | - | - | statement/ForInStatement/spec.ts:10 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
right | Expression | - | - | - | statement/ForInStatement/spec.ts:11 |
type | ForInStatement | - | BaseNode.type | - | statement/ForInStatement/spec.ts:8 |
ForOfStatement
Defined in: statement/ForOfStatement/spec.ts:7
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
await | boolean | - | - | - | statement/ForOfStatement/spec.ts:9 |
body | Statement | - | - | - | statement/ForOfStatement/spec.ts:10 |
left | ForOfInitialiser | - | - | - | statement/ForOfStatement/spec.ts:11 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
right | Expression | - | - | - | statement/ForOfStatement/spec.ts:12 |
type | ForOfStatement | - | BaseNode.type | - | statement/ForOfStatement/spec.ts:8 |
ForStatement
Defined in: statement/ForStatement/spec.ts:7
Extends
Properties
FunctionDeclarationWithName
Defined in: declaration/FunctionDeclaration/spec.ts:19
A normal function declaration:
function f() {}
Extends
FunctionDeclarationBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
async | boolean | Whether the function is async: async function foo() {} const x = async function () {} const x = async () => {} | - | FunctionDeclarationBase.async | base/FunctionBase.ts:18 |
body | BlockStatement | The body of the function. - For an ArrowFunctionExpression this may be an Expression or BlockStatement. - For a FunctionDeclaration or FunctionExpression this is always a BlockStatement. - For a TSDeclareFunction this is always undefined. - For a TSEmptyBodyFunctionExpression this is always null. | - | FunctionDeclarationBase.body | declaration/FunctionDeclaration/spec.ts:8 |
declare | false | This is only true if and only if the node is a TSDeclareFunction and it has declare: declare function foo() {} | - | FunctionDeclarationBase.declare | declaration/FunctionDeclaration/spec.ts:9 |
expression | false | This is only ever true if and only the node is an ArrowFunctionExpression and the body is an expression: (() => 1) | - | FunctionDeclarationBase.expression | declaration/FunctionDeclaration/spec.ts:10 |
generator | boolean | Whether the function is a generator function: function *foo() {} const x = function *() {} This is always false for arrow functions as they cannot be generators. | - | FunctionDeclarationBase.generator | base/FunctionBase.ts:50 |
id | Identifier | The function's name. - For an ArrowFunctionExpression this is always null. - For a FunctionExpression this may be null if the name is omitted. - For a FunctionDeclaration or TSDeclareFunction this may be null if and only if the parent is an ExportDefaultDeclaration. | FunctionDeclarationBase.id | - | declaration/FunctionDeclaration/spec.ts:20 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | FunctionDeclarationBase.loc | base/NodeOrTokenData.ts:12 |
params | Parameter[] | The list of parameters declared for the function. | - | FunctionDeclarationBase.params | base/FunctionBase.ts:62 |
range | Range | - | - | FunctionDeclarationBase.range | base/NodeOrTokenData.ts:14 |
returnType | undefined | TSTypeAnnotation | The return type annotation for the function. | - | FunctionDeclarationBase.returnType | base/FunctionBase.ts:66 |
type | FunctionDeclaration | - | - | FunctionDeclarationBase.type | declaration/FunctionDeclaration/spec.ts:7 |
typeParameters | | undefined | TSTypeParameterDeclaration | The generic type parameter declaration for the function. | - | FunctionDeclarationBase.typeParameters | base/FunctionBase.ts:70 |
FunctionDeclarationWithOptionalName
Defined in: declaration/FunctionDeclaration/spec.ts:29
Default-exported function declarations have optional names:
export default function () {}
Extends
FunctionDeclarationBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
async | boolean | Whether the function is async: async function foo() {} const x = async function () {} const x = async () => {} | - | FunctionDeclarationBase.async | base/FunctionBase.ts:18 |
body | BlockStatement | The body of the function. - For an ArrowFunctionExpression this may be an Expression or BlockStatement. - For a FunctionDeclaration or FunctionExpression this is always a BlockStatement. - For a TSDeclareFunction this is always undefined. - For a TSEmptyBodyFunctionExpression this is always null. | - | FunctionDeclarationBase.body | declaration/FunctionDeclaration/spec.ts:8 |
declare | false | This is only true if and only if the node is a TSDeclareFunction and it has declare: declare function foo() {} | - | FunctionDeclarationBase.declare | declaration/FunctionDeclaration/spec.ts:9 |
expression | false | This is only ever true if and only the node is an ArrowFunctionExpression and the body is an expression: (() => 1) | - | FunctionDeclarationBase.expression | declaration/FunctionDeclaration/spec.ts:10 |
generator | boolean | Whether the function is a generator function: function *foo() {} const x = function *() {} This is always false for arrow functions as they cannot be generators. | - | FunctionDeclarationBase.generator | base/FunctionBase.ts:50 |
id | null | Identifier | The function's name. - For an ArrowFunctionExpression this is always null. - For a FunctionExpression this may be null if the name is omitted. - For a FunctionDeclaration or TSDeclareFunction this may be null if and only if the parent is an ExportDefaultDeclaration. | FunctionDeclarationBase.id | - | declaration/FunctionDeclaration/spec.ts:31 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | FunctionDeclarationBase.loc | base/NodeOrTokenData.ts:12 |
params | Parameter[] | The list of parameters declared for the function. | - | FunctionDeclarationBase.params | base/FunctionBase.ts:62 |
range | Range | - | - | FunctionDeclarationBase.range | base/NodeOrTokenData.ts:14 |
returnType | undefined | TSTypeAnnotation | The return type annotation for the function. | - | FunctionDeclarationBase.returnType | base/FunctionBase.ts:66 |
type | FunctionDeclaration | - | - | FunctionDeclarationBase.type | declaration/FunctionDeclaration/spec.ts:7 |
typeParameters | | undefined | TSTypeParameterDeclaration | The generic type parameter declaration for the function. | - | FunctionDeclarationBase.typeParameters | base/FunctionBase.ts:70 |
FunctionExpression
Defined in: expression/FunctionExpression/spec.ts:5
Extends
FunctionBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
async | boolean | Whether the function is async: async function foo() {} const x = async function () {} const x = async () => {} | - | FunctionBase.async | base/FunctionBase.ts:18 |
body | BlockStatement | The body of the function. - For an ArrowFunctionExpression this may be an Expression or BlockStatement. - For a FunctionDeclaration or FunctionExpression this is always a BlockStatement. - For a TSDeclareFunction this is always undefined. - For a TSEmptyBodyFunctionExpression this is always null. | FunctionBase.body | - | expression/FunctionExpression/spec.ts:7 |
declare | boolean | This is only true if and only if the node is a TSDeclareFunction and it has declare: declare function foo() {} | - | FunctionBase.declare | base/FunctionBase.ts:33 |
expression | false | This is only ever true if and only the node is an ArrowFunctionExpression and the body is an expression: (() => 1) | FunctionBase.expression | - | expression/FunctionExpression/spec.ts:8 |
generator | boolean | Whether the function is a generator function: function *foo() {} const x = function *() {} This is always false for arrow functions as they cannot be generators. | - | FunctionBase.generator | base/FunctionBase.ts:50 |
id | null | Identifier | The function's name. - For an ArrowFunctionExpression this is always null. - For a FunctionExpression this may be null if the name is omitted. - For a FunctionDeclaration or TSDeclareFunction this may be null if and only if the parent is an ExportDefaultDeclaration. | - | FunctionBase.id | base/FunctionBase.ts:58 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | FunctionBase.loc | base/NodeOrTokenData.ts:12 |
params | Parameter[] | The list of parameters declared for the function. | - | FunctionBase.params | base/FunctionBase.ts:62 |
range | Range | - | - | FunctionBase.range | base/NodeOrTokenData.ts:14 |
returnType | undefined | TSTypeAnnotation | The return type annotation for the function. | - | FunctionBase.returnType | base/FunctionBase.ts:66 |
type | FunctionExpression | - | FunctionBase.type | - | expression/FunctionExpression/spec.ts:6 |
typeParameters | | undefined | TSTypeParameterDeclaration | The generic type parameter declaration for the function. | - | FunctionBase.typeParameters | base/FunctionBase.ts:70 |
Identifier
Defined in: expression/Identifier/spec.ts:6
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
decorators | Decorator[] | - | - | - | expression/Identifier/spec.ts:8 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
name | string | - | - | - | expression/Identifier/spec.ts:9 |
optional | boolean | - | - | - | expression/Identifier/spec.ts:10 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | Identifier | - | BaseNode.type | - | expression/Identifier/spec.ts:7 |
typeAnnotation | undefined | TSTypeAnnotation | - | - | - | expression/Identifier/spec.ts:11 |
IdentifierToken
Defined in: token/IdentifierToken/spec.ts:4
Extends
BaseToken
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseToken.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseToken.range | base/NodeOrTokenData.ts:14 |
type | Identifier | - | BaseToken.type | - | token/IdentifierToken/spec.ts:5 |
value | string | - | - | BaseToken.value | base/BaseToken.ts:9 |
IfStatement
Defined in: statement/IfStatement/spec.ts:6
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
alternate | null | Statement | - | - | - | statement/IfStatement/spec.ts:8 |
consequent | Statement | - | - | - | statement/IfStatement/spec.ts:9 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
test | Expression | - | - | - | statement/IfStatement/spec.ts:10 |
type | IfStatement | - | BaseNode.type | - | statement/IfStatement/spec.ts:7 |
ImportAttribute
Defined in: special/ImportAttribute/spec.ts:6
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
key | Identifier | Literal | - | - | - | special/ImportAttribute/spec.ts:8 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | ImportAttribute | - | BaseNode.type | - | special/ImportAttribute/spec.ts:7 |
value | Literal | - | - | - | special/ImportAttribute/spec.ts:9 |
ImportDeclaration
Defined in: declaration/ImportDeclaration/spec.ts:8
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
assertions | ImportAttribute[] | The assertions declared for the export. Example import * from 'mod' assert \{ type: 'json' \}; Deprecated Replaced with `attributes`. | - | - | declaration/ImportDeclaration/spec.ts:18 |
attributes | ImportAttribute[] | The attributes declared for the export. Example import * from 'mod' with \{ type: 'json' \}; | - | - | declaration/ImportDeclaration/spec.ts:26 |
importKind | ExportAndImportKind | The kind of the import. | - | - | declaration/ImportDeclaration/spec.ts:30 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
source | StringLiteral | The source module being imported from. | - | - | declaration/ImportDeclaration/spec.ts:34 |
specifiers | ImportClause[] | The specifiers being imported. If this is an empty array then either there are no specifiers: import {} from 'mod'; Or it is a side-effect import: import 'mod'; | - | - | declaration/ImportDeclaration/spec.ts:46 |
type | ImportDeclaration | - | BaseNode.type | - | declaration/ImportDeclaration/spec.ts:9 |
ImportDefaultSpecifier
Defined in: special/ImportDefaultSpecifier/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
local | Identifier | - | - | - | special/ImportDefaultSpecifier/spec.ts:7 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | ImportDefaultSpecifier | - | BaseNode.type | - | special/ImportDefaultSpecifier/spec.ts:6 |
ImportExpression
Defined in: expression/ImportExpression/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
attributes | null | Expression | The attributes declared for the dynamic import. Example import('mod', \{ assert: \{ type: 'json' \} \}); Deprecated Replaced with `options`. | - | - | expression/ImportExpression/spec.ts:15 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
options | null | Expression | The options bag declared for the dynamic import. Example import('mod', \{ assert: \{ type: 'json' \} \}); | - | - | expression/ImportExpression/spec.ts:23 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
source | Expression | - | - | - | expression/ImportExpression/spec.ts:24 |
type | ImportExpression | - | BaseNode.type | - | expression/ImportExpression/spec.ts:6 |
ImportNamespaceSpecifier
Defined in: special/ImportNamespaceSpecifier/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
local | Identifier | - | - | - | special/ImportNamespaceSpecifier/spec.ts:7 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | ImportNamespaceSpecifier | - | BaseNode.type | - | special/ImportNamespaceSpecifier/spec.ts:6 |
ImportSpecifier
Defined in: special/ImportSpecifier/spec.ts:7
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
imported | Identifier | StringLiteral | - | - | - | special/ImportSpecifier/spec.ts:9 |
importKind | ExportAndImportKind | - | - | - | special/ImportSpecifier/spec.ts:10 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
local | Identifier | - | - | - | special/ImportSpecifier/spec.ts:11 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | ImportSpecifier | - | BaseNode.type | - | special/ImportSpecifier/spec.ts:8 |
JSXAttribute
Defined in: jsx/JSXAttribute/spec.ts:9
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
name | | JSXIdentifier | JSXNamespacedName | - | - | - | jsx/JSXAttribute/spec.ts:11 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | JSXAttribute | - | BaseNode.type | - | jsx/JSXAttribute/spec.ts:10 |
value | | null | JSXElement | Literal | JSXExpression | - | - | - | jsx/JSXAttribute/spec.ts:12 |
JSXClosingElement
Defined in: jsx/JSXClosingElement/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
name | JSXTagNameExpression | - | - | - | jsx/JSXClosingElement/spec.ts:7 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | JSXClosingElement | - | BaseNode.type | - | jsx/JSXClosingElement/spec.ts:6 |
JSXClosingFragment
Defined in: jsx/JSXClosingFragment/spec.ts:4
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | JSXClosingFragment | - | BaseNode.type | - | jsx/JSXClosingFragment/spec.ts:5 |
JSXElement
Defined in: expression/JSXElement/spec.ts:7
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
children | JSXChild[] | - | - | - | expression/JSXElement/spec.ts:9 |
closingElement | null | JSXClosingElement | - | - | - | expression/JSXElement/spec.ts:10 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
openingElement | JSXOpeningElement | - | - | - | expression/JSXElement/spec.ts:11 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | JSXElement | - | BaseNode.type | - | expression/JSXElement/spec.ts:8 |
JSXEmptyExpression
Defined in: jsx/JSXEmptyExpression/spec.ts:4
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | JSXEmptyExpression | - | BaseNode.type | - | jsx/JSXEmptyExpression/spec.ts:5 |
JSXExpressionContainer
Defined in: jsx/JSXExpressionContainer/spec.ts:6
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
expression | | Expression | JSXEmptyExpression | - | - | - | jsx/JSXExpressionContainer/spec.ts:8 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | JSXExpressionContainer | - | BaseNode.type | - | jsx/JSXExpressionContainer/spec.ts:7 |
JSXFragment
Defined in: expression/JSXFragment/spec.ts:7
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
children | JSXChild[] | - | - | - | expression/JSXFragment/spec.ts:9 |
closingFragment | JSXClosingFragment | - | - | - | expression/JSXFragment/spec.ts:10 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
openingFragment | JSXOpeningFragment | - | - | - | expression/JSXFragment/spec.ts:11 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | JSXFragment | - | BaseNode.type | - | expression/JSXFragment/spec.ts:8 |
JSXIdentifier
Defined in: jsx/JSXIdentifier/spec.ts:4
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
name | string | - | - | - | jsx/JSXIdentifier/spec.ts:6 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | JSXIdentifier | - | BaseNode.type | - | jsx/JSXIdentifier/spec.ts:5 |
JSXIdentifierToken
Defined in: token/JSXIdentifierToken/spec.ts:4
Extends
BaseToken
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseToken.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseToken.range | base/NodeOrTokenData.ts:14 |
type | JSXIdentifier | - | BaseToken.type | - | token/JSXIdentifierToken/spec.ts:5 |
value | string | - | - | BaseToken.value | base/BaseToken.ts:9 |
JSXMemberExpression
Defined in: jsx/JSXMemberExpression/spec.ts:6
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
object | JSXTagNameExpression | - | - | - | jsx/JSXMemberExpression/spec.ts:8 |
property | JSXIdentifier | - | - | - | jsx/JSXMemberExpression/spec.ts:9 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | JSXMemberExpression | - | BaseNode.type | - | jsx/JSXMemberExpression/spec.ts:7 |
JSXNamespacedName
Defined in: jsx/JSXNamespacedName/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
name | JSXIdentifier | - | - | - | jsx/JSXNamespacedName/spec.ts:7 |
namespace | JSXIdentifier | - | - | - | jsx/JSXNamespacedName/spec.ts:8 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | JSXNamespacedName | - | BaseNode.type | - | jsx/JSXNamespacedName/spec.ts:6 |
JSXOpeningElement
Defined in: jsx/JSXOpeningElement/spec.ts:8
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
attributes | ( | JSXAttribute | JSXSpreadAttribute)[] | - | - | - | jsx/JSXOpeningElement/spec.ts:10 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
name | JSXTagNameExpression | - | - | - | jsx/JSXOpeningElement/spec.ts:11 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
selfClosing | boolean | - | - | - | jsx/JSXOpeningElement/spec.ts:12 |
type | JSXOpeningElement | - | BaseNode.type | - | jsx/JSXOpeningElement/spec.ts:9 |
typeArguments | | undefined | TSTypeParameterInstantiation | - | - | - | jsx/JSXOpeningElement/spec.ts:13 |
JSXOpeningFragment
Defined in: jsx/JSXOpeningFragment/spec.ts:4
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | JSXOpeningFragment | - | BaseNode.type | - | jsx/JSXOpeningFragment/spec.ts:5 |
JSXSpreadAttribute
Defined in: jsx/JSXSpreadAttribute/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
argument | Expression | - | - | - | jsx/JSXSpreadAttribute/spec.ts:7 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | JSXSpreadAttribute | - | BaseNode.type | - | jsx/JSXSpreadAttribute/spec.ts:6 |
JSXSpreadChild
Defined in: jsx/JSXSpreadChild/spec.ts:6
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
expression | | Expression | JSXEmptyExpression | - | - | - | jsx/JSXSpreadChild/spec.ts:8 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | JSXSpreadChild | - | BaseNode.type | - | jsx/JSXSpreadChild/spec.ts:7 |
JSXText
Defined in: jsx/JSXText/spec.ts:4
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
raw | string | - | - | - | jsx/JSXText/spec.ts:6 |
type | JSXText | - | BaseNode.type | - | jsx/JSXText/spec.ts:5 |
value | string | - | - | - | jsx/JSXText/spec.ts:7 |
JSXTextToken
Defined in: token/JSXTextToken/spec.ts:4
Extends
BaseToken
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseToken.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseToken.range | base/NodeOrTokenData.ts:14 |
type | JSXText | - | BaseToken.type | - | token/JSXTextToken/spec.ts:5 |
value | string | - | - | BaseToken.value | base/BaseToken.ts:9 |
KeywordToken
Defined in: token/KeywordToken/spec.ts:4
Extends
BaseToken
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseToken.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseToken.range | base/NodeOrTokenData.ts:14 |
type | Keyword | - | BaseToken.type | - | token/KeywordToken/spec.ts:5 |
value | string | - | - | BaseToken.value | base/BaseToken.ts:9 |
LabeledStatement
Defined in: statement/LabeledStatement/spec.ts:6
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
body | Statement | - | - | - | statement/LabeledStatement/spec.ts:8 |
label | Identifier | - | - | - | statement/LabeledStatement/spec.ts:9 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | LabeledStatement | - | BaseNode.type | - | statement/LabeledStatement/spec.ts:7 |
LetOrVarDeclaredDeclaration
Defined in: declaration/VariableDeclaration/spec.ts:44
Extends
LetOrConstOrVarDeclarationBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
declarations | VariableDeclaratorNoInit[] | In a declare let declaration, the declarators must not have definite assignment assertions or initializers. Example using x = 1; using y =1, z = 2; | LetOrConstOrVarDeclarationBase.declarations | - | declaration/VariableDeclaration/spec.ts:56 |
declare | true | Whether the declaration is declared Example declare const x = 1; | LetOrConstOrVarDeclarationBase.declare | - | declaration/VariableDeclaration/spec.ts:57 |
kind | "let" | "var" | The keyword used to declare the variable(s) Example const x = 1; let y = 2; var z = 3; | LetOrConstOrVarDeclarationBase.kind | - | declaration/VariableDeclaration/spec.ts:58 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | LetOrConstOrVarDeclarationBase.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | LetOrConstOrVarDeclarationBase.range | base/NodeOrTokenData.ts:14 |
type | VariableDeclaration | - | - | LetOrConstOrVarDeclarationBase.type | declaration/VariableDeclaration/spec.ts:13 |
LetOrVarNonDeclaredDeclaration
Defined in: declaration/VariableDeclaration/spec.ts:61
Extends
LetOrConstOrVarDeclarationBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
declarations | ( | VariableDeclaratorMaybeInit | VariableDeclaratorDefiniteAssignment)[] | In a let/var declaration, the declarators may have definite assignment assertions or initializers, but not both. | LetOrConstOrVarDeclarationBase.declarations | - | declaration/VariableDeclaration/spec.ts:67 |
declare | false | Whether the declaration is declared Example declare const x = 1; | LetOrConstOrVarDeclarationBase.declare | - | declaration/VariableDeclaration/spec.ts:71 |
kind | "let" | "var" | The keyword used to declare the variable(s) Example const x = 1; let y = 2; var z = 3; | LetOrConstOrVarDeclarationBase.kind | - | declaration/VariableDeclaration/spec.ts:72 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | LetOrConstOrVarDeclarationBase.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | LetOrConstOrVarDeclarationBase.range | base/NodeOrTokenData.ts:14 |
type | VariableDeclaration | - | - | LetOrConstOrVarDeclarationBase.type | declaration/VariableDeclaration/spec.ts:13 |
LineComment
Defined in: token/LineComment/spec.ts:4
Extends
BaseToken
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseToken.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseToken.range | base/NodeOrTokenData.ts:14 |
type | Line | - | BaseToken.type | - | token/LineComment/spec.ts:5 |
value | string | - | - | BaseToken.value | base/BaseToken.ts:9 |
LogicalExpression
Defined in: expression/LogicalExpression/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
left | Expression | - | - | - | expression/LogicalExpression/spec.ts:7 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
operator | "&&" | "||" | "??" | - | - | - | expression/LogicalExpression/spec.ts:8 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
right | Expression | - | - | - | expression/LogicalExpression/spec.ts:9 |
type | LogicalExpression | - | BaseNode.type | - | expression/LogicalExpression/spec.ts:6 |
MemberExpressionComputedName
Defined in: expression/MemberExpression/spec.ts:14
Extends
MemberExpressionBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
computed | true | - | MemberExpressionBase.computed | - | expression/MemberExpression/spec.ts:16 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | MemberExpressionBase.loc | base/NodeOrTokenData.ts:12 |
object | Expression | - | - | MemberExpressionBase.object | expression/MemberExpression/spec.ts:9 |
optional | boolean | - | - | MemberExpressionBase.optional | expression/MemberExpression/spec.ts:10 |
property | Expression | - | MemberExpressionBase.property | - | expression/MemberExpression/spec.ts:17 |
range | Range | - | - | MemberExpressionBase.range | base/NodeOrTokenData.ts:14 |
type | MemberExpression | - | MemberExpressionBase.type | - | expression/MemberExpression/spec.ts:15 |
MemberExpressionNonComputedName
Defined in: expression/MemberExpression/spec.ts:20
Extends
MemberExpressionBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
computed | false | - | MemberExpressionBase.computed | - | expression/MemberExpression/spec.ts:22 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | MemberExpressionBase.loc | base/NodeOrTokenData.ts:12 |
object | Expression | - | - | MemberExpressionBase.object | expression/MemberExpression/spec.ts:9 |
optional | boolean | - | - | MemberExpressionBase.optional | expression/MemberExpression/spec.ts:10 |
property | | Identifier | PrivateIdentifier | - | MemberExpressionBase.property | - | expression/MemberExpression/spec.ts:23 |
range | Range | - | - | MemberExpressionBase.range | base/NodeOrTokenData.ts:14 |
type | MemberExpression | - | MemberExpressionBase.type | - | expression/MemberExpression/spec.ts:21 |
MetaProperty
Defined in: expression/MetaProperty/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
meta | Identifier | - | - | - | expression/MetaProperty/spec.ts:7 |
property | Identifier | - | - | - | expression/MetaProperty/spec.ts:8 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | MetaProperty | - | BaseNode.type | - | expression/MetaProperty/spec.ts:6 |
MethodDefinitionComputedName
Defined in: element/MethodDefinition/spec.ts:7
Extends
MethodDefinitionComputedNameBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
accessibility | undefined | Accessibility | - | - | MethodDefinitionComputedNameBase.accessibility | base/MethodDefinitionBase.ts:15 |
computed | true | - | - | MethodDefinitionComputedNameBase.computed | base/MethodDefinitionBase.ts:27 |
decorators | Decorator[] | - | - | MethodDefinitionComputedNameBase.decorators | base/MethodDefinitionBase.ts:17 |
key | Expression | - | - | MethodDefinitionComputedNameBase.key | base/MethodDefinitionBase.ts:28 |
kind | "get" | "method" | "set" | "constructor" | - | - | MethodDefinitionComputedNameBase.kind | base/MethodDefinitionBase.ts:19 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | MethodDefinitionComputedNameBase.loc | base/NodeOrTokenData.ts:12 |
optional | boolean | - | - | MethodDefinitionComputedNameBase.optional | base/MethodDefinitionBase.ts:20 |
override | boolean | - | - | MethodDefinitionComputedNameBase.override | base/MethodDefinitionBase.ts:21 |
range | Range | - | - | MethodDefinitionComputedNameBase.range | base/NodeOrTokenData.ts:14 |
static | boolean | - | - | MethodDefinitionComputedNameBase.static | base/MethodDefinitionBase.ts:22 |
type | MethodDefinition | - | MethodDefinitionComputedNameBase.type | - | element/MethodDefinition/spec.ts:9 |
value | | FunctionExpression | TSEmptyBodyFunctionExpression | - | - | MethodDefinitionComputedNameBase.value | base/MethodDefinitionBase.ts:23 |
MethodDefinitionNonComputedName
Defined in: element/MethodDefinition/spec.ts:12
Extends
ClassMethodDefinitionNonComputedNameBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
accessibility | undefined | Accessibility | - | - | ClassMethodDefinitionNonComputedNameBase.accessibility | base/MethodDefinitionBase.ts:15 |
computed | false | - | - | ClassMethodDefinitionNonComputedNameBase.computed | base/MethodDefinitionBase.ts:39 |
decorators | Decorator[] | - | - | ClassMethodDefinitionNonComputedNameBase.decorators | base/MethodDefinitionBase.ts:17 |
key | ClassPropertyNameNonComputed | - | - | ClassMethodDefinitionNonComputedNameBase.key | base/MethodDefinitionBase.ts:40 |
kind | "get" | "method" | "set" | "constructor" | - | - | ClassMethodDefinitionNonComputedNameBase.kind | base/MethodDefinitionBase.ts:19 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | ClassMethodDefinitionNonComputedNameBase.loc | base/NodeOrTokenData.ts:12 |
optional | boolean | - | - | ClassMethodDefinitionNonComputedNameBase.optional | base/MethodDefinitionBase.ts:20 |
override | boolean | - | - | ClassMethodDefinitionNonComputedNameBase.override | base/MethodDefinitionBase.ts:21 |
range | Range | - | - | ClassMethodDefinitionNonComputedNameBase.range | base/NodeOrTokenData.ts:14 |
static | boolean | - | - | ClassMethodDefinitionNonComputedNameBase.static | base/MethodDefinitionBase.ts:22 |
type | MethodDefinition | - | ClassMethodDefinitionNonComputedNameBase.type | - | element/MethodDefinition/spec.ts:14 |
value | | FunctionExpression | TSEmptyBodyFunctionExpression | - | - | ClassMethodDefinitionNonComputedNameBase.value | base/MethodDefinitionBase.ts:23 |
NewExpression
Defined in: expression/NewExpression/spec.ts:7
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
arguments | CallExpressionArgument[] | - | - | - | expression/NewExpression/spec.ts:9 |
callee | Expression | - | - | - | expression/NewExpression/spec.ts:10 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | NewExpression | - | BaseNode.type | - | expression/NewExpression/spec.ts:8 |
typeArguments | | undefined | TSTypeParameterInstantiation | - | - | - | expression/NewExpression/spec.ts:11 |
NodeOrTokenData
Defined in: base/NodeOrTokenData.ts:4
Extended by
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | base/NodeOrTokenData.ts:12 |
range | Range | - | base/NodeOrTokenData.ts:14 |
type | string | - | base/NodeOrTokenData.ts:5 |
NullLiteral
Defined in: expression/literal/NullLiteral/spec.ts:3
Extends
LiteralBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | LiteralBase.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | LiteralBase.range | base/NodeOrTokenData.ts:14 |
raw | "null" | - | LiteralBase.raw | - | expression/literal/NullLiteral/spec.ts:4 |
type | Literal | - | - | LiteralBase.type | base/LiteralBase.ts:5 |
value | null | - | LiteralBase.value | - | expression/literal/NullLiteral/spec.ts:5 |
NullToken
Defined in: token/NullToken/spec.ts:4
Extends
BaseToken
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseToken.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseToken.range | base/NodeOrTokenData.ts:14 |
type | Null | - | BaseToken.type | - | token/NullToken/spec.ts:5 |
value | string | - | - | BaseToken.value | base/BaseToken.ts:9 |
NumberLiteral
Defined in: expression/literal/NumberLiteral/spec.ts:3
Extends
LiteralBase
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | LiteralBase.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | LiteralBase.range | base/NodeOrTokenData.ts:14 |
raw | string | - | - | LiteralBase.raw | base/LiteralBase.ts:6 |
type | Literal | - | - | LiteralBase.type | base/LiteralBase.ts:5 |
value | number | - | LiteralBase.value | - | expression/literal/NumberLiteral/spec.ts:4 |
NumericToken
Defined in: token/NumericToken/spec.ts:4
Extends
BaseToken
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseToken.loc | base/NodeOrTokenData.ts:12 |
range | Range | - | - | BaseToken.range | base/NodeOrTokenData.ts:14 |
type | Numeric | - | BaseToken.type | - | token/NumericToken/spec.ts:5 |
value | string | - | - | BaseToken.value | base/BaseToken.ts:9 |
ObjectExpression
Defined in: expression/ObjectExpression/spec.ts:5
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
properties | ObjectLiteralElement[] | - | - | - | expression/ObjectExpression/spec.ts:7 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | ObjectExpression | - | BaseNode.type | - | expression/ObjectExpression/spec.ts:6 |
ObjectPattern
Defined in: parameter/ObjectPattern/spec.ts:8
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
decorators | Decorator[] | - | - | - | parameter/ObjectPattern/spec.ts:10 |
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. | - | BaseNode.loc | base/NodeOrTokenData.ts:12 |
optional | boolean | - | - | - | parameter/ObjectPattern/spec.ts:11 |
properties | (RestElement | Property)[] | - | - | - | parameter/ObjectPattern/spec.ts:12 |
range | Range | - | - | BaseNode.range | base/NodeOrTokenData.ts:14 |
type | ObjectPattern | - | BaseNode.type | - | parameter/ObjectPattern/spec.ts:9 |
typeAnnotation | undefined | TSTypeAnnotation | - | - | - | parameter/ObjectPattern/spec.ts:13 |
Position
Defined in: base/Position.ts:1
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
column | number | Column number on the line (0-indexed) | base/Position.ts:5 |
line | number | Line number (1-indexed) | base/Position.ts:9 |
PrivateIdentifier
Defined in: special/PrivateIdentifier/spec.ts:4