Enumerations
AST_NODE_TYPES
Enumeration Members
Enumeration Member | Value |
---|
AccessorProperty | "AccessorProperty" |
ArrayExpression | "ArrayExpression" |
ArrayPattern | "ArrayPattern" |
ArrowFunctionExpression | "ArrowFunctionExpression" |
AssignmentExpression | "AssignmentExpression" |
AssignmentPattern | "AssignmentPattern" |
AwaitExpression | "AwaitExpression" |
BinaryExpression | "BinaryExpression" |
BlockStatement | "BlockStatement" |
BreakStatement | "BreakStatement" |
CallExpression | "CallExpression" |
CatchClause | "CatchClause" |
ChainExpression | "ChainExpression" |
ClassBody | "ClassBody" |
ClassDeclaration | "ClassDeclaration" |
ClassExpression | "ClassExpression" |
ConditionalExpression | "ConditionalExpression" |
ContinueStatement | "ContinueStatement" |
DebuggerStatement | "DebuggerStatement" |
Decorator | "Decorator" |
DoWhileStatement | "DoWhileStatement" |
EmptyStatement | "EmptyStatement" |
ExportAllDeclaration | "ExportAllDeclaration" |
ExportDefaultDeclaration | "ExportDefaultDeclaration" |
ExportNamedDeclaration | "ExportNamedDeclaration" |
ExportSpecifier | "ExportSpecifier" |
ExpressionStatement | "ExpressionStatement" |
ForInStatement | "ForInStatement" |
ForOfStatement | "ForOfStatement" |
ForStatement | "ForStatement" |
FunctionDeclaration | "FunctionDeclaration" |
FunctionExpression | "FunctionExpression" |
Identifier | "Identifier" |
IfStatement | "IfStatement" |
ImportAttribute | "ImportAttribute" |
ImportDeclaration | "ImportDeclaration" |
ImportDefaultSpecifier | "ImportDefaultSpecifier" |
ImportExpression | "ImportExpression" |
ImportNamespaceSpecifier | "ImportNamespaceSpecifier" |
ImportSpecifier | "ImportSpecifier" |
JSXAttribute | "JSXAttribute" |
JSXClosingElement | "JSXClosingElement" |
JSXClosingFragment | "JSXClosingFragment" |
JSXElement | "JSXElement" |
JSXEmptyExpression | "JSXEmptyExpression" |
JSXExpressionContainer | "JSXExpressionContainer" |
JSXFragment | "JSXFragment" |
JSXIdentifier | "JSXIdentifier" |
JSXMemberExpression | "JSXMemberExpression" |
JSXNamespacedName | "JSXNamespacedName" |
JSXOpeningElement | "JSXOpeningElement" |
JSXOpeningFragment | "JSXOpeningFragment" |
JSXSpreadAttribute | "JSXSpreadAttribute" |
JSXSpreadChild | "JSXSpreadChild" |
JSXText | "JSXText" |
LabeledStatement | "LabeledStatement" |
Literal | "Literal" |
LogicalExpression | "LogicalExpression" |
MemberExpression | "MemberExpression" |
MetaProperty | "MetaProperty" |
MethodDefinition | "MethodDefinition" |
NewExpression | "NewExpression" |
ObjectExpression | "ObjectExpression" |
ObjectPattern | "ObjectPattern" |
PrivateIdentifier | "PrivateIdentifier" |
Program | "Program" |
Property | "Property" |
PropertyDefinition | "PropertyDefinition" |
RestElement | "RestElement" |
ReturnStatement | "ReturnStatement" |
SequenceExpression | "SequenceExpression" |
SpreadElement | "SpreadElement" |
StaticBlock | "StaticBlock" |
Super | "Super" |
SwitchCase | "SwitchCase" |
SwitchStatement | "SwitchStatement" |
TSAbstractAccessorProperty | "TSAbstractAccessorProperty" |
TSAbstractKeyword | "TSAbstractKeyword" |
TSAbstractMethodDefinition | "TSAbstractMethodDefinition" |
TSAbstractPropertyDefinition | "TSAbstractPropertyDefinition" |
TSAnyKeyword | "TSAnyKeyword" |
TSArrayType | "TSArrayType" |
TSAsExpression | "TSAsExpression" |
TSAsyncKeyword | "TSAsyncKeyword" |
TSBigIntKeyword | "TSBigIntKeyword" |
TSBooleanKeyword | "TSBooleanKeyword" |
TSCallSignatureDeclaration | "TSCallSignatureDeclaration" |
TSClassImplements | "TSClassImplements" |
TSConditionalType | "TSConditionalType" |
TSConstructSignatureDeclaration | "TSConstructSignatureDeclaration" |
TSConstructorType | "TSConstructorType" |
TSDeclareFunction | "TSDeclareFunction" |
TSDeclareKeyword | "TSDeclareKeyword" |
TSEmptyBodyFunctionExpression | "TSEmptyBodyFunctionExpression" |
TSEnumBody | "TSEnumBody" |
TSEnumDeclaration | "TSEnumDeclaration" |
TSEnumMember | "TSEnumMember" |
TSExportAssignment | "TSExportAssignment" |
TSExportKeyword | "TSExportKeyword" |
TSExternalModuleReference | "TSExternalModuleReference" |
TSFunctionType | "TSFunctionType" |
TSImportEqualsDeclaration | "TSImportEqualsDeclaration" |
TSImportType | "TSImportType" |
TSIndexSignature | "TSIndexSignature" |
TSIndexedAccessType | "TSIndexedAccessType" |
TSInferType | "TSInferType" |
TSInstantiationExpression | "TSInstantiationExpression" |
TSInterfaceBody | "TSInterfaceBody" |
TSInterfaceDeclaration | "TSInterfaceDeclaration" |
TSInterfaceHeritage | "TSInterfaceHeritage" |
TSIntersectionType | "TSIntersectionType" |
TSIntrinsicKeyword | "TSIntrinsicKeyword" |
TSLiteralType | "TSLiteralType" |
TSMappedType | "TSMappedType" |
TSMethodSignature | "TSMethodSignature" |
TSModuleBlock | "TSModuleBlock" |
TSModuleDeclaration | "TSModuleDeclaration" |
TSNamedTupleMember | "TSNamedTupleMember" |
TSNamespaceExportDeclaration | "TSNamespaceExportDeclaration" |
TSNeverKeyword | "TSNeverKeyword" |
TSNonNullExpression | "TSNonNullExpression" |
TSNullKeyword | "TSNullKeyword" |
TSNumberKeyword | "TSNumberKeyword" |
TSObjectKeyword | "TSObjectKeyword" |
TSOptionalType | "TSOptionalType" |
TSParameterProperty | "TSParameterProperty" |
TSPrivateKeyword | "TSPrivateKeyword" |
TSPropertySignature | "TSPropertySignature" |
TSProtectedKeyword | "TSProtectedKeyword" |
TSPublicKeyword | "TSPublicKeyword" |
TSQualifiedName | "TSQualifiedName" |
TSReadonlyKeyword | "TSReadonlyKeyword" |
TSRestType | "TSRestType" |
TSSatisfiesExpression | "TSSatisfiesExpression" |
TSStaticKeyword | "TSStaticKeyword" |
TSStringKeyword | "TSStringKeyword" |
TSSymbolKeyword | "TSSymbolKeyword" |
TSTemplateLiteralType | "TSTemplateLiteralType" |
TSThisType | "TSThisType" |
TSTupleType | "TSTupleType" |
TSTypeAliasDeclaration | "TSTypeAliasDeclaration" |
TSTypeAnnotation | "TSTypeAnnotation" |
TSTypeAssertion | "TSTypeAssertion" |
TSTypeLiteral | "TSTypeLiteral" |
TSTypeOperator | "TSTypeOperator" |
TSTypeParameter | "TSTypeParameter" |
TSTypeParameterDeclaration | "TSTypeParameterDeclaration" |
TSTypeParameterInstantiation | "TSTypeParameterInstantiation" |
TSTypePredicate | "TSTypePredicate" |
TSTypeQuery | "TSTypeQuery" |
TSTypeReference | "TSTypeReference" |
TSUndefinedKeyword | "TSUndefinedKeyword" |
TSUnionType | "TSUnionType" |
TSUnknownKeyword | "TSUnknownKeyword" |
TSVoidKeyword | "TSVoidKeyword" |
TaggedTemplateExpression | "TaggedTemplateExpression" |
TemplateElement | "TemplateElement" |
TemplateLiteral | "TemplateLiteral" |
ThisExpression | "ThisExpression" |
ThrowStatement | "ThrowStatement" |
TryStatement | "TryStatement" |
UnaryExpression | "UnaryExpression" |
UpdateExpression | "UpdateExpression" |
VariableDeclaration | "VariableDeclaration" |
VariableDeclarator | "VariableDeclarator" |
WhileStatement | "WhileStatement" |
WithStatement | "WithStatement" |
YieldExpression | "YieldExpression" |
AST_TOKEN_TYPES
Enumeration Members
Enumeration Member | Value |
---|
Block | "Block" |
Boolean | "Boolean" |
Identifier | "Identifier" |
JSXIdentifier | "JSXIdentifier" |
JSXText | "JSXText" |
Keyword | "Keyword" |
Line | "Line" |
Null | "Null" |
Numeric | "Numeric" |
Punctuator | "Punctuator" |
RegularExpression | "RegularExpression" |
String | "String" |
Template | "Template" |
Interfaces
AccessorPropertyComputedName
Extends
PropertyDefinitionComputedNameBase
Properties
Property | Type | Overrides |
---|
type | AccessorProperty | PropertyDefinitionComputedNameBase.type |
AccessorPropertyNonComputedName
Extends
PropertyDefinitionNonComputedNameBase
Properties
Property | Type | Overrides |
---|
type | AccessorProperty | PropertyDefinitionNonComputedNameBase.type |
ArrayExpression
Extends
Properties
Property | Type | Description | Overrides |
---|
elements | (null | Expression | SpreadElement )[] | an element will be null in the case of a sparse array: [1, ,3] | - |
type | ArrayExpression | - | BaseNode .type |
ArrayPattern
Extends
Properties
ArrowFunctionExpression
Extends
Properties
AssignmentExpression
Extends
Properties
AssignmentOperatorToText
Extended by
Properties
Property | Type |
---|
64 | "=" |
65 | "+=" |
66 | "-=" |
67 | "*=" |
68 | "**=" |
69 | "/=" |
70 | "%=" |
71 | "<<=" |
72 | ">>=" |
73 | ">>>=" |
74 | "&=" |
75 | "|=" |
76 | "||=" |
77 | "&&=" |
78 | "??=" |
79 | "^=" |
AssignmentPattern
Extends
Properties
AwaitExpression
Extends
Properties
BaseNode
Extends
Extended by
Properties
BigIntLiteral
Extends
Properties
Property | Type | Overrides |
---|
bigint | string | - |
value | null | bigint | LiteralBase.value |
BinaryExpression
Extends
Properties
BinaryOperatorToText
Properties
Property | Type |
---|
103 | "in" |
104 | "instanceof" |
30 | "<" |
32 | ">" |
33 | "<=" |
34 | ">=" |
35 | "==" |
36 | "!=" |
37 | "===" |
38 | "!==" |
40 | "+" |
41 | "-" |
42 | "*" |
43 | "**" |
44 | "/" |
45 | "%" |
48 | "<<" |
49 | ">>" |
50 | ">>>" |
51 | "&" |
52 | "|" |
53 | "^" |
56 | "&&" |
57 | "||" |
Extends
Properties
Property | Type | Overrides |
---|
type | Block | BaseToken.type |
BlockStatement
Extends
Properties
BooleanLiteral
Extends
Properties
Property | Type | Overrides |
---|
raw | "false" | "true" | LiteralBase.raw |
value | boolean | LiteralBase.value |
BooleanToken
Extends
Properties
Property | Type | Overrides |
---|
type | Boolean | BaseToken.type |
BreakStatement
Extends
Properties
CallExpression
Extends
Properties
CatchClause
Extends
Properties
ChainExpression
Extends
Properties
ClassBody
Extends
Properties
ClassDeclarationWithName
A normal class declaration:
Extends
Properties
Property | Type | Overrides |
---|
id | Identifier | ClassDeclarationBase.id |
ClassDeclarationWithOptionalName
Default-exported class declarations have optional names:
Extends
Properties
Property | Type | Overrides |
---|
id | null | Identifier | ClassDeclarationBase.id |
ClassExpression
Extends
Properties
Property | Type | Overrides |
---|
abstract | false | ClassBase.abstract |
declare | false | ClassBase.declare |
type | ClassExpression | ClassBase.type |
ConditionalExpression
Extends
Properties
ConstDeclaration
Extends
LetOrConstOrVarDeclarationBase
Properties
Property | Type | Description | Overrides |
---|
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 |
kind | "const" | - | LetOrConstOrVarDeclarationBase.kind |
ContinueStatement
Extends
Properties
DebuggerStatement
Extends
Properties
Property | Type | Overrides |
---|
type | DebuggerStatement | BaseNode .type |
Decorator
Extends
Properties
DoWhileStatement
Extends
Properties
EmptyStatement
Extends
Properties
Property | Type | Overrides |
---|
type | EmptyStatement | BaseNode .type |
ExportAllDeclaration
Extends
Properties
Property | Type | Description | Overrides |
---|
assertions | ImportAttribute [] | The assertions declared for the export. Example export * from 'mod' assert { type: 'json' }; Deprecated Replaced with attributes . | - |
attributes | ImportAttribute [] | The attributes declared for the export. Example export * from 'mod' with { type: 'json' }; | - |
exportKind | ExportAndImportKind | The kind of the export. | - |
exported | null | Identifier | The name for the exported items (as X ). null if no name is assigned. | - |
source | StringLiteral | The source module being exported from. | - |
type | ExportAllDeclaration | - | BaseNode .type |
ExportDefaultDeclaration
Extends
Properties
Property | Type | Description | Overrides |
---|
declaration | DefaultExportDeclarations | The declaration being exported. | - |
exportKind | "value" | The kind of the export. Always value for default exports. | - |
type | ExportDefaultDeclaration | - | BaseNode .type |
ExportNamedDeclarationWithSource
Export names from another module.
export { a, b } from 'mod';
Extends
ExportNamedDeclarationBase
Properties
Property | Type | Overrides |
---|
declaration | null | ExportNamedDeclarationBase.declaration |
source | StringLiteral | ExportNamedDeclarationBase.source |
ExportNamedDeclarationWithoutSourceWithMultiple
Exporting names from the current module.
export {};
export { a, b };
Extends
ExportNamedDeclarationBase
Properties
Property | Type | Description | Overrides |
---|
assertions | ImportAttribute [] | This will always be an empty array. Deprecated Replaced with attributes . | ExportNamedDeclarationBase.assertions |
attributes | ImportAttribute [] | This will always be an empty array. | ExportNamedDeclarationBase.attributes |
declaration | null | - | ExportNamedDeclarationBase.declaration |
source | null | - | ExportNamedDeclarationBase.source |
ExportNamedDeclarationWithoutSourceWithSingle
Exporting a single named declaration.
Extends
ExportNamedDeclarationBase
Properties
Property | Type | Description | Overrides |
---|
assertions | ImportAttribute [] | This will always be an empty array. Deprecated Replaced with attributes . | ExportNamedDeclarationBase.assertions |
attributes | ImportAttribute [] | This will always be an empty array. | ExportNamedDeclarationBase.attributes |
declaration | NamedExportDeclarations | - | ExportNamedDeclarationBase.declaration |
source | null | - | ExportNamedDeclarationBase.source |
specifiers | ExportSpecifier [] | This will always be an empty array. | ExportNamedDeclarationBase.specifiers |
ExportSpecifier
Extends
Properties
ExpressionStatement
Extends
Properties
Property | Type | Overrides |
---|
directive | undefined | string | - |
expression | Expression | - |
type | ExpressionStatement | BaseNode .type |
ForInStatement
Extends
Properties
ForOfStatement
Extends
Properties
ForStatement
Extends
Properties
FunctionDeclarationWithName
A normal function declaration:
Extends
Properties
Property | Type | Overrides |
---|
id | Identifier | FunctionDeclarationBase.id |
FunctionDeclarationWithOptionalName
Default-exported function declarations have optional names:
export default function () {}
Extends
Properties
Property | Type | Overrides |
---|
id | null | Identifier | FunctionDeclarationBase.id |
FunctionExpression
Extends
Properties
Property | Type | Overrides |
---|
body | BlockStatement | FunctionBase.body |
expression | false | FunctionBase.expression |
type | FunctionExpression | FunctionBase.type |
Identifier
Extends
Properties
IdentifierToken
Extends
Properties
Property | Type | Overrides |
---|
type | Identifier | BaseToken.type |
IfStatement
Extends
Properties
ImportAttribute
Extends
Properties
ImportDeclaration
Extends
Properties
Property | Type | Description | Overrides |
---|
assertions | ImportAttribute [] | The assertions declared for the export. Example import * from 'mod' assert { type: 'json' }; Deprecated Replaced with attributes . | - |
attributes | ImportAttribute [] | The attributes declared for the export. Example import * from 'mod' with { type: 'json' }; | - |
importKind | ExportAndImportKind | The kind of the import. | - |
source | StringLiteral | The source module being imported from. | - |
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'; | - |
type | ImportDeclaration | - | BaseNode .type |
ImportDefaultSpecifier
Extends
Properties
ImportExpression
Extends
Properties
ImportNamespaceSpecifier
Extends
Properties
ImportSpecifier
Extends
Properties
JSXAttribute
Extends
Properties
JSXClosingElement
Extends
Properties
JSXClosingFragment
Extends
Properties
Property | Type | Overrides |
---|
type | JSXClosingFragment | BaseNode .type |
JSXElement
Extends
Properties
JSXEmptyExpression
Extends
Properties
Property | Type | Overrides |
---|
type | JSXEmptyExpression | BaseNode .type |
JSXExpressionContainer
Extends
Properties
JSXFragment
Extends
Properties
JSXIdentifier
Extends
Properties
Property | Type | Overrides |
---|
name | string | - |
type | JSXIdentifier | BaseNode .type |
JSXIdentifierToken
Extends
Properties
Property | Type | Overrides |
---|
type | JSXIdentifier | BaseToken.type |
JSXMemberExpression
Extends
Properties
JSXNamespacedName
Extends
Properties
JSXOpeningElement
Extends
Properties
JSXOpeningFragment
Extends
Properties
Property | Type | Overrides |
---|
type | JSXOpeningFragment | BaseNode .type |
JSXSpreadAttribute
Extends
Properties
JSXSpreadChild
Extends
Properties
JSXText
Extends
Properties
Property | Type | Overrides |
---|
raw | string | - |
type | JSXText | BaseNode .type |
value | string | - |
JSXTextToken
Extends
Properties
Property | Type | Overrides |
---|
type | JSXText | BaseToken.type |
KeywordToken
Extends
Properties
Property | Type | Overrides |
---|
type | Keyword | BaseToken.type |
LabeledStatement
Extends
Properties
LetOrVarDeclaredDeclaration
Extends
LetOrConstOrVarDeclarationBase
Properties
Property | Type | Description | Overrides |
---|
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 |
declare | true | - | LetOrConstOrVarDeclarationBase.declare |
kind | "let" | "var" | - | LetOrConstOrVarDeclarationBase.kind |
LetOrVarNonDeclaredDeclaration
Extends
LetOrConstOrVarDeclarationBase
Properties
Property | Type | Description | Overrides |
---|
declarations | (VariableDeclaratorMaybeInit | VariableDeclaratorDefiniteAssignment )[] | In a let /var declaration, the declarators may have definite assignment assertions or initializers, but not both. | LetOrConstOrVarDeclarationBase.declarations |
declare | false | - | LetOrConstOrVarDeclarationBase.declare |
kind | "let" | "var" | - | LetOrConstOrVarDeclarationBase.kind |
Extends
Properties
Property | Type | Overrides |
---|
type | Line | BaseToken.type |
LogicalExpression
Extends
Properties
MemberExpressionComputedName
Extends
Properties
Property | Type | Overrides |
---|
computed | true | MemberExpressionBase.computed |
property | Expression | MemberExpressionBase.property |
type | MemberExpression | MemberExpressionBase.type |
MemberExpressionNonComputedName
Extends
Properties
Property | Type | Overrides |
---|
computed | false | MemberExpressionBase.computed |
property | Identifier | PrivateIdentifier | MemberExpressionBase.property |
type | MemberExpression | MemberExpressionBase.type |
Extends
Properties
MethodDefinitionComputedName
Extends
MethodDefinitionComputedNameBase
Properties
Property | Type | Overrides |
---|
type | MethodDefinition | MethodDefinitionComputedNameBase.type |
MethodDefinitionNonComputedName
Extends
ClassMethodDefinitionNonComputedNameBase
Properties
Property | Type | Overrides |
---|
type | MethodDefinition | ClassMethodDefinitionNonComputedNameBase.type |
NewExpression
Extends
Properties
NodeOrTokenData
Extended by
Properties
Property | Type | Description |
---|
loc | SourceLocation | The source location information of the node. The loc property is defined as nullable by ESTree, but ESLint requires this property. |
range | Range | - |
type | string | - |
NullLiteral
Extends
Properties
Property | Type | Overrides |
---|
raw | "null" | LiteralBase.raw |
value | null | LiteralBase.value |
NullToken
Extends
Properties
Property | Type | Overrides |
---|
type | Null | BaseToken.type |
NumberLiteral
Extends
Properties
Property | Type | Overrides |
---|
value | number | LiteralBase.value |
NumericToken
Extends
Properties
Property | Type | Overrides |
---|
type | Numeric | BaseToken.type |
ObjectExpression
Extends
Properties
ObjectPattern
Extends
Properties
Position
Properties
Property | Type | Description |
---|
column | number | Column number on the line (0-indexed) |
line | number | Line number (1-indexed) |
PrivateIdentifier
Extends
Properties
Property | Type | Overrides |
---|
name | string | - |
type | PrivateIdentifier | BaseNode .type |
Program
Extends
Properties
PropertyComputedName
Extends
Properties
Property | Type | Overrides |
---|
computed | true | PropertyBase.computed |
key | Expression | PropertyBase.key |
PropertyDefinitionComputedName
Extends
PropertyDefinitionComputedNameBase
Properties
Property | Type | Overrides |
---|
type | PropertyDefinition | PropertyDefinitionComputedNameBase.type |
PropertyDefinitionNonComputedName
Extends
ClassPropertyDefinitionNonComputedNameBase
Properties
Property | Type | Overrides |
---|
type | PropertyDefinition | ClassPropertyDefinitionNonComputedNameBase.type |
PropertyNonComputedName
Extends
Properties
PunctuatorToken
Extends
Properties
PunctuatorTokenToText
Extends
Properties
Property | Type |
---|
19 | "{" |
20 | "}" |
21 | "(" |
22 | ")" |
23 | "[" |
24 | "]" |
25 | "." |
26 | "..." |
27 | ";" |
28 | "," |
29 | "?." |
30 | "<" |
31 | "</" |
32 | ">" |
33 | "<=" |
34 | ">=" |
35 | "==" |
36 | "!=" |
37 | "===" |
38 | "!==" |
39 | "=>" |
40 | "+" |
41 | "-" |
42 | "*" |
43 | "**" |
44 | "/" |
45 | "%" |
46 | "++" |
47 | "--" |
48 | "<<" |
49 | ">>" |
50 | ">>>" |
51 | "&" |
52 | "|" |
53 | "^" |
54 | "!" |
55 | "~" |
56 | "&&" |
57 | "||" |
58 | "?" |
59 | ":" |
60 | "@" |
61 | "??" |
62 | "`" |
63 | "#" |
RegExpLiteral
Extends
Properties
Property | Type | Overrides |
---|
regex | object | - |
regex.flags | string | - |
regex.pattern | string | - |
value | null | RegExp | LiteralBase.value |
RegularExpressionToken
Extends
Properties
Property | Type | Overrides |
---|
regex | object | - |
regex.flags | string | - |
regex.pattern | string | - |
type | RegularExpression | BaseToken.type |
RestElement
Extends
Properties
ReturnStatement
Extends
Properties
SequenceExpression
Extends
Properties
SourceLocation
Properties
Property | Type | Description |
---|
end | Position | The position of the first character after the parsed source region |
start | Position | The position of the first character of the parsed source region |
SpreadElement
Extends
Properties
StaticBlock
Extends
Properties
StringLiteral
Extends
Properties
Property | Type | Overrides |
---|
value | string | LiteralBase.value |
StringToken
Extends
Properties
Property | Type | Overrides |
---|
type | String | BaseToken.type |
Super
Extends
Properties
Property | Type | Overrides |
---|
type | Super | BaseNode .type |
SwitchCase
Extends
Properties
SwitchStatement
Extends
Properties
TSAbstractAccessorPropertyComputedName
Extends
PropertyDefinitionComputedNameBase
Properties
Property | Type | Overrides |
---|
type | TSAbstractAccessorProperty | PropertyDefinitionComputedNameBase.type |
value | null | PropertyDefinitionComputedNameBase.value |
TSAbstractAccessorPropertyNonComputedName
Extends
PropertyDefinitionNonComputedNameBase
Properties
Property | Type | Overrides |
---|
type | TSAbstractAccessorProperty | PropertyDefinitionNonComputedNameBase.type |
value | null | PropertyDefinitionNonComputedNameBase.value |
TSAbstractKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSAbstractKeyword | BaseNode .type |
TSAbstractMethodDefinitionComputedName
Extends
MethodDefinitionComputedNameBase
Properties
Property | Type | Overrides |
---|
type | TSAbstractMethodDefinition | MethodDefinitionComputedNameBase.type |
TSAbstractMethodDefinitionNonComputedName
Extends
MethodDefinitionNonComputedNameBase
Properties
Property | Type | Overrides |
---|
type | TSAbstractMethodDefinition | MethodDefinitionNonComputedNameBase.type |
TSAbstractPropertyDefinitionComputedName
Extends
PropertyDefinitionComputedNameBase
Properties
Property | Type | Overrides |
---|
type | TSAbstractPropertyDefinition | PropertyDefinitionComputedNameBase.type |
value | null | PropertyDefinitionComputedNameBase.value |
TSAbstractPropertyDefinitionNonComputedName
Extends
PropertyDefinitionNonComputedNameBase
Properties
Property | Type | Overrides |
---|
type | TSAbstractPropertyDefinition | PropertyDefinitionNonComputedNameBase.type |
value | null | PropertyDefinitionNonComputedNameBase.value |
TSAnyKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSAnyKeyword | BaseNode .type |
TSArrayType
Extends
Properties
TSAsExpression
Extends
Properties
TSAsyncKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSAsyncKeyword | BaseNode .type |
TSBigIntKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSBigIntKeyword | BaseNode .type |
TSBooleanKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSBooleanKeyword | BaseNode .type |
TSCallSignatureDeclaration
Extends
Properties
Property | Type | Overrides |
---|
type | TSCallSignatureDeclaration | TSFunctionSignatureBase.type |
TSClassImplements
Extends
Properties
Property | Type | Overrides |
---|
type | TSClassImplements | TSHeritageBase.type |
TSConditionalType
Extends
Properties
TSConstructSignatureDeclaration
Extends
Properties
Property | Type | Overrides |
---|
type | TSConstructSignatureDeclaration | TSFunctionSignatureBase.type |
TSConstructorType
Extends
Properties
Property | Type | Overrides |
---|
abstract | boolean | - |
type | TSConstructorType | TSFunctionSignatureBase.type |
TSDeclareFunctionNoDeclare
Function declaration without the declare
keyword:
This can either be an overload signature or a declaration in an ambient context
(e.g. declare module
)
Extends
Properties
Property | Type | Description | Overrides |
---|
declare | false | - | TSDeclareFunctionBase.declare |
generator | false | - TS1221: Generators are not allowed in an ambient context.
- TS1222: An overload signature cannot be declared as a generator.
| TSDeclareFunctionBase.generator |
TSDeclareFunctionWithDeclare
Function declaration with the declare
keyword:
declare function foo(): void;
Extends
Properties
Property | Type | Description | Overrides |
---|
async | false | TS1040: 'async' modifier cannot be used in an ambient context. | TSDeclareFunctionBase.async |
declare | true | - | TSDeclareFunctionBase.declare |
generator | false | TS1221: Generators are not allowed in an ambient context. | TSDeclareFunctionBase.generator |
TSDeclareKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSDeclareKeyword | BaseNode .type |
TSEmptyBodyFunctionExpression
Extends
Properties
Property | Type | Overrides |
---|
body | null | FunctionBase.body |
id | null | FunctionBase.id |
type | TSEmptyBodyFunctionExpression | FunctionBase.type |
TSEnumBody
Extends
Properties
TSEnumDeclaration
Extends
Properties
Property | Type | Description | Overrides |
---|
body | TSEnumBody | The body of the enum. | - |
const | boolean | Whether this is a const enum. Example const enum Foo | - |
declare | boolean | Whether this is a declare d enum. Example declare enum Foo | - |
id | Identifier | The enum name. | - |
members | TSEnumMember [] | The enum members. Deprecated Use body instead. | - |
type | TSEnumDeclaration | - | BaseNode .type |
TSEnumMemberComputedName
this should only really happen in semantically invalid code (errors 1164 and 2452)
Example
enum Foo { ['a'] }
const x = 'a';
enum Foo { [x] }
enum Bar { ['a' + 'b'] }
Extends
Properties
Property | Type | Overrides |
---|
computed | true | TSEnumMemberBase.computed |
id | Expression | TSEnumMemberBase.id |
TSEnumMemberNonComputedName
Extends
Properties
TSExportAssignment
Extends
Properties
TSExportKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSExportKeyword | BaseNode .type |
TSExternalModuleReference
Extends
Properties
TSFunctionType
Extends
Properties
Property | Type | Overrides |
---|
type | TSFunctionType | TSFunctionSignatureBase.type |
TSImportEqualsNamespaceDeclaration
Extends
TSImportEqualsDeclarationBase
Properties
Property | Type | Description | Overrides |
---|
importKind | "value" | The kind of the import. | TSImportEqualsDeclarationBase.importKind |
moduleReference | TSQualifiedName | Identifier | The value being aliased. import F1 = A;import F2 = A.B.C; | TSImportEqualsDeclarationBase.moduleReference |
TSImportEqualsRequireDeclaration
Extends
TSImportEqualsDeclarationBase
Properties
Property | Type | Description | Overrides |
---|
importKind | ExportAndImportKind | The kind of the import. | TSImportEqualsDeclarationBase.importKind |
moduleReference | TSExternalModuleReference | The value being aliased. import F3 = require('mod'); | TSImportEqualsDeclarationBase.moduleReference |
TSImportType
Extends
Properties
TSIndexSignature
Extends
Properties
TSIndexedAccessType
Extends
Properties
TSInferType
Extends
Properties
TSInstantiationExpression
Extends
Properties
TSInterfaceBody
Extends
Properties
TSInterfaceDeclaration
Extends
Properties
Property | Type | Description | Overrides |
---|
body | TSInterfaceBody | The body of the interface | - |
declare | boolean | Whether the interface was declare d | - |
extends | TSInterfaceHeritage [] | The types this interface extends | - |
id | Identifier | The name of this interface | - |
type | TSInterfaceDeclaration | - | BaseNode .type |
typeParameters | undefined | TSTypeParameterDeclaration | The generic type parameters declared for the interface. Empty declaration (<> ) is different from no declaration. | - |
TSInterfaceHeritage
Extends
Properties
Property | Type | Overrides |
---|
type | TSInterfaceHeritage | TSHeritageBase.type |
TSIntersectionType
Extends
Properties
TSIntrinsicKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSIntrinsicKeyword | BaseNode .type |
TSLiteralType
Extends
Properties
TSMappedType
Extends
Properties
Property | Type | Description | Overrides |
---|
constraint | TypeNode | - | - |
key | Identifier | - | - |
nameType | null | TypeNode | - | - |
optional | undefined | boolean | "+" | "-" | - | - |
readonly | undefined | boolean | "+" | "-" | - | - |
type | TSMappedType | - | BaseNode .type |
typeAnnotation | undefined | TypeNode | - | - |
typeParameter | TSTypeParameter | Deprecated Use constraint and key instead. | - |
TSMethodSignatureComputedName
Extends
Properties
Property | Type | Overrides |
---|
computed | true | TSMethodSignatureBase.computed |
key | Expression | TSMethodSignatureBase.key |
TSMethodSignatureNonComputedName
Extends
Properties
Property | Type | Overrides |
---|
computed | false | TSMethodSignatureBase.computed |
key | PropertyNameNonComputed | TSMethodSignatureBase.key |
TSModuleBlock
Extends
Properties
TSModuleDeclarationGlobal
Extends
Properties
Property | Type | Description | Overrides |
---|
body | TSModuleBlock | - | TSModuleDeclarationBase.body |
id | Identifier | This will always be an Identifier with name global | TSModuleDeclarationBase.id |
kind | "global" | - | TSModuleDeclarationBase.kind |
TSModuleDeclarationModuleWithIdentifierId
The legacy module declaration, replaced with namespace declarations.
Extends
TSModuleDeclarationModuleBase
Properties
Property | Type | Overrides |
---|
body | TSModuleBlock | TSModuleDeclarationModuleBase.body |
id | Identifier | TSModuleDeclarationModuleBase.id |
kind | "module" | TSModuleDeclarationModuleBase.kind |
TSModuleDeclarationModuleWithStringIdDeclared
A string module declaration that is declared:
declare module 'foo' {}
declare module 'foo';
Extends
TSModuleDeclarationModuleBase
Properties
Property | Type | Overrides |
---|
body? | TSModuleBlock | TSModuleDeclarationModuleBase.body |
declare | true | TSModuleDeclarationModuleBase.declare |
id | StringLiteral | TSModuleDeclarationModuleBase.id |
kind | "module" | TSModuleDeclarationModuleBase.kind |
TSModuleDeclarationModuleWithStringIdNotDeclared
A string module declaration that is not declared:
Extends
TSModuleDeclarationModuleBase
Properties
Property | Type | Overrides |
---|
body | TSModuleBlock | TSModuleDeclarationModuleBase.body |
declare | false | TSModuleDeclarationModuleBase.declare |
id | StringLiteral | TSModuleDeclarationModuleBase.id |
kind | "module" | TSModuleDeclarationModuleBase.kind |
TSModuleDeclarationNamespace
Extends
Properties
TSNamedTupleMember
Extends
Properties
TSNamespaceExportDeclaration
For the following declaration:
Extends
Properties
Property | Type | Description | Overrides |
---|
id | Identifier | The name of the global variable that's exported as namespace | - |
type | TSNamespaceExportDeclaration | - | BaseNode .type |
TSNeverKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSNeverKeyword | BaseNode .type |
TSNonNullExpression
Extends
Properties
TSNullKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSNullKeyword | BaseNode .type |
TSNumberKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSNumberKeyword | BaseNode .type |
TSObjectKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSObjectKeyword | BaseNode .type |
TSOptionalType
Extends
Properties
TSParameterProperty
Extends
Properties
TSPrivateKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSPrivateKeyword | BaseNode .type |
TSPropertySignatureComputedName
Extends
Properties
Property | Type | Overrides |
---|
computed | true | TSPropertySignatureBase.computed |
key | Expression | TSPropertySignatureBase.key |
TSPropertySignatureNonComputedName
Extends
Properties
Property | Type | Overrides |
---|
computed | false | TSPropertySignatureBase.computed |
key | PropertyNameNonComputed | TSPropertySignatureBase.key |
TSProtectedKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSProtectedKeyword | BaseNode .type |
TSPublicKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSPublicKeyword | BaseNode .type |
TSQualifiedName
Extends
Properties
TSReadonlyKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSReadonlyKeyword | BaseNode .type |
TSRestType
Extends
Properties
TSSatisfiesExpression
Extends
Properties
TSStaticKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSStaticKeyword | BaseNode .type |
TSStringKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSStringKeyword | BaseNode .type |
TSSymbolKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSSymbolKeyword | BaseNode .type |
TSTemplateLiteralType
Extends
Properties
TSThisType
Extends
Properties
Property | Type | Overrides |
---|
type | TSThisType | BaseNode .type |
TSTupleType
Extends
Properties
TSTypeAliasDeclaration
Extends
Properties
Property | Type | Description | Overrides |
---|
declare | boolean | Whether the type was declare d. Example declare type T = 1; | - |
id | Identifier | The name of the type. | - |
type | TSTypeAliasDeclaration | - | BaseNode .type |
typeAnnotation | TypeNode | The "value" (type) of the declaration | - |
typeParameters | undefined | TSTypeParameterDeclaration | The generic type parameters declared for the type. Empty declaration (<> ) is different from no declaration. | - |
TSTypeAnnotation
Extends
Properties
TSTypeAssertion
Extends
Properties
TSTypeLiteral
Extends
Properties
TSTypeOperator
Extends
Properties
Property | Type | Overrides |
---|
operator | "keyof" | "readonly" | "unique" | - |
type | TSTypeOperator | BaseNode .type |
typeAnnotation | undefined | TypeNode | - |
TSTypeParameter
Extends
Properties
TSTypeParameterDeclaration
Extends
Properties
TSTypeParameterInstantiation
Extends
Properties
Property | Type | Overrides |
---|
params | TypeNode [] | - |
type | TSTypeParameterInstantiation | BaseNode .type |
TSTypePredicate
Extends
Properties
TSTypeQuery
Extends
Properties
TSTypeReference
Extends
Properties
TSUndefinedKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSUndefinedKeyword | BaseNode .type |
TSUnionType
Extends
Properties
TSUnknownKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSUnknownKeyword | BaseNode .type |
TSVoidKeyword
Extends
Properties
Property | Type | Overrides |
---|
type | TSVoidKeyword | BaseNode .type |
TaggedTemplateExpression
Extends
Properties
TemplateElement
Extends
Properties
Property | Type | Overrides |
---|
tail | boolean | - |
type | TemplateElement | BaseNode .type |
value | object | - |
value.cooked | string | - |
value.raw | string | - |
TemplateLiteral
Extends
Properties
TemplateToken
Extends
Properties
Property | Type | Overrides |
---|
type | Template | BaseToken.type |
ThisExpression
Extends
Properties
Property | Type | Overrides |
---|
type | ThisExpression | BaseNode .type |
ThrowStatement
Extends
Properties
TryStatement
Extends
Properties
UnaryExpression
Extends
Properties
Property | Type | Overrides |
---|
operator | | "!" | "+" | "~" | "-" | "delete" | "typeof" | "void" | UnaryExpressionBase.operator |
type | UnaryExpression | UnaryExpressionBase.type |
UpdateExpression
Extends
Properties
Property | Type | Overrides |
---|
operator | "++" | "--" | UnaryExpressionBase.operator |
type | UpdateExpression | UnaryExpressionBase.type |
UsingInForOfDeclaration
Extends
Properties
Property | Type | Description |
---|
declarations | [UsingInForOfDeclarator ] | The variables declared by this declaration. Always has exactly one element. Example for (using x of y) |
UsingInForOfDeclarator
Extends
Properties
Property | Type | Overrides |
---|
definite | false | VariableDeclaratorBase.definite |
id | Identifier | VariableDeclaratorBase.id |
init | null | VariableDeclaratorBase.init |
UsingInNormalContextDeclaration
Extends
Properties
Property | Type | Description |
---|
declarations | UsingInNormalContextDeclarator [] | The variables declared by this declaration. Always non-empty. Example using x = 1;using y = 1, z = 2; |
UsingInNormalContextDeclarator
Extends
Properties
Property | Type | Overrides |
---|
definite | false | VariableDeclaratorBase.definite |
id | Identifier | VariableDeclaratorBase.id |
init | Expression | VariableDeclaratorBase.init |
VariableDeclaratorDefiniteAssignment
Extends
Properties
Property | Type | Description | Overrides |
---|
definite | true | - | VariableDeclaratorBase.definite |
id | Identifier | The name of the variable. Must have a type annotation. | VariableDeclaratorBase.id |
init | null | - | VariableDeclaratorBase.init |
VariableDeclaratorMaybeInit
Extends
Properties
Property | Type | Overrides |
---|
definite | false | VariableDeclaratorBase.definite |
VariableDeclaratorNoInit
Extends
Properties
Property | Type | Overrides |
---|
definite | false | VariableDeclaratorBase.definite |
init | null | VariableDeclaratorBase.init |
WhileStatement
Extends
Properties
WithStatement
Extends
Properties
YieldExpression
Extends
Properties
Property | Type | Overrides |
---|
argument | undefined | Expression | - |
delegate | boolean | - |
type | YieldExpression | BaseNode .type |
Type Aliases
Accessibility
type Accessibility: "private" | "protected" | "public";
Source
base/Accessibility.ts:1
AccessorProperty
type AccessorProperty: AccessorPropertyComputedName | AccessorPropertyNonComputedName;
Source
element/AccessorProperty/spec.ts:17
BindingName
type BindingName: BindingPattern | Identifier;
Source
unions/BindingName.ts:4
BindingPattern
type BindingPattern: ArrayPattern | ObjectPattern;
Source
unions/BindingPattern.ts:4
CallExpressionArgument
type CallExpressionArgument: Expression | SpreadElement;
Source
unions/CallExpressionArgument.ts:4
ChainElement
type ChainElement: CallExpression | MemberExpression | TSNonNullExpression;
Source
unions/ChainElement.ts:5
ClassDeclaration
type ClassDeclaration: ClassDeclarationWithName | ClassDeclarationWithOptionalName;
Source
declaration/ClassDeclaration/spec.ts:29
ClassElement
type ClassElement:
| AccessorProperty
| MethodDefinition
| PropertyDefinition
| StaticBlock
| TSAbstractAccessorProperty
| TSAbstractMethodDefinition
| TSAbstractPropertyDefinition
| TSIndexSignature;
Source
unions/ClassElement.ts:10
ClassPropertyNameNonComputed
type ClassPropertyNameNonComputed: PrivateIdentifier | PropertyNameNonComputed;
Source
unions/PropertyName.ts:16
type Comment: BlockComment | LineComment;
Source
unions/Comment.ts:4
DeclarationStatement
type DeclarationStatement:
| ClassDeclaration
| ClassExpression
| ExportAllDeclaration
| ExportDefaultDeclaration
| ExportNamedDeclaration
| FunctionDeclaration
| TSDeclareFunction
| TSEnumDeclaration
| TSImportEqualsDeclaration
| TSInterfaceDeclaration
| TSModuleDeclaration
| TSNamespaceExportDeclaration
| TSTypeAliasDeclaration;
Deprecated
Note that this is neither up to date nor fully correct.
Source
unions/DeclarationStatement.ts:20
DefaultExportDeclarations
type DefaultExportDeclarations:
| ClassDeclarationWithOptionalName
| Expression
| FunctionDeclarationWithName
| FunctionDeclarationWithOptionalName
| TSDeclareFunction
| TSEnumDeclaration
| TSInterfaceDeclaration
| TSModuleDeclaration
| TSTypeAliasDeclaration
| VariableDeclaration;
Source
unions/ExportDeclaration.ts:20
DestructuringPattern
type DestructuringPattern:
| ArrayPattern
| AssignmentPattern
| Identifier
| MemberExpression
| ObjectPattern
| RestElement;
Source
unions/DestructuringPattern.ts:8
EntityName
type EntityName: Identifier | ThisExpression | TSQualifiedName;
Source
unions/EntityName.ts:5
ExportDeclaration
type ExportDeclaration: DefaultExportDeclarations | NamedExportDeclarations;
Source
unions/ExportDeclaration.ts:48
ExportNamedDeclaration
type ExportNamedDeclaration: ExportNamedDeclarationWithoutSourceWithMultiple | ExportNamedDeclarationWithoutSourceWithSingle | ExportNamedDeclarationWithSource;
Source
declaration/ExportNamedDeclaration/spec.ts:117
Expression
type Expression:
| ArrayExpression
| ArrayPattern
| ArrowFunctionExpression
| AssignmentExpression
| AwaitExpression
| BinaryExpression
| CallExpression
| ChainExpression
| ClassExpression
| ConditionalExpression
| FunctionExpression
| Identifier
| ImportExpression
| JSXElement
| JSXFragment
| LiteralExpression
| LogicalExpression
| MemberExpression
| MetaProperty
| NewExpression
| ObjectExpression
| ObjectPattern
| SequenceExpression
| Super
| TaggedTemplateExpression
| TemplateLiteral
| ThisExpression
| TSAsExpression
| TSInstantiationExpression
| TSNonNullExpression
| TSSatisfiesExpression
| TSTypeAssertion
| UnaryExpression
| UpdateExpression
| YieldExpression;
Source
unions/Expression.ts:45
ForInitialiser
type ForInitialiser: Expression | LetOrConstOrVarDeclaration;
Source
unions/ForInitialiser.ts:4
FunctionDeclaration
type FunctionDeclaration: FunctionDeclarationWithName | FunctionDeclarationWithOptionalName;
Source
declaration/FunctionDeclaration/spec.ts:34
FunctionLike
type FunctionLike:
| ArrowFunctionExpression
| FunctionDeclaration
| FunctionExpression
| TSDeclareFunction
| TSEmptyBodyFunctionExpression;
Source
unions/FunctionLike.ts:7
ImportClause
type ImportClause: ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier;
Source
unions/ImportClause.ts:5
IterationStatement
type IterationStatement:
| DoWhileStatement
| ForInStatement
| ForOfStatement
| ForStatement
| WhileStatement;
Source
unions/IterationStatement.ts:7
JSXChild
type JSXChild: JSXElement | JSXExpression | JSXFragment | JSXText;
Source
unions/JSXChild.ts:6
JSXExpression
type JSXExpression: JSXExpressionContainer | JSXSpreadChild;
Source
unions/JSXExpression.ts:4
JSXTagNameExpression
type JSXTagNameExpression: JSXIdentifier | JSXMemberExpression | JSXNamespacedName;
Source
unions/JSXTagNameExpression.ts:5
LeftHandSideExpression
type LeftHandSideExpression:
| ArrayExpression
| ArrayPattern
| ArrowFunctionExpression
| CallExpression
| ClassExpression
| FunctionExpression
| Identifier
| JSXElement
| JSXFragment
| LiteralExpression
| MemberExpression
| MetaProperty
| ObjectExpression
| ObjectPattern
| SequenceExpression
| Super
| TaggedTemplateExpression
| ThisExpression
| TSAsExpression
| TSNonNullExpression
| TSTypeAssertion;
Source
unions/LeftHandSideExpression.ts:23
LetOrConstOrVarDeclaration
type LetOrConstOrVarDeclaration: ConstDeclaration | LetOrVarDeclaredDeclaration | LetOrVarNonDeclaredDeclaration;
Source
declaration/VariableDeclaration/spec.ts:88
LetOrConstOrVarDeclarator
type LetOrConstOrVarDeclarator: VariableDeclaratorDefiniteAssignment | VariableDeclaratorMaybeInit | VariableDeclaratorNoInit;
Source
special/VariableDeclarator/spec.ts:47
Literal
type Literal:
| BigIntLiteral
| BooleanLiteral
| NullLiteral
| NumberLiteral
| RegExpLiteral
| StringLiteral;
Source
unions/Literal.ts:8
LiteralExpression
type LiteralExpression: Literal | TemplateLiteral;
Source
unions/LiteralExpression.ts:4
MemberExpression
type MemberExpression: MemberExpressionComputedName | MemberExpressionNonComputedName;
Source
expression/MemberExpression/spec.ts:26
MethodDefinition
type MethodDefinition: MethodDefinitionComputedName | MethodDefinitionNonComputedName;
Source
element/MethodDefinition/spec.ts:17
NamedExportDeclarations
type NamedExportDeclarations:
| ClassDeclarationWithName
| ClassDeclarationWithOptionalName
| FunctionDeclarationWithName
| FunctionDeclarationWithOptionalName
| TSDeclareFunction
| TSEnumDeclaration
| TSImportEqualsDeclaration
| TSInterfaceDeclaration
| TSModuleDeclaration
| TSTypeAliasDeclaration
| VariableDeclaration;
Source
unions/ExportDeclaration.ts:34
Node
type Node:
| AccessorProperty
| ArrayExpression
| ArrayPattern
| ArrowFunctionExpression
| AssignmentExpression
| AssignmentPattern
| AwaitExpression
| BinaryExpression
| BlockStatement
| BreakStatement
| CallExpression
| CatchClause
| ChainExpression
| ClassBody
| ClassDeclaration
| ClassExpression
| ConditionalExpression
| ContinueStatement
| DebuggerStatement
| Decorator
| DoWhileStatement
| EmptyStatement
| ExportAllDeclaration
| ExportDefaultDeclaration
| ExportNamedDeclaration
| ExportSpecifier
| ExpressionStatement
| ForInStatement
| ForOfStatement
| ForStatement
| FunctionDeclaration
| FunctionExpression
| Identifier
| IfStatement
| ImportAttribute
| ImportDeclaration
| ImportDefaultSpecifier
| ImportExpression
| ImportNamespaceSpecifier
| ImportSpecifier
| JSXAttribute
| JSXClosingElement
| JSXClosingFragment
| JSXElement
| JSXEmptyExpression
| JSXExpressionContainer
| JSXFragment
| JSXIdentifier
| JSXMemberExpression
| JSXNamespacedName
| JSXOpeningElement
| JSXOpeningFragment
| JSXSpreadAttribute
| JSXSpreadChild
| JSXText
| LabeledStatement
| Literal
| LogicalExpression
| MemberExpression
| MetaProperty
| MethodDefinition
| NewExpression
| ObjectExpression
| ObjectPattern
| PrivateIdentifier
| Program
| Property
| PropertyDefinition
| RestElement
| ReturnStatement
| SequenceExpression
| SpreadElement
| StaticBlock
| Super
| SwitchCase
| SwitchStatement
| TaggedTemplateExpression
| TemplateElement
| TemplateLiteral
| ThisExpression
| ThrowStatement
| TryStatement
| TSAbstractAccessorProperty
| TSAbstractKeyword
| TSAbstractMethodDefinition
| TSAbstractPropertyDefinition
| TSAnyKeyword
| TSArrayType
| TSAsExpression
| TSAsyncKeyword
| TSBigIntKeyword
| TSBooleanKeyword
| TSCallSignatureDeclaration
| TSClassImplements
| TSConditionalType
| TSConstructorType
| TSConstructSignatureDeclaration
| TSDeclareFunction
| TSDeclareKeyword
| TSEmptyBodyFunctionExpression
| TSEnumBody
| TSEnumDeclaration
| TSEnumMember
| TSExportAssignment
| TSExportKeyword
| TSExternalModuleReference
| TSFunctionType
| TSImportEqualsDeclaration
| TSImportType
| TSIndexedAccessType
| TSIndexSignature
| TSInferType
| TSInstantiationExpression
| TSInterfaceBody
| TSInterfaceDeclaration
| TSInterfaceHeritage
| TSIntersectionType
| TSIntrinsicKeyword
| TSLiteralType
| TSMappedType
| TSMethodSignature
| TSModuleBlock
| TSModuleDeclaration
| TSNamedTupleMember
| TSNamespaceExportDeclaration
| TSNeverKeyword
| TSNonNullExpression
| TSNullKeyword
| TSNumberKeyword
| TSObjectKeyword
| TSOptionalType
| TSParameterProperty
| TSPrivateKeyword
| TSPropertySignature
| TSProtectedKeyword
| TSPublicKeyword
| TSQualifiedName
| TSReadonlyKeyword
| TSRestType
| TSSatisfiesExpression
| TSStaticKeyword
| TSStringKeyword
| TSSymbolKeyword
| TSTemplateLiteralType
| TSThisType
| TSTupleType
| TSTypeAliasDeclaration
| TSTypeAnnotation
| TSTypeAssertion
| TSTypeLiteral
| TSTypeOperator
| TSTypeParameter
| TSTypeParameterDeclaration
| TSTypeParameterInstantiation
| TSTypePredicate
| TSTypeQuery
| TSTypeReference
| TSUndefinedKeyword
| TSUnionType
| TSUnknownKeyword
| TSVoidKeyword
| UnaryExpression
| UpdateExpression
| VariableDeclaration
| VariableDeclarator
| WhileStatement
| WithStatement
| YieldExpression;
Source
unions/Node.ts:175
ObjectLiteralElement
type ObjectLiteralElement: Property | SpreadElement;
Source
unions/ObjectLiteralElement.ts:4
ObjectLiteralElementLike
type ObjectLiteralElementLike: ObjectLiteralElement;
Source
unions/ObjectLiteralElement.ts:7
OptionalRangeAndLoc<T>
type OptionalRangeAndLoc<T>: object & Pick<T, Exclude<keyof T, "loc" | "range">>;
Type declaration
Type parameters
Source
base/OptionalRangeAndLoc.ts:5
Parameter
type Parameter:
| ArrayPattern
| AssignmentPattern
| Identifier
| ObjectPattern
| RestElement
| TSParameterProperty;
Source
unions/Parameter.ts:8
PrimaryExpression
type PrimaryExpression:
| ArrayExpression
| ArrayPattern
| ClassExpression
| FunctionExpression
| Identifier
| JSXElement
| JSXFragment
| JSXOpeningElement
| LiteralExpression
| MetaProperty
| ObjectExpression
| ObjectPattern
| Super
| TemplateLiteral
| ThisExpression
| TSNullKeyword;
Source
unions/PrimaryExpression.ts:19
ProgramStatement
type ProgramStatement:
| ExportAllDeclaration
| ExportDefaultDeclaration
| ExportNamedDeclaration
| ImportDeclaration
| Statement
| TSImportEqualsDeclaration
| TSNamespaceExportDeclaration;
Source
unions/Statement.ts:71
Property
type Property: PropertyComputedName | PropertyNonComputedName;
Source
element/Property/spec.ts:37
PropertyDefinition
type PropertyDefinition: PropertyDefinitionComputedName | PropertyDefinitionNonComputedName;
Source
element/PropertyDefinition/spec.ts:17
PropertyName
type PropertyName: ClassPropertyNameNonComputed | PropertyNameComputed | PropertyNameNonComputed;
Source
unions/PropertyName.ts:7
PropertyNameComputed
type PropertyNameComputed: Expression;
Source
unions/PropertyName.ts:11
PropertyNameNonComputed
type PropertyNameNonComputed: Identifier | NumberLiteral | StringLiteral;
Source
unions/PropertyName.ts:12
Range
type Range: [number, number];
An array of two numbers.
Both numbers are a 0-based index which is the position in the array of source code characters.
The first is the start position of the node, the second is the end position of the node.
Source
base/Range.ts:6
Statement
type Statement:
| BlockStatement
| BreakStatement
| ClassDeclarationWithName
| ContinueStatement
| DebuggerStatement
| DoWhileStatement
| EmptyStatement
| ExportAllDeclaration
| ExportDefaultDeclaration
| ExportNamedDeclaration
| ExpressionStatement
| ForInStatement
| ForOfStatement
| ForStatement
| FunctionDeclarationWithName
| IfStatement
| ImportDeclaration
| LabeledStatement
| ReturnStatement
| SwitchStatement
| ThrowStatement
| TryStatement
| TSDeclareFunction
| TSEnumDeclaration
| TSExportAssignment
| TSImportEqualsDeclaration
| TSInterfaceDeclaration
| TSModuleDeclaration
| TSNamespaceExportDeclaration
| TSTypeAliasDeclaration
| VariableDeclaration
| WhileStatement
| WithStatement;
Source
unions/Statement.ts:35
TSAbstractAccessorProperty
type TSAbstractAccessorProperty: TSAbstractAccessorPropertyComputedName | TSAbstractAccessorPropertyNonComputedName;
Source
element/TSAbstractAccessorProperty/spec.ts:20
TSAbstractMethodDefinition
type TSAbstractMethodDefinition: TSAbstractMethodDefinitionComputedName | TSAbstractMethodDefinitionNonComputedName;
Source
element/TSAbstractMethodDefinition/spec.ts:18
TSAbstractPropertyDefinition
type TSAbstractPropertyDefinition: TSAbstractPropertyDefinitionComputedName | TSAbstractPropertyDefinitionNonComputedName;
Source
element/TSAbstractPropertyDefinition/spec.ts:20
TSDeclareFunction
type TSDeclareFunction: TSDeclareFunctionNoDeclare | TSDeclareFunctionWithDeclare;
Source
declaration/TSDeclareFunction/spec.ts:53
TSEnumMember
type TSEnumMember: TSEnumMemberComputedName | TSEnumMemberNonComputedName;
Source
element/TSEnumMember/spec.ts:42
TSImportEqualsDeclaration
type TSImportEqualsDeclaration: TSImportEqualsNamespaceDeclaration | TSImportEqualsRequireDeclaration;
Source
declaration/TSImportEqualsDeclaration/spec.ts:62
TSMethodSignature
type TSMethodSignature: TSMethodSignatureComputedName | TSMethodSignatureNonComputedName;
Source
element/TSMethodSignature/spec.ts:37
TSModuleDeclaration
type TSModuleDeclaration: TSModuleDeclarationGlobal | TSModuleDeclarationModule | TSModuleDeclarationNamespace;
Source
declaration/TSModuleDeclaration/spec.ts:132
TSModuleDeclarationKind
type TSModuleDeclarationKind: "global" | "module" | "namespace";
Source
declaration/TSModuleDeclaration/spec.ts:9
TSModuleDeclarationModule
type TSModuleDeclarationModule: TSModuleDeclarationModuleWithIdentifierId | TSModuleDeclarationModuleWithStringId;
Source
declaration/TSModuleDeclaration/spec.ts:129
TSModuleDeclarationModuleWithStringId
type TSModuleDeclarationModuleWithStringId: TSModuleDeclarationModuleWithStringIdDeclared | TSModuleDeclarationModuleWithStringIdNotDeclared;
Source
declaration/TSModuleDeclaration/spec.ts:126
TSPropertySignature
type TSPropertySignature: TSPropertySignatureComputedName | TSPropertySignatureNonComputedName;
Source
element/TSPropertySignature/spec.ts:34
TSUnaryExpression
type TSUnaryExpression: AwaitExpression | LeftHandSideExpression | UnaryExpression | UpdateExpression;
Source
unions/TSUnaryExpression.ts:7
Token
type Token:
| BooleanToken
| Comment
| IdentifierToken
| JSXIdentifierToken
| JSXTextToken
| KeywordToken
| NullToken
| NumericToken
| PunctuatorToken
| RegularExpressionToken
| StringToken
| TemplateToken;
Source
unions/Token.ts:14
TypeElement
type TypeElement:
| TSCallSignatureDeclaration
| TSConstructSignatureDeclaration
| TSIndexSignature
| TSMethodSignature
| TSPropertySignature;
Source
unions/TypeElement.ts:7
TypeNode
type TypeNode:
| TSAbstractKeyword
| TSAnyKeyword
| TSArrayType
| TSAsyncKeyword
| TSBigIntKeyword
| TSBooleanKeyword
| TSConditionalType
| TSConstructorType
| TSDeclareKeyword
| TSExportKeyword
| TSFunctionType
| 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;
Source
unions/TypeNode.ts:47
UsingDeclaration
type UsingDeclaration: UsingInForOfDeclaration | UsingInNormalContextDeclaration;
Source
declaration/VariableDeclaration/spec.ts:136
UsingDeclarator
type UsingDeclarator: UsingInForOfDeclarator | UsingInNormalContextDeclarator;
Source
special/VariableDeclarator/spec.ts:64
VariableDeclaration
type VariableDeclaration: LetOrConstOrVarDeclaration | UsingDeclaration;
Source
declaration/VariableDeclaration/spec.ts:140
VariableDeclarator
type VariableDeclarator: LetOrConstOrVarDeclarator | UsingDeclarator;
Source
special/VariableDeclarator/spec.ts:68