AST Specification
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
Enumeration Member | Value | Defined in |
---|---|---|
AccessorProperty | "AccessorProperty" | ast-node-types.ts:2 |
ArrayExpression | "ArrayExpression" | ast-node-types.ts:3 |
ArrayPattern | "ArrayPattern" | ast-node-types.ts:4 |
ArrowFunctionExpression | "ArrowFunctionExpression" | ast-node-types.ts:5 |
AssignmentExpression | "AssignmentExpression" | ast-node-types.ts:6 |
AssignmentPattern | "AssignmentPattern" | ast-node-types.ts:7 |
AwaitExpression | "AwaitExpression" | ast-node-types.ts:8 |
BinaryExpression | "BinaryExpression" | ast-node-types.ts:9 |
BlockStatement | "BlockStatement" | ast-node-types.ts:10 |
BreakStatement | "BreakStatement" | ast-node-types.ts:11 |
CallExpression | "CallExpression" | ast-node-types.ts:12 |
CatchClause | "CatchClause" | ast-node-types.ts:13 |
ChainExpression | "ChainExpression" | ast-node-types.ts:14 |
ClassBody | "ClassBody" | ast-node-types.ts:15 |
ClassDeclaration | "ClassDeclaration" | ast-node-types.ts:16 |
ClassExpression | "ClassExpression" | ast-node-types.ts:17 |
ConditionalExpression | "ConditionalExpression" | ast-node-types.ts:18 |
ContinueStatement | "ContinueStatement" | ast-node-types.ts:19 |
DebuggerStatement | "DebuggerStatement" | ast-node-types.ts:20 |
Decorator | "Decorator" | ast-node-types.ts:21 |
DoWhileStatement | "DoWhileStatement" | ast-node-types.ts:22 |
EmptyStatement | "EmptyStatement" | ast-node-types.ts:23 |
ExportAllDeclaration | "ExportAllDeclaration" | ast-node-types.ts:24 |
ExportDefaultDeclaration | "ExportDefaultDeclaration" | ast-node-types.ts:25 |
ExportNamedDeclaration | "ExportNamedDeclaration" | ast-node-types.ts:26 |
ExportSpecifier | "ExportSpecifier" | ast-node-types.ts:27 |
ExpressionStatement | "ExpressionStatement" | ast-node-types.ts:28 |
ForInStatement | "ForInStatement" | ast-node-types.ts:29 |
ForOfStatement | "ForOfStatement" | ast-node-types.ts:30 |
ForStatement | "ForStatement" | ast-node-types.ts:31 |
FunctionDeclaration | "FunctionDeclaration" | ast-node-types.ts:32 |
FunctionExpression | "FunctionExpression" | ast-node-types.ts:33 |
Identifier | "Identifier" | ast-node-types.ts:34 |
IfStatement | "IfStatement" | ast-node-types.ts:35 |
ImportAttribute | "ImportAttribute" | ast-node-types.ts:36 |
ImportDeclaration | "ImportDeclaration" | ast-node-types.ts:37 |
ImportDefaultSpecifier | "ImportDefaultSpecifier" | ast-node-types.ts:38 |
ImportExpression | "ImportExpression" | ast-node-types.ts:39 |
ImportNamespaceSpecifier | "ImportNamespaceSpecifier" | ast-node-types.ts:40 |
ImportSpecifier | "ImportSpecifier" | ast-node-types.ts:41 |
JSXAttribute | "JSXAttribute" | ast-node-types.ts:42 |
JSXClosingElement | "JSXClosingElement" | ast-node-types.ts:43 |
JSXClosingFragment | "JSXClosingFragment" | ast-node-types.ts:44 |
JSXElement | "JSXElement" | ast-node-types.ts:45 |
JSXEmptyExpression | "JSXEmptyExpression" | ast-node-types.ts:46 |
JSXExpressionContainer | "JSXExpressionContainer" | ast-node-types.ts:47 |
JSXFragment | "JSXFragment" | ast-node-types.ts:48 |
JSXIdentifier | "JSXIdentifier" | ast-node-types.ts:49 |
JSXMemberExpression | "JSXMemberExpression" | ast-node-types.ts:50 |
JSXNamespacedName | "JSXNamespacedName" | ast-node-types.ts:51 |
JSXOpeningElement | "JSXOpeningElement" | ast-node-types.ts:52 |
JSXOpeningFragment | "JSXOpeningFragment" | ast-node-types.ts:53 |
JSXSpreadAttribute | "JSXSpreadAttribute" | ast-node-types.ts:54 |
JSXSpreadChild | "JSXSpreadChild" | ast-node-types.ts:55 |
JSXText | "JSXText" | ast-node-types.ts:56 |
LabeledStatement | "LabeledStatement" | ast-node-types.ts:57 |
Literal | "Literal" | ast-node-types.ts:58 |
LogicalExpression | "LogicalExpression" | ast-node-types.ts:59 |
MemberExpression | "MemberExpression" | ast-node-types.ts:60 |
MetaProperty | "MetaProperty" | ast-node-types.ts:61 |
MethodDefinition | "MethodDefinition" | ast-node-types.ts:62 |
NewExpression | "NewExpression" | ast-node-types.ts:63 |
ObjectExpression | "ObjectExpression" | ast-node-types.ts:64 |
ObjectPattern | "ObjectPattern" | ast-node-types.ts:65 |
PrivateIdentifier | "PrivateIdentifier" | ast-node-types.ts:66 |
Program | "Program" | ast-node-types.ts:67 |
Property | "Property" | ast-node-types.ts:68 |
PropertyDefinition | "PropertyDefinition" | ast-node-types.ts:69 |
RestElement | "RestElement" | ast-node-types.ts:70 |
ReturnStatement | "ReturnStatement" | ast-node-types.ts:71 |
SequenceExpression | "SequenceExpression" | ast-node-types.ts:72 |
SpreadElement | "SpreadElement" | ast-node-types.ts:73 |
StaticBlock | "StaticBlock" | ast-node-types.ts:74 |
Super | "Super" | ast-node-types.ts:75 |
SwitchCase | "SwitchCase" | ast-node-types.ts:76 |
SwitchStatement | "SwitchStatement" | ast-node-types.ts:77 |
TaggedTemplateExpression | "TaggedTemplateExpression" | ast-node-types.ts:78 |
TemplateElement | "TemplateElement" | ast-node-types.ts:79 |
TemplateLiteral | "TemplateLiteral" | ast-node-types.ts:80 |
ThisExpression | "ThisExpression" | ast-node-types.ts:81 |
ThrowStatement | "ThrowStatement" | ast-node-types.ts:82 |
TryStatement | "TryStatement" | ast-node-types.ts:83 |
TSAbstractAccessorProperty | "TSAbstractAccessorProperty" | ast-node-types.ts:93 |
TSAbstractKeyword | "TSAbstractKeyword" | ast-node-types.ts:94 |
TSAbstractMethodDefinition | "TSAbstractMethodDefinition" | ast-node-types.ts:95 |
TSAbstractPropertyDefinition | "TSAbstractPropertyDefinition" | ast-node-types.ts:96 |
TSAnyKeyword | "TSAnyKeyword" | ast-node-types.ts:97 |
TSArrayType | "TSArrayType" | ast-node-types.ts:98 |
TSAsExpression | "TSAsExpression" | ast-node-types.ts:99 |
TSAsyncKeyword | "TSAsyncKeyword" | ast-node-types.ts:100 |
TSBigIntKeyword | "TSBigIntKeyword" | ast-node-types.ts:101 |
TSBooleanKeyword | "TSBooleanKeyword" | ast-node-types.ts:102 |
TSCallSignatureDeclaration | "TSCallSignatureDeclaration" | ast-node-types.ts:103 |
TSClassImplements | "TSClassImplements" | ast-node-types.ts:104 |
TSConditionalType | "TSConditionalType" | ast-node-types.ts:105 |
TSConstructorType | "TSConstructorType" | ast-node-types.ts:106 |
TSConstructSignatureDeclaration | "TSConstructSignatureDeclaration" | ast-node-types.ts:107 |
TSDeclareFunction | "TSDeclareFunction" | ast-node-types.ts:108 |
TSDeclareKeyword | "TSDeclareKeyword" | ast-node-types.ts:109 |
TSEmptyBodyFunctionExpression | "TSEmptyBodyFunctionExpression" | ast-node-types.ts:110 |
TSEnumBody | "TSEnumBody" | ast-node-types.ts:111 |
TSEnumDeclaration | "TSEnumDeclaration" | ast-node-types.ts:112 |
TSEnumMember | "TSEnumMember" | ast-node-types.ts:113 |
TSExportAssignment | "TSExportAssignment" | ast-node-types.ts:114 |
TSExportKeyword | "TSExportKeyword" | ast-node-types.ts:115 |
TSExternalModuleReference | "TSExternalModuleReference" | ast-node-types.ts:116 |
TSFunctionType | "TSFunctionType" | ast-node-types.ts:117 |
TSImportEqualsDeclaration | "TSImportEqualsDeclaration" | ast-node-types.ts:118 |
TSImportType | "TSImportType" | ast-node-types.ts:119 |
TSIndexedAccessType | "TSIndexedAccessType" | ast-node-types.ts:120 |
TSIndexSignature | "TSIndexSignature" | ast-node-types.ts:121 |
TSInferType | "TSInferType" | ast-node-types.ts:122 |
TSInstantiationExpression | "TSInstantiationExpression" | ast-node-types.ts:123 |
TSInterfaceBody | "TSInterfaceBody" | ast-node-types.ts:124 |
TSInterfaceDeclaration | "TSInterfaceDeclaration" | ast-node-types.ts:125 |
TSInterfaceHeritage | "TSInterfaceHeritage" | ast-node-types.ts:126 |
TSIntersectionType | "TSIntersectionType" | ast-node-types.ts:127 |
TSIntrinsicKeyword | "TSIntrinsicKeyword" | ast-node-types.ts:128 |
TSLiteralType | "TSLiteralType" | ast-node-types.ts:129 |
TSMappedType | "TSMappedType" | ast-node-types.ts:130 |
TSMethodSignature | "TSMethodSignature" | ast-node-types.ts:131 |
TSModuleBlock | "TSModuleBlock" | ast-node-types.ts:132 |
TSModuleDeclaration | "TSModuleDeclaration" | ast-node-types.ts:133 |
TSNamedTupleMember | "TSNamedTupleMember" | ast-node-types.ts:134 |
TSNamespaceExportDeclaration | "TSNamespaceExportDeclaration" | ast-node-types.ts:135 |
TSNeverKeyword | "TSNeverKeyword" | ast-node-types.ts:136 |
TSNonNullExpression | "TSNonNullExpression" | ast-node-types.ts:137 |
TSNullKeyword | "TSNullKeyword" | ast-node-types.ts:138 |
TSNumberKeyword | "TSNumberKeyword" | ast-node-types.ts:139 |
TSObjectKeyword | "TSObjectKeyword" | ast-node-types.ts:140 |
TSOptionalType | "TSOptionalType" | ast-node-types.ts:141 |
TSParameterProperty | "TSParameterProperty" | ast-node-types.ts:142 |
TSPrivateKeyword | "TSPrivateKeyword" | ast-node-types.ts:143 |
TSPropertySignature | "TSPropertySignature" | ast-node-types.ts:144 |
TSProtectedKeyword | "TSProtectedKeyword" | ast-node-types.ts:145 |
TSPublicKeyword | "TSPublicKeyword" | ast-node-types.ts:146 |
TSQualifiedName | "TSQualifiedName" | ast-node-types.ts:147 |
TSReadonlyKeyword | "TSReadonlyKeyword" | ast-node-types.ts:148 |
TSRestType | "TSRestType" | ast-node-types.ts:149 |
TSSatisfiesExpression | "TSSatisfiesExpression" | ast-node-types.ts:150 |
TSStaticKeyword | "TSStaticKeyword" | ast-node-types.ts:151 |
TSStringKeyword | "TSStringKeyword" | ast-node-types.ts:152 |
TSSymbolKeyword | "TSSymbolKeyword" | ast-node-types.ts:153 |
TSTemplateLiteralType | "TSTemplateLiteralType" | ast-node-types.ts:154 |
TSThisType | "TSThisType" | ast-node-types.ts:155 |
TSTupleType | "TSTupleType" | ast-node-types.ts:156 |
TSTypeAliasDeclaration | "TSTypeAliasDeclaration" | ast-node-types.ts:157 |
TSTypeAnnotation | "TSTypeAnnotation" | ast-node-types.ts:158 |
TSTypeAssertion | "TSTypeAssertion" | ast-node-types.ts:159 |
TSTypeLiteral | "TSTypeLiteral" | ast-node-types.ts:160 |
TSTypeOperator | "TSTypeOperator" | ast-node-types.ts:161 |
TSTypeParameter | "TSTypeParameter" | ast-node-types.ts:162 |
TSTypeParameterDeclaration | "TSTypeParameterDeclaration" | ast-node-types.ts:163 |
TSTypeParameterInstantiation | "TSTypeParameterInstantiation" | ast-node-types.ts:164 |
TSTypePredicate | "TSTypePredicate" | ast-node-types.ts:165 |
TSTypeQuery | "TSTypeQuery" | ast-node-types.ts:166 |
TSTypeReference | "TSTypeReference" | ast-node-types.ts:167 |
TSUndefinedKeyword | "TSUndefinedKeyword" | ast-node-types.ts:168 |
TSUnionType | "TSUnionType" | ast-node-types.ts:169 |
TSUnknownKeyword | "TSUnknownKeyword" | ast-node-types.ts:170 |
TSVoidKeyword | "TSVoidKeyword" | ast-node-types.ts:171 |
UnaryExpression | "UnaryExpression" | ast-node-types.ts:84 |
UpdateExpression | "UpdateExpression" | ast-node-types.ts:85 |
VariableDeclaration | "VariableDeclaration" | ast-node-types.ts:86 |
VariableDeclarator | "VariableDeclarator" | ast-node-types.ts:87 |
WhileStatement | "WhileStatement" | ast-node-types.ts:88 |
WithStatement | "WithStatement" | ast-node-types.ts:89 |
YieldExpression | "YieldExpression" | ast-node-types.ts:90 |
AST_TOKEN_TYPES
Defined in: ast-token-types.ts:1
Enumeration Members
Enumeration Member | Value | Defined in |
---|---|---|
Block | "Block" | ast-token-types.ts:16 |
Boolean | "Boolean" | ast-token-types.ts:2 |
Identifier | "Identifier" | ast-token-types.ts:3 |
JSXIdentifier | "JSXIdentifier" | ast-token-types.ts:4 |
JSXText | "JSXText" | ast-token-types.ts:6 |
Keyword | "Keyword" | ast-token-types.ts:7 |
Line | "Line" | ast-token-types.ts:17 |
Null | "Null" | ast-token-types.ts:8 |
Numeric | "Numeric" | ast-token-types.ts:9 |
PrivateIdentifier | "PrivateIdentifier" | ast-token-types.ts:5 |
Punctuator | "Punctuator" | ast-token-types.ts:10 |
RegularExpression | "RegularExpression" | ast-token-types.ts:11 |
String | "String" | ast-token-types.ts:12 |
Template | "Template" | ast-token-types.ts:13 |
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 | boolean | - | - | - | 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
ExportAllDeclaration
ExportDefaultDeclaration
ImportDeclaration
TSEnumDeclaration
TSInterfaceDeclaration
TSNamespaceExportDeclaration
TSTypeAliasDeclaration
SpreadElement
StaticBlock
TSIndexSignature
ArrayExpression
ArrowFunctionExpression
AssignmentExpression
AwaitExpression
BinaryExpression
CallExpression
ChainExpression
ConditionalExpression
Identifier
ImportExpression
JSXElement
JSXFragment
LogicalExpression
MetaProperty
NewExpression
ObjectExpression
SequenceExpression
Super
TaggedTemplateExpression
TemplateLiteral
ThisExpression
TSAsExpression
TSInstantiationExpression
TSNonNullExpression
TSSatisfiesExpression
TSTypeAssertion
YieldExpression
JSXAttribute
JSXClosingElement
JSXClosingFragment
JSXEmptyExpression
JSXExpressionContainer
JSXIdentifier
JSXMemberExpression
JSXNamespacedName
JSXOpeningElement
JSXOpeningFragment
JSXSpreadAttribute
JSXSpreadChild
JSXText
ArrayPattern
AssignmentPattern
ObjectPattern
RestElement
TSParameterProperty
CatchClause
ClassBody
Decorator
EmptyStatement
ImportAttribute
ImportDefaultSpecifier
ImportNamespaceSpecifier
ImportSpecifier
PrivateIdentifier
SwitchCase
TemplateElement
TSEnumBody
TSExternalModuleReference
TSInterfaceBody
TSModuleBlock
TSTypeAnnotation
TSTypeParameter
TSTypeParameterDeclaration
TSTypeParameterInstantiation
BlockStatement
BreakStatement
ContinueStatement
DebuggerStatement
DoWhileStatement
ExpressionStatement
ForInStatement
ForOfStatement
ForStatement
IfStatement
LabeledStatement
ReturnStatement
SwitchStatement
ThrowStatement
TryStatement
TSExportAssignment
WhileStatement
WithStatement
TSAbstractKeyword
TSAnyKeyword
TSArrayType
TSAsyncKeyword
TSBigIntKeyword
TSBooleanKeyword
TSConditionalType
TSDeclareKeyword
TSExportKeyword
TSImportType
TSIndexedAccessType
TSInferType
TSIntersectionType
TSIntrinsicKeyword
TSLiteralType
TSMappedType
TSNamedTupleMember
TSNeverKeyword
TSNullKeyword
TSNumberKeyword
TSObjectKeyword
TSOptionalType
TSPrivateKeyword
TSProtectedKeyword
TSPublicKeyword
TSQualifiedName
TSReadonlyKeyword
TSRestType
TSStaticKeyword
TSStringKeyword
TSSymbolKeyword
TSTemplateLiteralType
TSThisType
TSTupleType
TSTypeLiteral
TSTypeOperator
TSTypePredicate
TSTypeQuery
TSTypeReference
TSUndefinedKeyword
TSUnionType
TSUnknownKeyword
TSVoidKeyword
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 |
BinaryExpression
Defined in: expression/BinaryExpression/spec.ts:10
Extends
Properties
Property | Type | Description | Overrides | Inherited from | Defined in |
---|---|---|---|---|---|
left | | PrivateIdentifier | Expression | - | - | - | expression/BinaryExpression/spec.ts:12 |
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 <BinaryOperatorToText > | - | - | - | expression/BinaryExpression/spec.ts:13 |
range | Range | - | - | BaseNode .range | base/NodeOrTokenData.ts:14 |
right | Expression | - | - | - | expression/BinaryExpression/spec.ts:14 |
type | BinaryExpression | - | BaseNode .type | - | expression/BinaryExpression/spec.ts:11 |
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 declare d: 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 declare d: 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 declare d: 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 declare d 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