@rolldown/browser 1.0.0-beta.9-commit.0ec9e7d → 1.0.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +961 -1551
- package/dist/config.d.mts +9 -6
- package/dist/config.mjs +9 -11
- package/dist/constructors-DsfxKD6A.js +68 -0
- package/dist/error-BeZaDkS8.js +157 -0
- package/dist/experimental-index.browser.mjs +278 -44
- package/dist/experimental-index.d.mts +228 -68
- package/dist/experimental-index.mjs +274 -55
- package/dist/experimental-runtime-types.d.ts +98 -0
- package/dist/filter-index.d.mts +104 -2
- package/dist/filter-index.mjs +144 -5
- package/dist/get-log-filter.d.mts +3 -0
- package/dist/get-log-filter.mjs +68 -0
- package/dist/index.browser.mjs +238 -3
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +53 -6
- package/dist/{shared/parse-ast-index-BHaE0ECV.cjs → normalize-string-or-regex-TtAGUp42.js} +74 -147
- package/dist/parallel-plugin-worker.mjs +27 -35
- package/dist/parallel-plugin.d.mts +7 -7
- package/dist/parallel-plugin.mjs +1 -2
- package/dist/parse-ast-index.d.mts +28 -5
- package/dist/parse-ast-index.mjs +60 -4
- package/dist/plugins-index.browser.mjs +40 -0
- package/dist/plugins-index.d.mts +33 -0
- package/dist/plugins-index.mjs +40 -0
- package/dist/resolve-tsconfig-DThkUPSZ.js +112 -0
- package/dist/rolldown-binding.wasi-browser.js +46 -24
- package/dist/rolldown-binding.wasi.cjs +67 -24
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/rolldown-build-Chx5S-TB.js +5349 -0
- package/dist/shared/bindingify-input-options-Czbczr8Z.mjs +2168 -0
- package/dist/shared/composable-filters-B2ByPP8y.mjs +224 -0
- package/dist/shared/constructors-BVnf_fH1.d.mts +37 -0
- package/dist/shared/constructors-CemeNi29.mjs +68 -0
- package/dist/shared/define-config-DJOr6Iwt.mjs +6 -0
- package/dist/shared/define-config-i6TWE2hm.d.mts +3855 -0
- package/dist/shared/error-CQ6njWsV.mjs +86 -0
- package/dist/shared/get-log-filter-semyr3Lj.d.mts +35 -0
- package/dist/shared/{load-config-D7UduHRZ.mjs → load-config-CxvL5JxT.mjs} +32 -36
- package/dist/shared/logging-C6h4g8dA.d.mts +50 -0
- package/dist/shared/{parse-ast-index-vu376yZ1.mjs → logs-D80CXhvg.mjs} +25 -123
- package/dist/shared/normalize-string-or-regex-CF3Uz6aU.mjs +57 -0
- package/dist/shared/parse-CRhjbrcT.mjs +73 -0
- package/dist/shared/{prompt-CxjDC0Gn.cjs → prompt-BYQIwEjg.mjs} +301 -310
- package/dist/shared/resolve-tsconfig-Cwoo4h_o.mjs +112 -0
- package/dist/shared/rolldown-C3wFxOwq.mjs +40 -0
- package/dist/shared/rolldown-build-ChZOz6BP.mjs +3318 -0
- package/dist/shared/transform-DEgNAQOQ.d.mts +149 -0
- package/dist/shared/types-Cx3HYorz.d.mts +1302 -0
- package/dist/shared/utils-6wxe_LMG.d.mts +22 -0
- package/dist/shared/watch-C1jC1oFT.mjs +373 -0
- package/dist/utils-index.browser.mjs +2414 -0
- package/dist/utils-index.d.mts +374 -0
- package/dist/utils-index.mjs +2415 -0
- package/package.json +33 -38
- package/dist/cli.cjs +0 -1748
- package/dist/cli.d.cts +0 -1
- package/dist/config.cjs +0 -12
- package/dist/config.d.cts +0 -11
- package/dist/experimental-index.cjs +0 -129
- package/dist/experimental-index.d.cts +0 -96
- package/dist/filter-index.cjs +0 -53
- package/dist/filter-index.d.cts +0 -3
- package/dist/index.cjs +0 -9
- package/dist/index.d.cts +0 -3
- package/dist/parallel-plugin-worker.cjs +0 -33
- package/dist/parallel-plugin-worker.d.cts +0 -1
- package/dist/parallel-plugin.cjs +0 -8
- package/dist/parallel-plugin.d.cts +0 -14
- package/dist/parse-ast-index.cjs +0 -4
- package/dist/parse-ast-index.d.cts +0 -9
- package/dist/shared/chunk-DDkG_k5U.cjs +0 -39
- package/dist/shared/chunk-DSsiIF1Z.mjs +0 -30
- package/dist/shared/define-config.d-D4lKXE9V.d.cts +0 -1165
- package/dist/shared/define-config.d-Dm9iNdt9.d.mts +0 -1165
- package/dist/shared/dist-BMVjvV-v.cjs +0 -249
- package/dist/shared/dist-CAn6dxW6.mjs +0 -153
- package/dist/shared/load-config-CtKjQ8Mn.cjs +0 -125
- package/dist/shared/prompt-GFYxfPw7.mjs +0 -854
- package/dist/shared/src-D0nc44MQ.mjs +0 -4691
- package/dist/shared/src-s89s870G.cjs +0 -4647
- package/dist/src-CeWghjQt.js +0 -4329
|
@@ -0,0 +1,1302 @@
|
|
|
1
|
+
declare namespace types_d_exports {
|
|
2
|
+
export { AccessorProperty, AccessorPropertyType, Argument, ArrayAssignmentTarget, ArrayExpression, ArrayExpressionElement, ArrayPattern, ArrowFunctionExpression, AssignmentExpression, AssignmentOperator, AssignmentPattern, AssignmentTarget, AssignmentTargetMaybeDefault, AssignmentTargetPattern, AssignmentTargetProperty, AssignmentTargetPropertyIdentifier, AssignmentTargetPropertyProperty, AssignmentTargetRest, AssignmentTargetWithDefault, AwaitExpression, BigIntLiteral, BinaryExpression, BinaryOperator, BindingIdentifier, BindingPattern, BindingProperty, BindingRestElement, BlockStatement, BooleanLiteral, BreakStatement, CallExpression, CatchClause, ChainElement, ChainExpression, Class, ClassBody, ClassElement, ClassType, ComputedMemberExpression, ConditionalExpression, ContinueStatement, DebuggerStatement, Declaration, Decorator, Directive, DoWhileStatement, EmptyStatement, ExportAllDeclaration, ExportDefaultDeclaration, ExportDefaultDeclarationKind, ExportNamedDeclaration, ExportSpecifier, Expression, ExpressionStatement, ForInStatement, ForOfStatement, ForStatement, ForStatementInit, ForStatementLeft, FormalParameter, FormalParameterRest, Function, FunctionBody, FunctionType, Hashbang, IdentifierName, IdentifierReference, IfStatement, ImportAttribute, ImportAttributeKey, ImportDeclaration, ImportDeclarationSpecifier, ImportDefaultSpecifier, ImportExpression, ImportNamespaceSpecifier, ImportOrExportKind, ImportPhase, ImportSpecifier, JSDocNonNullableType, JSDocNullableType, JSDocUnknownType, JSXAttribute, JSXAttributeItem, JSXAttributeName, JSXAttributeValue, JSXChild, JSXClosingElement, JSXClosingFragment, JSXElement, JSXElementName, JSXEmptyExpression, JSXExpression, JSXExpressionContainer, JSXFragment, JSXIdentifier, JSXMemberExpression, JSXMemberExpressionObject, JSXNamespacedName, JSXOpeningElement, JSXOpeningFragment, JSXSpreadAttribute, JSXSpreadChild, JSXText, LabelIdentifier, LabeledStatement, LogicalExpression, LogicalOperator, MemberExpression, MetaProperty, MethodDefinition, MethodDefinitionKind, MethodDefinitionType, ModuleDeclaration, ModuleExportName, ModuleKind, NewExpression, Node, NullLiteral, NumericLiteral, ObjectAssignmentTarget, ObjectExpression, ObjectPattern, ObjectProperty, ObjectPropertyKind, ParamPattern, ParenthesizedExpression, PrivateFieldExpression, PrivateIdentifier, PrivateInExpression, Program, PropertyDefinition, PropertyDefinitionType, PropertyKey, PropertyKind, RegExpLiteral, ReturnStatement, SequenceExpression, SimpleAssignmentTarget, Span, SpreadElement, Statement, StaticBlock, StaticMemberExpression, StringLiteral, Super, SwitchCase, SwitchStatement, TSAccessibility, TSAnyKeyword, TSArrayType, TSAsExpression, TSBigIntKeyword, TSBooleanKeyword, TSCallSignatureDeclaration, TSClassImplements, TSConditionalType, TSConstructSignatureDeclaration, TSConstructorType, TSEnumBody, TSEnumDeclaration, TSEnumMember, TSEnumMemberName, TSExportAssignment, TSExternalModuleReference, TSFunctionType, TSGlobalDeclaration, TSImportEqualsDeclaration, TSImportType, TSImportTypeQualifiedName, TSImportTypeQualifier, TSIndexSignature, TSIndexSignatureName, TSIndexedAccessType, TSInferType, TSInstantiationExpression, TSInterfaceBody, TSInterfaceDeclaration, TSInterfaceHeritage, TSIntersectionType, TSIntrinsicKeyword, TSLiteral, TSLiteralType, TSMappedType, TSMappedTypeModifierOperator, TSMethodSignature, TSMethodSignatureKind, TSModuleBlock, TSModuleDeclaration, TSModuleDeclarationKind, TSModuleReference, TSNamedTupleMember, TSNamespaceExportDeclaration, TSNeverKeyword, TSNonNullExpression, TSNullKeyword, TSNumberKeyword, TSObjectKeyword, TSOptionalType, TSParameterProperty, TSParenthesizedType, TSPropertySignature, TSQualifiedName, TSRestType, TSSatisfiesExpression, TSSignature, TSStringKeyword, TSSymbolKeyword, TSTemplateLiteralType, TSThisParameter, TSThisType, TSTupleElement, TSTupleType, TSType, TSTypeAliasDeclaration, TSTypeAnnotation, TSTypeAssertion, TSTypeLiteral, TSTypeName, TSTypeOperator, TSTypeOperatorOperator, TSTypeParameter, TSTypeParameterDeclaration, TSTypeParameterInstantiation, TSTypePredicate, TSTypePredicateName, TSTypeQuery, TSTypeQueryExprName, TSTypeReference, TSUndefinedKeyword, TSUnionType, TSUnknownKeyword, TSVoidKeyword, TaggedTemplateExpression, TemplateElement, TemplateElementValue, TemplateLiteral, ThisExpression, ThrowStatement, TryStatement, UnaryExpression, UnaryOperator, UpdateExpression, UpdateOperator, V8IntrinsicExpression, VariableDeclaration, VariableDeclarationKind, VariableDeclarator, WhileStatement, WithStatement, YieldExpression };
|
|
3
|
+
}
|
|
4
|
+
// Auto-generated code, DO NOT EDIT DIRECTLY!
|
|
5
|
+
// To edit this generated file you have to edit `tasks/ast_tools/src/generators/typescript.rs`.
|
|
6
|
+
interface Program extends Span {
|
|
7
|
+
type: "Program";
|
|
8
|
+
body: Array<Directive | Statement>;
|
|
9
|
+
sourceType: ModuleKind;
|
|
10
|
+
hashbang: Hashbang | null;
|
|
11
|
+
parent?: null;
|
|
12
|
+
}
|
|
13
|
+
type Expression = BooleanLiteral | NullLiteral | NumericLiteral | BigIntLiteral | RegExpLiteral | StringLiteral | TemplateLiteral | IdentifierReference | MetaProperty | Super | ArrayExpression | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | CallExpression | ChainExpression | Class | ConditionalExpression | Function | ImportExpression | LogicalExpression | NewExpression | ObjectExpression | ParenthesizedExpression | SequenceExpression | TaggedTemplateExpression | ThisExpression | UnaryExpression | UpdateExpression | YieldExpression | PrivateInExpression | JSXElement | JSXFragment | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSNonNullExpression | TSInstantiationExpression | V8IntrinsicExpression | MemberExpression;
|
|
14
|
+
interface IdentifierName extends Span {
|
|
15
|
+
type: "Identifier";
|
|
16
|
+
decorators?: [];
|
|
17
|
+
name: string;
|
|
18
|
+
optional?: false;
|
|
19
|
+
typeAnnotation?: null;
|
|
20
|
+
parent?: Node;
|
|
21
|
+
}
|
|
22
|
+
interface IdentifierReference extends Span {
|
|
23
|
+
type: "Identifier";
|
|
24
|
+
decorators?: [];
|
|
25
|
+
name: string;
|
|
26
|
+
optional?: false;
|
|
27
|
+
typeAnnotation?: null;
|
|
28
|
+
parent?: Node;
|
|
29
|
+
}
|
|
30
|
+
interface BindingIdentifier extends Span {
|
|
31
|
+
type: "Identifier";
|
|
32
|
+
decorators?: [];
|
|
33
|
+
name: string;
|
|
34
|
+
optional?: false;
|
|
35
|
+
typeAnnotation?: null;
|
|
36
|
+
parent?: Node;
|
|
37
|
+
}
|
|
38
|
+
interface LabelIdentifier extends Span {
|
|
39
|
+
type: "Identifier";
|
|
40
|
+
decorators?: [];
|
|
41
|
+
name: string;
|
|
42
|
+
optional?: false;
|
|
43
|
+
typeAnnotation?: null;
|
|
44
|
+
parent?: Node;
|
|
45
|
+
}
|
|
46
|
+
interface ThisExpression extends Span {
|
|
47
|
+
type: "ThisExpression";
|
|
48
|
+
parent?: Node;
|
|
49
|
+
}
|
|
50
|
+
interface ArrayExpression extends Span {
|
|
51
|
+
type: "ArrayExpression";
|
|
52
|
+
elements: Array<ArrayExpressionElement>;
|
|
53
|
+
parent?: Node;
|
|
54
|
+
}
|
|
55
|
+
type ArrayExpressionElement = SpreadElement | null | Expression;
|
|
56
|
+
interface ObjectExpression extends Span {
|
|
57
|
+
type: "ObjectExpression";
|
|
58
|
+
properties: Array<ObjectPropertyKind>;
|
|
59
|
+
parent?: Node;
|
|
60
|
+
}
|
|
61
|
+
type ObjectPropertyKind = ObjectProperty | SpreadElement;
|
|
62
|
+
interface ObjectProperty extends Span {
|
|
63
|
+
type: "Property";
|
|
64
|
+
kind: PropertyKind;
|
|
65
|
+
key: PropertyKey;
|
|
66
|
+
value: Expression;
|
|
67
|
+
method: boolean;
|
|
68
|
+
shorthand: boolean;
|
|
69
|
+
computed: boolean;
|
|
70
|
+
optional?: false;
|
|
71
|
+
parent?: Node;
|
|
72
|
+
}
|
|
73
|
+
type PropertyKey = IdentifierName | PrivateIdentifier | Expression;
|
|
74
|
+
type PropertyKind = "init" | "get" | "set";
|
|
75
|
+
interface TemplateLiteral extends Span {
|
|
76
|
+
type: "TemplateLiteral";
|
|
77
|
+
quasis: Array<TemplateElement>;
|
|
78
|
+
expressions: Array<Expression>;
|
|
79
|
+
parent?: Node;
|
|
80
|
+
}
|
|
81
|
+
interface TaggedTemplateExpression extends Span {
|
|
82
|
+
type: "TaggedTemplateExpression";
|
|
83
|
+
tag: Expression;
|
|
84
|
+
typeArguments?: TSTypeParameterInstantiation | null;
|
|
85
|
+
quasi: TemplateLiteral;
|
|
86
|
+
parent?: Node;
|
|
87
|
+
}
|
|
88
|
+
interface TemplateElement extends Span {
|
|
89
|
+
type: "TemplateElement";
|
|
90
|
+
value: TemplateElementValue;
|
|
91
|
+
tail: boolean;
|
|
92
|
+
parent?: Node;
|
|
93
|
+
}
|
|
94
|
+
interface TemplateElementValue {
|
|
95
|
+
raw: string;
|
|
96
|
+
cooked: string | null;
|
|
97
|
+
}
|
|
98
|
+
type MemberExpression = ComputedMemberExpression | StaticMemberExpression | PrivateFieldExpression;
|
|
99
|
+
interface ComputedMemberExpression extends Span {
|
|
100
|
+
type: "MemberExpression";
|
|
101
|
+
object: Expression;
|
|
102
|
+
property: Expression;
|
|
103
|
+
optional: boolean;
|
|
104
|
+
computed: true;
|
|
105
|
+
parent?: Node;
|
|
106
|
+
}
|
|
107
|
+
interface StaticMemberExpression extends Span {
|
|
108
|
+
type: "MemberExpression";
|
|
109
|
+
object: Expression;
|
|
110
|
+
property: IdentifierName;
|
|
111
|
+
optional: boolean;
|
|
112
|
+
computed: false;
|
|
113
|
+
parent?: Node;
|
|
114
|
+
}
|
|
115
|
+
interface PrivateFieldExpression extends Span {
|
|
116
|
+
type: "MemberExpression";
|
|
117
|
+
object: Expression;
|
|
118
|
+
property: PrivateIdentifier;
|
|
119
|
+
optional: boolean;
|
|
120
|
+
computed: false;
|
|
121
|
+
parent?: Node;
|
|
122
|
+
}
|
|
123
|
+
interface CallExpression extends Span {
|
|
124
|
+
type: "CallExpression";
|
|
125
|
+
callee: Expression;
|
|
126
|
+
typeArguments?: TSTypeParameterInstantiation | null;
|
|
127
|
+
arguments: Array<Argument>;
|
|
128
|
+
optional: boolean;
|
|
129
|
+
parent?: Node;
|
|
130
|
+
}
|
|
131
|
+
interface NewExpression extends Span {
|
|
132
|
+
type: "NewExpression";
|
|
133
|
+
callee: Expression;
|
|
134
|
+
typeArguments?: TSTypeParameterInstantiation | null;
|
|
135
|
+
arguments: Array<Argument>;
|
|
136
|
+
parent?: Node;
|
|
137
|
+
}
|
|
138
|
+
interface MetaProperty extends Span {
|
|
139
|
+
type: "MetaProperty";
|
|
140
|
+
meta: IdentifierName;
|
|
141
|
+
property: IdentifierName;
|
|
142
|
+
parent?: Node;
|
|
143
|
+
}
|
|
144
|
+
interface SpreadElement extends Span {
|
|
145
|
+
type: "SpreadElement";
|
|
146
|
+
argument: Expression;
|
|
147
|
+
parent?: Node;
|
|
148
|
+
}
|
|
149
|
+
type Argument = SpreadElement | Expression;
|
|
150
|
+
interface UpdateExpression extends Span {
|
|
151
|
+
type: "UpdateExpression";
|
|
152
|
+
operator: UpdateOperator;
|
|
153
|
+
prefix: boolean;
|
|
154
|
+
argument: SimpleAssignmentTarget;
|
|
155
|
+
parent?: Node;
|
|
156
|
+
}
|
|
157
|
+
interface UnaryExpression extends Span {
|
|
158
|
+
type: "UnaryExpression";
|
|
159
|
+
operator: UnaryOperator;
|
|
160
|
+
argument: Expression;
|
|
161
|
+
prefix: true;
|
|
162
|
+
parent?: Node;
|
|
163
|
+
}
|
|
164
|
+
interface BinaryExpression extends Span {
|
|
165
|
+
type: "BinaryExpression";
|
|
166
|
+
left: Expression;
|
|
167
|
+
operator: BinaryOperator;
|
|
168
|
+
right: Expression;
|
|
169
|
+
parent?: Node;
|
|
170
|
+
}
|
|
171
|
+
interface PrivateInExpression extends Span {
|
|
172
|
+
type: "BinaryExpression";
|
|
173
|
+
left: PrivateIdentifier;
|
|
174
|
+
operator: "in";
|
|
175
|
+
right: Expression;
|
|
176
|
+
parent?: Node;
|
|
177
|
+
}
|
|
178
|
+
interface LogicalExpression extends Span {
|
|
179
|
+
type: "LogicalExpression";
|
|
180
|
+
left: Expression;
|
|
181
|
+
operator: LogicalOperator;
|
|
182
|
+
right: Expression;
|
|
183
|
+
parent?: Node;
|
|
184
|
+
}
|
|
185
|
+
interface ConditionalExpression extends Span {
|
|
186
|
+
type: "ConditionalExpression";
|
|
187
|
+
test: Expression;
|
|
188
|
+
consequent: Expression;
|
|
189
|
+
alternate: Expression;
|
|
190
|
+
parent?: Node;
|
|
191
|
+
}
|
|
192
|
+
interface AssignmentExpression extends Span {
|
|
193
|
+
type: "AssignmentExpression";
|
|
194
|
+
operator: AssignmentOperator;
|
|
195
|
+
left: AssignmentTarget;
|
|
196
|
+
right: Expression;
|
|
197
|
+
parent?: Node;
|
|
198
|
+
}
|
|
199
|
+
type AssignmentTarget = SimpleAssignmentTarget | AssignmentTargetPattern;
|
|
200
|
+
type SimpleAssignmentTarget = IdentifierReference | TSAsExpression | TSSatisfiesExpression | TSNonNullExpression | TSTypeAssertion | MemberExpression;
|
|
201
|
+
type AssignmentTargetPattern = ArrayAssignmentTarget | ObjectAssignmentTarget;
|
|
202
|
+
interface ArrayAssignmentTarget extends Span {
|
|
203
|
+
type: "ArrayPattern";
|
|
204
|
+
decorators?: [];
|
|
205
|
+
elements: Array<AssignmentTargetMaybeDefault | AssignmentTargetRest | null>;
|
|
206
|
+
optional?: false;
|
|
207
|
+
typeAnnotation?: null;
|
|
208
|
+
parent?: Node;
|
|
209
|
+
}
|
|
210
|
+
interface ObjectAssignmentTarget extends Span {
|
|
211
|
+
type: "ObjectPattern";
|
|
212
|
+
decorators?: [];
|
|
213
|
+
properties: Array<AssignmentTargetProperty | AssignmentTargetRest>;
|
|
214
|
+
optional?: false;
|
|
215
|
+
typeAnnotation?: null;
|
|
216
|
+
parent?: Node;
|
|
217
|
+
}
|
|
218
|
+
interface AssignmentTargetRest extends Span {
|
|
219
|
+
type: "RestElement";
|
|
220
|
+
decorators?: [];
|
|
221
|
+
argument: AssignmentTarget;
|
|
222
|
+
optional?: false;
|
|
223
|
+
typeAnnotation?: null;
|
|
224
|
+
value?: null;
|
|
225
|
+
parent?: Node;
|
|
226
|
+
}
|
|
227
|
+
type AssignmentTargetMaybeDefault = AssignmentTargetWithDefault | AssignmentTarget;
|
|
228
|
+
interface AssignmentTargetWithDefault extends Span {
|
|
229
|
+
type: "AssignmentPattern";
|
|
230
|
+
decorators?: [];
|
|
231
|
+
left: AssignmentTarget;
|
|
232
|
+
right: Expression;
|
|
233
|
+
optional?: false;
|
|
234
|
+
typeAnnotation?: null;
|
|
235
|
+
parent?: Node;
|
|
236
|
+
}
|
|
237
|
+
type AssignmentTargetProperty = AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty;
|
|
238
|
+
interface AssignmentTargetPropertyIdentifier extends Span {
|
|
239
|
+
type: "Property";
|
|
240
|
+
kind: "init";
|
|
241
|
+
key: IdentifierReference;
|
|
242
|
+
value: IdentifierReference | AssignmentTargetWithDefault;
|
|
243
|
+
method: false;
|
|
244
|
+
shorthand: true;
|
|
245
|
+
computed: false;
|
|
246
|
+
optional?: false;
|
|
247
|
+
parent?: Node;
|
|
248
|
+
}
|
|
249
|
+
interface AssignmentTargetPropertyProperty extends Span {
|
|
250
|
+
type: "Property";
|
|
251
|
+
kind: "init";
|
|
252
|
+
key: PropertyKey;
|
|
253
|
+
value: AssignmentTargetMaybeDefault;
|
|
254
|
+
method: false;
|
|
255
|
+
shorthand: false;
|
|
256
|
+
computed: boolean;
|
|
257
|
+
optional?: false;
|
|
258
|
+
parent?: Node;
|
|
259
|
+
}
|
|
260
|
+
interface SequenceExpression extends Span {
|
|
261
|
+
type: "SequenceExpression";
|
|
262
|
+
expressions: Array<Expression>;
|
|
263
|
+
parent?: Node;
|
|
264
|
+
}
|
|
265
|
+
interface Super extends Span {
|
|
266
|
+
type: "Super";
|
|
267
|
+
parent?: Node;
|
|
268
|
+
}
|
|
269
|
+
interface AwaitExpression extends Span {
|
|
270
|
+
type: "AwaitExpression";
|
|
271
|
+
argument: Expression;
|
|
272
|
+
parent?: Node;
|
|
273
|
+
}
|
|
274
|
+
interface ChainExpression extends Span {
|
|
275
|
+
type: "ChainExpression";
|
|
276
|
+
expression: ChainElement;
|
|
277
|
+
parent?: Node;
|
|
278
|
+
}
|
|
279
|
+
type ChainElement = CallExpression | TSNonNullExpression | MemberExpression;
|
|
280
|
+
interface ParenthesizedExpression extends Span {
|
|
281
|
+
type: "ParenthesizedExpression";
|
|
282
|
+
expression: Expression;
|
|
283
|
+
parent?: Node;
|
|
284
|
+
}
|
|
285
|
+
type Statement = BlockStatement | BreakStatement | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | IfStatement | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | WhileStatement | WithStatement | Declaration | ModuleDeclaration;
|
|
286
|
+
interface Directive extends Span {
|
|
287
|
+
type: "ExpressionStatement";
|
|
288
|
+
expression: StringLiteral;
|
|
289
|
+
directive: string;
|
|
290
|
+
parent?: Node;
|
|
291
|
+
}
|
|
292
|
+
interface Hashbang extends Span {
|
|
293
|
+
type: "Hashbang";
|
|
294
|
+
value: string;
|
|
295
|
+
parent?: Node;
|
|
296
|
+
}
|
|
297
|
+
interface BlockStatement extends Span {
|
|
298
|
+
type: "BlockStatement";
|
|
299
|
+
body: Array<Statement>;
|
|
300
|
+
parent?: Node;
|
|
301
|
+
}
|
|
302
|
+
type Declaration = VariableDeclaration | Function | Class | TSTypeAliasDeclaration | TSInterfaceDeclaration | TSEnumDeclaration | TSModuleDeclaration | TSGlobalDeclaration | TSImportEqualsDeclaration;
|
|
303
|
+
interface VariableDeclaration extends Span {
|
|
304
|
+
type: "VariableDeclaration";
|
|
305
|
+
kind: VariableDeclarationKind;
|
|
306
|
+
declarations: Array<VariableDeclarator>;
|
|
307
|
+
declare?: boolean;
|
|
308
|
+
parent?: Node;
|
|
309
|
+
}
|
|
310
|
+
type VariableDeclarationKind = "var" | "let" | "const" | "using" | "await using";
|
|
311
|
+
interface VariableDeclarator extends Span {
|
|
312
|
+
type: "VariableDeclarator";
|
|
313
|
+
id: BindingPattern;
|
|
314
|
+
init: Expression | null;
|
|
315
|
+
definite?: boolean;
|
|
316
|
+
parent?: Node;
|
|
317
|
+
}
|
|
318
|
+
interface EmptyStatement extends Span {
|
|
319
|
+
type: "EmptyStatement";
|
|
320
|
+
parent?: Node;
|
|
321
|
+
}
|
|
322
|
+
interface ExpressionStatement extends Span {
|
|
323
|
+
type: "ExpressionStatement";
|
|
324
|
+
expression: Expression;
|
|
325
|
+
directive?: string | null;
|
|
326
|
+
parent?: Node;
|
|
327
|
+
}
|
|
328
|
+
interface IfStatement extends Span {
|
|
329
|
+
type: "IfStatement";
|
|
330
|
+
test: Expression;
|
|
331
|
+
consequent: Statement;
|
|
332
|
+
alternate: Statement | null;
|
|
333
|
+
parent?: Node;
|
|
334
|
+
}
|
|
335
|
+
interface DoWhileStatement extends Span {
|
|
336
|
+
type: "DoWhileStatement";
|
|
337
|
+
body: Statement;
|
|
338
|
+
test: Expression;
|
|
339
|
+
parent?: Node;
|
|
340
|
+
}
|
|
341
|
+
interface WhileStatement extends Span {
|
|
342
|
+
type: "WhileStatement";
|
|
343
|
+
test: Expression;
|
|
344
|
+
body: Statement;
|
|
345
|
+
parent?: Node;
|
|
346
|
+
}
|
|
347
|
+
interface ForStatement extends Span {
|
|
348
|
+
type: "ForStatement";
|
|
349
|
+
init: ForStatementInit | null;
|
|
350
|
+
test: Expression | null;
|
|
351
|
+
update: Expression | null;
|
|
352
|
+
body: Statement;
|
|
353
|
+
parent?: Node;
|
|
354
|
+
}
|
|
355
|
+
type ForStatementInit = VariableDeclaration | Expression;
|
|
356
|
+
interface ForInStatement extends Span {
|
|
357
|
+
type: "ForInStatement";
|
|
358
|
+
left: ForStatementLeft;
|
|
359
|
+
right: Expression;
|
|
360
|
+
body: Statement;
|
|
361
|
+
parent?: Node;
|
|
362
|
+
}
|
|
363
|
+
type ForStatementLeft = VariableDeclaration | AssignmentTarget;
|
|
364
|
+
interface ForOfStatement extends Span {
|
|
365
|
+
type: "ForOfStatement";
|
|
366
|
+
await: boolean;
|
|
367
|
+
left: ForStatementLeft;
|
|
368
|
+
right: Expression;
|
|
369
|
+
body: Statement;
|
|
370
|
+
parent?: Node;
|
|
371
|
+
}
|
|
372
|
+
interface ContinueStatement extends Span {
|
|
373
|
+
type: "ContinueStatement";
|
|
374
|
+
label: LabelIdentifier | null;
|
|
375
|
+
parent?: Node;
|
|
376
|
+
}
|
|
377
|
+
interface BreakStatement extends Span {
|
|
378
|
+
type: "BreakStatement";
|
|
379
|
+
label: LabelIdentifier | null;
|
|
380
|
+
parent?: Node;
|
|
381
|
+
}
|
|
382
|
+
interface ReturnStatement extends Span {
|
|
383
|
+
type: "ReturnStatement";
|
|
384
|
+
argument: Expression | null;
|
|
385
|
+
parent?: Node;
|
|
386
|
+
}
|
|
387
|
+
interface WithStatement extends Span {
|
|
388
|
+
type: "WithStatement";
|
|
389
|
+
object: Expression;
|
|
390
|
+
body: Statement;
|
|
391
|
+
parent?: Node;
|
|
392
|
+
}
|
|
393
|
+
interface SwitchStatement extends Span {
|
|
394
|
+
type: "SwitchStatement";
|
|
395
|
+
discriminant: Expression;
|
|
396
|
+
cases: Array<SwitchCase>;
|
|
397
|
+
parent?: Node;
|
|
398
|
+
}
|
|
399
|
+
interface SwitchCase extends Span {
|
|
400
|
+
type: "SwitchCase";
|
|
401
|
+
test: Expression | null;
|
|
402
|
+
consequent: Array<Statement>;
|
|
403
|
+
parent?: Node;
|
|
404
|
+
}
|
|
405
|
+
interface LabeledStatement extends Span {
|
|
406
|
+
type: "LabeledStatement";
|
|
407
|
+
label: LabelIdentifier;
|
|
408
|
+
body: Statement;
|
|
409
|
+
parent?: Node;
|
|
410
|
+
}
|
|
411
|
+
interface ThrowStatement extends Span {
|
|
412
|
+
type: "ThrowStatement";
|
|
413
|
+
argument: Expression;
|
|
414
|
+
parent?: Node;
|
|
415
|
+
}
|
|
416
|
+
interface TryStatement extends Span {
|
|
417
|
+
type: "TryStatement";
|
|
418
|
+
block: BlockStatement;
|
|
419
|
+
handler: CatchClause | null;
|
|
420
|
+
finalizer: BlockStatement | null;
|
|
421
|
+
parent?: Node;
|
|
422
|
+
}
|
|
423
|
+
interface CatchClause extends Span {
|
|
424
|
+
type: "CatchClause";
|
|
425
|
+
param: BindingPattern | null;
|
|
426
|
+
body: BlockStatement;
|
|
427
|
+
parent?: Node;
|
|
428
|
+
}
|
|
429
|
+
interface DebuggerStatement extends Span {
|
|
430
|
+
type: "DebuggerStatement";
|
|
431
|
+
parent?: Node;
|
|
432
|
+
}
|
|
433
|
+
type BindingPattern = BindingIdentifier | ObjectPattern | ArrayPattern | AssignmentPattern;
|
|
434
|
+
interface AssignmentPattern extends Span {
|
|
435
|
+
type: "AssignmentPattern";
|
|
436
|
+
decorators?: [];
|
|
437
|
+
left: BindingPattern;
|
|
438
|
+
right: Expression;
|
|
439
|
+
optional?: false;
|
|
440
|
+
typeAnnotation?: null;
|
|
441
|
+
parent?: Node;
|
|
442
|
+
}
|
|
443
|
+
interface ObjectPattern extends Span {
|
|
444
|
+
type: "ObjectPattern";
|
|
445
|
+
decorators?: [];
|
|
446
|
+
properties: Array<BindingProperty | BindingRestElement>;
|
|
447
|
+
optional?: false;
|
|
448
|
+
typeAnnotation?: null;
|
|
449
|
+
parent?: Node;
|
|
450
|
+
}
|
|
451
|
+
interface BindingProperty extends Span {
|
|
452
|
+
type: "Property";
|
|
453
|
+
kind: "init";
|
|
454
|
+
key: PropertyKey;
|
|
455
|
+
value: BindingPattern;
|
|
456
|
+
method: false;
|
|
457
|
+
shorthand: boolean;
|
|
458
|
+
computed: boolean;
|
|
459
|
+
optional?: false;
|
|
460
|
+
parent?: Node;
|
|
461
|
+
}
|
|
462
|
+
interface ArrayPattern extends Span {
|
|
463
|
+
type: "ArrayPattern";
|
|
464
|
+
decorators?: [];
|
|
465
|
+
elements: Array<BindingPattern | BindingRestElement | null>;
|
|
466
|
+
optional?: false;
|
|
467
|
+
typeAnnotation?: null;
|
|
468
|
+
parent?: Node;
|
|
469
|
+
}
|
|
470
|
+
interface BindingRestElement extends Span {
|
|
471
|
+
type: "RestElement";
|
|
472
|
+
decorators?: [];
|
|
473
|
+
argument: BindingPattern;
|
|
474
|
+
optional?: false;
|
|
475
|
+
typeAnnotation?: null;
|
|
476
|
+
value?: null;
|
|
477
|
+
parent?: Node;
|
|
478
|
+
}
|
|
479
|
+
interface Function extends Span {
|
|
480
|
+
type: FunctionType;
|
|
481
|
+
id: BindingIdentifier | null;
|
|
482
|
+
generator: boolean;
|
|
483
|
+
async: boolean;
|
|
484
|
+
declare?: boolean;
|
|
485
|
+
typeParameters?: TSTypeParameterDeclaration | null;
|
|
486
|
+
params: ParamPattern[];
|
|
487
|
+
returnType?: TSTypeAnnotation | null;
|
|
488
|
+
body: FunctionBody | null;
|
|
489
|
+
expression: false;
|
|
490
|
+
parent?: Node;
|
|
491
|
+
}
|
|
492
|
+
type ParamPattern = FormalParameter | TSParameterProperty | FormalParameterRest;
|
|
493
|
+
type FunctionType = "FunctionDeclaration" | "FunctionExpression" | "TSDeclareFunction" | "TSEmptyBodyFunctionExpression";
|
|
494
|
+
interface FormalParameterRest extends Span {
|
|
495
|
+
type: "RestElement";
|
|
496
|
+
argument: BindingPattern;
|
|
497
|
+
decorators?: [];
|
|
498
|
+
optional?: boolean;
|
|
499
|
+
typeAnnotation?: TSTypeAnnotation | null;
|
|
500
|
+
value?: null;
|
|
501
|
+
parent?: Node;
|
|
502
|
+
}
|
|
503
|
+
type FormalParameter = {
|
|
504
|
+
decorators?: Array<Decorator>;
|
|
505
|
+
} & BindingPattern;
|
|
506
|
+
interface TSParameterProperty extends Span {
|
|
507
|
+
type: "TSParameterProperty";
|
|
508
|
+
accessibility: TSAccessibility | null;
|
|
509
|
+
decorators: Array<Decorator>;
|
|
510
|
+
override: boolean;
|
|
511
|
+
parameter: FormalParameter;
|
|
512
|
+
readonly: boolean;
|
|
513
|
+
static: boolean;
|
|
514
|
+
parent?: Node;
|
|
515
|
+
}
|
|
516
|
+
interface FunctionBody extends Span {
|
|
517
|
+
type: "BlockStatement";
|
|
518
|
+
body: Array<Directive | Statement>;
|
|
519
|
+
parent?: Node;
|
|
520
|
+
}
|
|
521
|
+
interface ArrowFunctionExpression extends Span {
|
|
522
|
+
type: "ArrowFunctionExpression";
|
|
523
|
+
expression: boolean;
|
|
524
|
+
async: boolean;
|
|
525
|
+
typeParameters?: TSTypeParameterDeclaration | null;
|
|
526
|
+
params: ParamPattern[];
|
|
527
|
+
returnType?: TSTypeAnnotation | null;
|
|
528
|
+
body: FunctionBody | Expression;
|
|
529
|
+
id: null;
|
|
530
|
+
generator: false;
|
|
531
|
+
parent?: Node;
|
|
532
|
+
}
|
|
533
|
+
interface YieldExpression extends Span {
|
|
534
|
+
type: "YieldExpression";
|
|
535
|
+
delegate: boolean;
|
|
536
|
+
argument: Expression | null;
|
|
537
|
+
parent?: Node;
|
|
538
|
+
}
|
|
539
|
+
interface Class extends Span {
|
|
540
|
+
type: ClassType;
|
|
541
|
+
decorators: Array<Decorator>;
|
|
542
|
+
id: BindingIdentifier | null;
|
|
543
|
+
typeParameters?: TSTypeParameterDeclaration | null;
|
|
544
|
+
superClass: Expression | null;
|
|
545
|
+
superTypeArguments?: TSTypeParameterInstantiation | null;
|
|
546
|
+
implements?: Array<TSClassImplements>;
|
|
547
|
+
body: ClassBody;
|
|
548
|
+
abstract?: boolean;
|
|
549
|
+
declare?: boolean;
|
|
550
|
+
parent?: Node;
|
|
551
|
+
}
|
|
552
|
+
type ClassType = "ClassDeclaration" | "ClassExpression";
|
|
553
|
+
interface ClassBody extends Span {
|
|
554
|
+
type: "ClassBody";
|
|
555
|
+
body: Array<ClassElement>;
|
|
556
|
+
parent?: Node;
|
|
557
|
+
}
|
|
558
|
+
type ClassElement = StaticBlock | MethodDefinition | PropertyDefinition | AccessorProperty | TSIndexSignature;
|
|
559
|
+
interface MethodDefinition extends Span {
|
|
560
|
+
type: MethodDefinitionType;
|
|
561
|
+
decorators: Array<Decorator>;
|
|
562
|
+
key: PropertyKey;
|
|
563
|
+
value: Function;
|
|
564
|
+
kind: MethodDefinitionKind;
|
|
565
|
+
computed: boolean;
|
|
566
|
+
static: boolean;
|
|
567
|
+
override?: boolean;
|
|
568
|
+
optional?: boolean;
|
|
569
|
+
accessibility?: TSAccessibility | null;
|
|
570
|
+
parent?: Node;
|
|
571
|
+
}
|
|
572
|
+
type MethodDefinitionType = "MethodDefinition" | "TSAbstractMethodDefinition";
|
|
573
|
+
interface PropertyDefinition extends Span {
|
|
574
|
+
type: PropertyDefinitionType;
|
|
575
|
+
decorators: Array<Decorator>;
|
|
576
|
+
key: PropertyKey;
|
|
577
|
+
typeAnnotation?: TSTypeAnnotation | null;
|
|
578
|
+
value: Expression | null;
|
|
579
|
+
computed: boolean;
|
|
580
|
+
static: boolean;
|
|
581
|
+
declare?: boolean;
|
|
582
|
+
override?: boolean;
|
|
583
|
+
optional?: boolean;
|
|
584
|
+
definite?: boolean;
|
|
585
|
+
readonly?: boolean;
|
|
586
|
+
accessibility?: TSAccessibility | null;
|
|
587
|
+
parent?: Node;
|
|
588
|
+
}
|
|
589
|
+
type PropertyDefinitionType = "PropertyDefinition" | "TSAbstractPropertyDefinition";
|
|
590
|
+
type MethodDefinitionKind = "constructor" | "method" | "get" | "set";
|
|
591
|
+
interface PrivateIdentifier extends Span {
|
|
592
|
+
type: "PrivateIdentifier";
|
|
593
|
+
name: string;
|
|
594
|
+
parent?: Node;
|
|
595
|
+
}
|
|
596
|
+
interface StaticBlock extends Span {
|
|
597
|
+
type: "StaticBlock";
|
|
598
|
+
body: Array<Statement>;
|
|
599
|
+
parent?: Node;
|
|
600
|
+
}
|
|
601
|
+
type ModuleDeclaration = ImportDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | TSExportAssignment | TSNamespaceExportDeclaration;
|
|
602
|
+
type AccessorPropertyType = "AccessorProperty" | "TSAbstractAccessorProperty";
|
|
603
|
+
interface AccessorProperty extends Span {
|
|
604
|
+
type: AccessorPropertyType;
|
|
605
|
+
decorators: Array<Decorator>;
|
|
606
|
+
key: PropertyKey;
|
|
607
|
+
typeAnnotation?: TSTypeAnnotation | null;
|
|
608
|
+
value: Expression | null;
|
|
609
|
+
computed: boolean;
|
|
610
|
+
static: boolean;
|
|
611
|
+
override?: boolean;
|
|
612
|
+
definite?: boolean;
|
|
613
|
+
accessibility?: TSAccessibility | null;
|
|
614
|
+
declare?: false;
|
|
615
|
+
optional?: false;
|
|
616
|
+
readonly?: false;
|
|
617
|
+
parent?: Node;
|
|
618
|
+
}
|
|
619
|
+
interface ImportExpression extends Span {
|
|
620
|
+
type: "ImportExpression";
|
|
621
|
+
source: Expression;
|
|
622
|
+
options: Expression | null;
|
|
623
|
+
phase: ImportPhase | null;
|
|
624
|
+
parent?: Node;
|
|
625
|
+
}
|
|
626
|
+
interface ImportDeclaration extends Span {
|
|
627
|
+
type: "ImportDeclaration";
|
|
628
|
+
specifiers: Array<ImportDeclarationSpecifier>;
|
|
629
|
+
source: StringLiteral;
|
|
630
|
+
phase: ImportPhase | null;
|
|
631
|
+
attributes: Array<ImportAttribute>;
|
|
632
|
+
importKind?: ImportOrExportKind;
|
|
633
|
+
parent?: Node;
|
|
634
|
+
}
|
|
635
|
+
type ImportPhase = "source" | "defer";
|
|
636
|
+
type ImportDeclarationSpecifier = ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier;
|
|
637
|
+
interface ImportSpecifier extends Span {
|
|
638
|
+
type: "ImportSpecifier";
|
|
639
|
+
imported: ModuleExportName;
|
|
640
|
+
local: BindingIdentifier;
|
|
641
|
+
importKind?: ImportOrExportKind;
|
|
642
|
+
parent?: Node;
|
|
643
|
+
}
|
|
644
|
+
interface ImportDefaultSpecifier extends Span {
|
|
645
|
+
type: "ImportDefaultSpecifier";
|
|
646
|
+
local: BindingIdentifier;
|
|
647
|
+
parent?: Node;
|
|
648
|
+
}
|
|
649
|
+
interface ImportNamespaceSpecifier extends Span {
|
|
650
|
+
type: "ImportNamespaceSpecifier";
|
|
651
|
+
local: BindingIdentifier;
|
|
652
|
+
parent?: Node;
|
|
653
|
+
}
|
|
654
|
+
interface ImportAttribute extends Span {
|
|
655
|
+
type: "ImportAttribute";
|
|
656
|
+
key: ImportAttributeKey;
|
|
657
|
+
value: StringLiteral;
|
|
658
|
+
parent?: Node;
|
|
659
|
+
}
|
|
660
|
+
type ImportAttributeKey = IdentifierName | StringLiteral;
|
|
661
|
+
interface ExportNamedDeclaration extends Span {
|
|
662
|
+
type: "ExportNamedDeclaration";
|
|
663
|
+
declaration: Declaration | null;
|
|
664
|
+
specifiers: Array<ExportSpecifier>;
|
|
665
|
+
source: StringLiteral | null;
|
|
666
|
+
exportKind?: ImportOrExportKind;
|
|
667
|
+
attributes: Array<ImportAttribute>;
|
|
668
|
+
parent?: Node;
|
|
669
|
+
}
|
|
670
|
+
interface ExportDefaultDeclaration extends Span {
|
|
671
|
+
type: "ExportDefaultDeclaration";
|
|
672
|
+
declaration: ExportDefaultDeclarationKind;
|
|
673
|
+
exportKind?: "value";
|
|
674
|
+
parent?: Node;
|
|
675
|
+
}
|
|
676
|
+
interface ExportAllDeclaration extends Span {
|
|
677
|
+
type: "ExportAllDeclaration";
|
|
678
|
+
exported: ModuleExportName | null;
|
|
679
|
+
source: StringLiteral;
|
|
680
|
+
attributes: Array<ImportAttribute>;
|
|
681
|
+
exportKind?: ImportOrExportKind;
|
|
682
|
+
parent?: Node;
|
|
683
|
+
}
|
|
684
|
+
interface ExportSpecifier extends Span {
|
|
685
|
+
type: "ExportSpecifier";
|
|
686
|
+
local: ModuleExportName;
|
|
687
|
+
exported: ModuleExportName;
|
|
688
|
+
exportKind?: ImportOrExportKind;
|
|
689
|
+
parent?: Node;
|
|
690
|
+
}
|
|
691
|
+
type ExportDefaultDeclarationKind = Function | Class | TSInterfaceDeclaration | Expression;
|
|
692
|
+
type ModuleExportName = IdentifierName | IdentifierReference | StringLiteral;
|
|
693
|
+
interface V8IntrinsicExpression extends Span {
|
|
694
|
+
type: "V8IntrinsicExpression";
|
|
695
|
+
name: IdentifierName;
|
|
696
|
+
arguments: Array<Argument>;
|
|
697
|
+
parent?: Node;
|
|
698
|
+
}
|
|
699
|
+
interface BooleanLiteral extends Span {
|
|
700
|
+
type: "Literal";
|
|
701
|
+
value: boolean;
|
|
702
|
+
raw: string | null;
|
|
703
|
+
parent?: Node;
|
|
704
|
+
}
|
|
705
|
+
interface NullLiteral extends Span {
|
|
706
|
+
type: "Literal";
|
|
707
|
+
value: null;
|
|
708
|
+
raw: "null" | null;
|
|
709
|
+
parent?: Node;
|
|
710
|
+
}
|
|
711
|
+
interface NumericLiteral extends Span {
|
|
712
|
+
type: "Literal";
|
|
713
|
+
value: number;
|
|
714
|
+
raw: string | null;
|
|
715
|
+
parent?: Node;
|
|
716
|
+
}
|
|
717
|
+
interface StringLiteral extends Span {
|
|
718
|
+
type: "Literal";
|
|
719
|
+
value: string;
|
|
720
|
+
raw: string | null;
|
|
721
|
+
parent?: Node;
|
|
722
|
+
}
|
|
723
|
+
interface BigIntLiteral extends Span {
|
|
724
|
+
type: "Literal";
|
|
725
|
+
value: bigint;
|
|
726
|
+
raw: string | null;
|
|
727
|
+
bigint: string;
|
|
728
|
+
parent?: Node;
|
|
729
|
+
}
|
|
730
|
+
interface RegExpLiteral extends Span {
|
|
731
|
+
type: "Literal";
|
|
732
|
+
value: RegExp | null;
|
|
733
|
+
raw: string | null;
|
|
734
|
+
regex: {
|
|
735
|
+
pattern: string;
|
|
736
|
+
flags: string;
|
|
737
|
+
};
|
|
738
|
+
parent?: Node;
|
|
739
|
+
}
|
|
740
|
+
interface JSXElement extends Span {
|
|
741
|
+
type: "JSXElement";
|
|
742
|
+
openingElement: JSXOpeningElement;
|
|
743
|
+
children: Array<JSXChild>;
|
|
744
|
+
closingElement: JSXClosingElement | null;
|
|
745
|
+
parent?: Node;
|
|
746
|
+
}
|
|
747
|
+
interface JSXOpeningElement extends Span {
|
|
748
|
+
type: "JSXOpeningElement";
|
|
749
|
+
name: JSXElementName;
|
|
750
|
+
typeArguments?: TSTypeParameterInstantiation | null;
|
|
751
|
+
attributes: Array<JSXAttributeItem>;
|
|
752
|
+
selfClosing: boolean;
|
|
753
|
+
parent?: Node;
|
|
754
|
+
}
|
|
755
|
+
interface JSXClosingElement extends Span {
|
|
756
|
+
type: "JSXClosingElement";
|
|
757
|
+
name: JSXElementName;
|
|
758
|
+
parent?: Node;
|
|
759
|
+
}
|
|
760
|
+
interface JSXFragment extends Span {
|
|
761
|
+
type: "JSXFragment";
|
|
762
|
+
openingFragment: JSXOpeningFragment;
|
|
763
|
+
children: Array<JSXChild>;
|
|
764
|
+
closingFragment: JSXClosingFragment;
|
|
765
|
+
parent?: Node;
|
|
766
|
+
}
|
|
767
|
+
interface JSXOpeningFragment extends Span {
|
|
768
|
+
type: "JSXOpeningFragment";
|
|
769
|
+
attributes?: [];
|
|
770
|
+
selfClosing?: false;
|
|
771
|
+
parent?: Node;
|
|
772
|
+
}
|
|
773
|
+
interface JSXClosingFragment extends Span {
|
|
774
|
+
type: "JSXClosingFragment";
|
|
775
|
+
parent?: Node;
|
|
776
|
+
}
|
|
777
|
+
type JSXElementName = JSXIdentifier | JSXNamespacedName | JSXMemberExpression;
|
|
778
|
+
interface JSXNamespacedName extends Span {
|
|
779
|
+
type: "JSXNamespacedName";
|
|
780
|
+
namespace: JSXIdentifier;
|
|
781
|
+
name: JSXIdentifier;
|
|
782
|
+
parent?: Node;
|
|
783
|
+
}
|
|
784
|
+
interface JSXMemberExpression extends Span {
|
|
785
|
+
type: "JSXMemberExpression";
|
|
786
|
+
object: JSXMemberExpressionObject;
|
|
787
|
+
property: JSXIdentifier;
|
|
788
|
+
parent?: Node;
|
|
789
|
+
}
|
|
790
|
+
type JSXMemberExpressionObject = JSXIdentifier | JSXMemberExpression;
|
|
791
|
+
interface JSXExpressionContainer extends Span {
|
|
792
|
+
type: "JSXExpressionContainer";
|
|
793
|
+
expression: JSXExpression;
|
|
794
|
+
parent?: Node;
|
|
795
|
+
}
|
|
796
|
+
type JSXExpression = JSXEmptyExpression | Expression;
|
|
797
|
+
interface JSXEmptyExpression extends Span {
|
|
798
|
+
type: "JSXEmptyExpression";
|
|
799
|
+
parent?: Node;
|
|
800
|
+
}
|
|
801
|
+
type JSXAttributeItem = JSXAttribute | JSXSpreadAttribute;
|
|
802
|
+
interface JSXAttribute extends Span {
|
|
803
|
+
type: "JSXAttribute";
|
|
804
|
+
name: JSXAttributeName;
|
|
805
|
+
value: JSXAttributeValue | null;
|
|
806
|
+
parent?: Node;
|
|
807
|
+
}
|
|
808
|
+
interface JSXSpreadAttribute extends Span {
|
|
809
|
+
type: "JSXSpreadAttribute";
|
|
810
|
+
argument: Expression;
|
|
811
|
+
parent?: Node;
|
|
812
|
+
}
|
|
813
|
+
type JSXAttributeName = JSXIdentifier | JSXNamespacedName;
|
|
814
|
+
type JSXAttributeValue = StringLiteral | JSXExpressionContainer | JSXElement | JSXFragment;
|
|
815
|
+
interface JSXIdentifier extends Span {
|
|
816
|
+
type: "JSXIdentifier";
|
|
817
|
+
name: string;
|
|
818
|
+
parent?: Node;
|
|
819
|
+
}
|
|
820
|
+
type JSXChild = JSXText | JSXElement | JSXFragment | JSXExpressionContainer | JSXSpreadChild;
|
|
821
|
+
interface JSXSpreadChild extends Span {
|
|
822
|
+
type: "JSXSpreadChild";
|
|
823
|
+
expression: Expression;
|
|
824
|
+
parent?: Node;
|
|
825
|
+
}
|
|
826
|
+
interface JSXText extends Span {
|
|
827
|
+
type: "JSXText";
|
|
828
|
+
value: string;
|
|
829
|
+
raw: string | null;
|
|
830
|
+
parent?: Node;
|
|
831
|
+
}
|
|
832
|
+
interface TSThisParameter extends Span {
|
|
833
|
+
type: "Identifier";
|
|
834
|
+
decorators: [];
|
|
835
|
+
name: "this";
|
|
836
|
+
optional: false;
|
|
837
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
838
|
+
parent?: Node;
|
|
839
|
+
}
|
|
840
|
+
interface TSEnumDeclaration extends Span {
|
|
841
|
+
type: "TSEnumDeclaration";
|
|
842
|
+
id: BindingIdentifier;
|
|
843
|
+
body: TSEnumBody;
|
|
844
|
+
const: boolean;
|
|
845
|
+
declare: boolean;
|
|
846
|
+
parent?: Node;
|
|
847
|
+
}
|
|
848
|
+
interface TSEnumBody extends Span {
|
|
849
|
+
type: "TSEnumBody";
|
|
850
|
+
members: Array<TSEnumMember>;
|
|
851
|
+
parent?: Node;
|
|
852
|
+
}
|
|
853
|
+
interface TSEnumMember extends Span {
|
|
854
|
+
type: "TSEnumMember";
|
|
855
|
+
id: TSEnumMemberName;
|
|
856
|
+
initializer: Expression | null;
|
|
857
|
+
computed: boolean;
|
|
858
|
+
parent?: Node;
|
|
859
|
+
}
|
|
860
|
+
type TSEnumMemberName = IdentifierName | StringLiteral | TemplateLiteral;
|
|
861
|
+
interface TSTypeAnnotation extends Span {
|
|
862
|
+
type: "TSTypeAnnotation";
|
|
863
|
+
typeAnnotation: TSType;
|
|
864
|
+
parent?: Node;
|
|
865
|
+
}
|
|
866
|
+
interface TSLiteralType extends Span {
|
|
867
|
+
type: "TSLiteralType";
|
|
868
|
+
literal: TSLiteral;
|
|
869
|
+
parent?: Node;
|
|
870
|
+
}
|
|
871
|
+
type TSLiteral = BooleanLiteral | NumericLiteral | BigIntLiteral | StringLiteral | TemplateLiteral | UnaryExpression;
|
|
872
|
+
type TSType = TSAnyKeyword | TSBigIntKeyword | TSBooleanKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSArrayType | TSConditionalType | TSConstructorType | TSFunctionType | TSImportType | TSIndexedAccessType | TSInferType | TSIntersectionType | TSLiteralType | TSMappedType | TSNamedTupleMember | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeLiteral | TSTypeOperator | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUnionType | TSParenthesizedType | JSDocNullableType | JSDocNonNullableType | JSDocUnknownType;
|
|
873
|
+
interface TSConditionalType extends Span {
|
|
874
|
+
type: "TSConditionalType";
|
|
875
|
+
checkType: TSType;
|
|
876
|
+
extendsType: TSType;
|
|
877
|
+
trueType: TSType;
|
|
878
|
+
falseType: TSType;
|
|
879
|
+
parent?: Node;
|
|
880
|
+
}
|
|
881
|
+
interface TSUnionType extends Span {
|
|
882
|
+
type: "TSUnionType";
|
|
883
|
+
types: Array<TSType>;
|
|
884
|
+
parent?: Node;
|
|
885
|
+
}
|
|
886
|
+
interface TSIntersectionType extends Span {
|
|
887
|
+
type: "TSIntersectionType";
|
|
888
|
+
types: Array<TSType>;
|
|
889
|
+
parent?: Node;
|
|
890
|
+
}
|
|
891
|
+
interface TSParenthesizedType extends Span {
|
|
892
|
+
type: "TSParenthesizedType";
|
|
893
|
+
typeAnnotation: TSType;
|
|
894
|
+
parent?: Node;
|
|
895
|
+
}
|
|
896
|
+
interface TSTypeOperator extends Span {
|
|
897
|
+
type: "TSTypeOperator";
|
|
898
|
+
operator: TSTypeOperatorOperator;
|
|
899
|
+
typeAnnotation: TSType;
|
|
900
|
+
parent?: Node;
|
|
901
|
+
}
|
|
902
|
+
type TSTypeOperatorOperator = "keyof" | "unique" | "readonly";
|
|
903
|
+
interface TSArrayType extends Span {
|
|
904
|
+
type: "TSArrayType";
|
|
905
|
+
elementType: TSType;
|
|
906
|
+
parent?: Node;
|
|
907
|
+
}
|
|
908
|
+
interface TSIndexedAccessType extends Span {
|
|
909
|
+
type: "TSIndexedAccessType";
|
|
910
|
+
objectType: TSType;
|
|
911
|
+
indexType: TSType;
|
|
912
|
+
parent?: Node;
|
|
913
|
+
}
|
|
914
|
+
interface TSTupleType extends Span {
|
|
915
|
+
type: "TSTupleType";
|
|
916
|
+
elementTypes: Array<TSTupleElement>;
|
|
917
|
+
parent?: Node;
|
|
918
|
+
}
|
|
919
|
+
interface TSNamedTupleMember extends Span {
|
|
920
|
+
type: "TSNamedTupleMember";
|
|
921
|
+
label: IdentifierName;
|
|
922
|
+
elementType: TSTupleElement;
|
|
923
|
+
optional: boolean;
|
|
924
|
+
parent?: Node;
|
|
925
|
+
}
|
|
926
|
+
interface TSOptionalType extends Span {
|
|
927
|
+
type: "TSOptionalType";
|
|
928
|
+
typeAnnotation: TSType;
|
|
929
|
+
parent?: Node;
|
|
930
|
+
}
|
|
931
|
+
interface TSRestType extends Span {
|
|
932
|
+
type: "TSRestType";
|
|
933
|
+
typeAnnotation: TSType;
|
|
934
|
+
parent?: Node;
|
|
935
|
+
}
|
|
936
|
+
type TSTupleElement = TSOptionalType | TSRestType | TSType;
|
|
937
|
+
interface TSAnyKeyword extends Span {
|
|
938
|
+
type: "TSAnyKeyword";
|
|
939
|
+
parent?: Node;
|
|
940
|
+
}
|
|
941
|
+
interface TSStringKeyword extends Span {
|
|
942
|
+
type: "TSStringKeyword";
|
|
943
|
+
parent?: Node;
|
|
944
|
+
}
|
|
945
|
+
interface TSBooleanKeyword extends Span {
|
|
946
|
+
type: "TSBooleanKeyword";
|
|
947
|
+
parent?: Node;
|
|
948
|
+
}
|
|
949
|
+
interface TSNumberKeyword extends Span {
|
|
950
|
+
type: "TSNumberKeyword";
|
|
951
|
+
parent?: Node;
|
|
952
|
+
}
|
|
953
|
+
interface TSNeverKeyword extends Span {
|
|
954
|
+
type: "TSNeverKeyword";
|
|
955
|
+
parent?: Node;
|
|
956
|
+
}
|
|
957
|
+
interface TSIntrinsicKeyword extends Span {
|
|
958
|
+
type: "TSIntrinsicKeyword";
|
|
959
|
+
parent?: Node;
|
|
960
|
+
}
|
|
961
|
+
interface TSUnknownKeyword extends Span {
|
|
962
|
+
type: "TSUnknownKeyword";
|
|
963
|
+
parent?: Node;
|
|
964
|
+
}
|
|
965
|
+
interface TSNullKeyword extends Span {
|
|
966
|
+
type: "TSNullKeyword";
|
|
967
|
+
parent?: Node;
|
|
968
|
+
}
|
|
969
|
+
interface TSUndefinedKeyword extends Span {
|
|
970
|
+
type: "TSUndefinedKeyword";
|
|
971
|
+
parent?: Node;
|
|
972
|
+
}
|
|
973
|
+
interface TSVoidKeyword extends Span {
|
|
974
|
+
type: "TSVoidKeyword";
|
|
975
|
+
parent?: Node;
|
|
976
|
+
}
|
|
977
|
+
interface TSSymbolKeyword extends Span {
|
|
978
|
+
type: "TSSymbolKeyword";
|
|
979
|
+
parent?: Node;
|
|
980
|
+
}
|
|
981
|
+
interface TSThisType extends Span {
|
|
982
|
+
type: "TSThisType";
|
|
983
|
+
parent?: Node;
|
|
984
|
+
}
|
|
985
|
+
interface TSObjectKeyword extends Span {
|
|
986
|
+
type: "TSObjectKeyword";
|
|
987
|
+
parent?: Node;
|
|
988
|
+
}
|
|
989
|
+
interface TSBigIntKeyword extends Span {
|
|
990
|
+
type: "TSBigIntKeyword";
|
|
991
|
+
parent?: Node;
|
|
992
|
+
}
|
|
993
|
+
interface TSTypeReference extends Span {
|
|
994
|
+
type: "TSTypeReference";
|
|
995
|
+
typeName: TSTypeName;
|
|
996
|
+
typeArguments: TSTypeParameterInstantiation | null;
|
|
997
|
+
parent?: Node;
|
|
998
|
+
}
|
|
999
|
+
type TSTypeName = IdentifierReference | TSQualifiedName | ThisExpression;
|
|
1000
|
+
interface TSQualifiedName extends Span {
|
|
1001
|
+
type: "TSQualifiedName";
|
|
1002
|
+
left: TSTypeName;
|
|
1003
|
+
right: IdentifierName;
|
|
1004
|
+
parent?: Node;
|
|
1005
|
+
}
|
|
1006
|
+
interface TSTypeParameterInstantiation extends Span {
|
|
1007
|
+
type: "TSTypeParameterInstantiation";
|
|
1008
|
+
params: Array<TSType>;
|
|
1009
|
+
parent?: Node;
|
|
1010
|
+
}
|
|
1011
|
+
interface TSTypeParameter extends Span {
|
|
1012
|
+
type: "TSTypeParameter";
|
|
1013
|
+
name: BindingIdentifier;
|
|
1014
|
+
constraint: TSType | null;
|
|
1015
|
+
default: TSType | null;
|
|
1016
|
+
in: boolean;
|
|
1017
|
+
out: boolean;
|
|
1018
|
+
const: boolean;
|
|
1019
|
+
parent?: Node;
|
|
1020
|
+
}
|
|
1021
|
+
interface TSTypeParameterDeclaration extends Span {
|
|
1022
|
+
type: "TSTypeParameterDeclaration";
|
|
1023
|
+
params: Array<TSTypeParameter>;
|
|
1024
|
+
parent?: Node;
|
|
1025
|
+
}
|
|
1026
|
+
interface TSTypeAliasDeclaration extends Span {
|
|
1027
|
+
type: "TSTypeAliasDeclaration";
|
|
1028
|
+
id: BindingIdentifier;
|
|
1029
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1030
|
+
typeAnnotation: TSType;
|
|
1031
|
+
declare: boolean;
|
|
1032
|
+
parent?: Node;
|
|
1033
|
+
}
|
|
1034
|
+
type TSAccessibility = "private" | "protected" | "public";
|
|
1035
|
+
interface TSClassImplements extends Span {
|
|
1036
|
+
type: "TSClassImplements";
|
|
1037
|
+
expression: IdentifierReference | ThisExpression | MemberExpression;
|
|
1038
|
+
typeArguments: TSTypeParameterInstantiation | null;
|
|
1039
|
+
parent?: Node;
|
|
1040
|
+
}
|
|
1041
|
+
interface TSInterfaceDeclaration extends Span {
|
|
1042
|
+
type: "TSInterfaceDeclaration";
|
|
1043
|
+
id: BindingIdentifier;
|
|
1044
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1045
|
+
extends: Array<TSInterfaceHeritage>;
|
|
1046
|
+
body: TSInterfaceBody;
|
|
1047
|
+
declare: boolean;
|
|
1048
|
+
parent?: Node;
|
|
1049
|
+
}
|
|
1050
|
+
interface TSInterfaceBody extends Span {
|
|
1051
|
+
type: "TSInterfaceBody";
|
|
1052
|
+
body: Array<TSSignature>;
|
|
1053
|
+
parent?: Node;
|
|
1054
|
+
}
|
|
1055
|
+
interface TSPropertySignature extends Span {
|
|
1056
|
+
type: "TSPropertySignature";
|
|
1057
|
+
computed: boolean;
|
|
1058
|
+
optional: boolean;
|
|
1059
|
+
readonly: boolean;
|
|
1060
|
+
key: PropertyKey;
|
|
1061
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1062
|
+
accessibility: null;
|
|
1063
|
+
static: false;
|
|
1064
|
+
parent?: Node;
|
|
1065
|
+
}
|
|
1066
|
+
type TSSignature = TSIndexSignature | TSPropertySignature | TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSMethodSignature;
|
|
1067
|
+
interface TSIndexSignature extends Span {
|
|
1068
|
+
type: "TSIndexSignature";
|
|
1069
|
+
parameters: Array<TSIndexSignatureName>;
|
|
1070
|
+
typeAnnotation: TSTypeAnnotation;
|
|
1071
|
+
readonly: boolean;
|
|
1072
|
+
static: boolean;
|
|
1073
|
+
accessibility: null;
|
|
1074
|
+
parent?: Node;
|
|
1075
|
+
}
|
|
1076
|
+
interface TSCallSignatureDeclaration extends Span {
|
|
1077
|
+
type: "TSCallSignatureDeclaration";
|
|
1078
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1079
|
+
params: ParamPattern[];
|
|
1080
|
+
returnType: TSTypeAnnotation | null;
|
|
1081
|
+
parent?: Node;
|
|
1082
|
+
}
|
|
1083
|
+
type TSMethodSignatureKind = "method" | "get" | "set";
|
|
1084
|
+
interface TSMethodSignature extends Span {
|
|
1085
|
+
type: "TSMethodSignature";
|
|
1086
|
+
key: PropertyKey;
|
|
1087
|
+
computed: boolean;
|
|
1088
|
+
optional: boolean;
|
|
1089
|
+
kind: TSMethodSignatureKind;
|
|
1090
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1091
|
+
params: ParamPattern[];
|
|
1092
|
+
returnType: TSTypeAnnotation | null;
|
|
1093
|
+
accessibility: null;
|
|
1094
|
+
readonly: false;
|
|
1095
|
+
static: false;
|
|
1096
|
+
parent?: Node;
|
|
1097
|
+
}
|
|
1098
|
+
interface TSConstructSignatureDeclaration extends Span {
|
|
1099
|
+
type: "TSConstructSignatureDeclaration";
|
|
1100
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1101
|
+
params: ParamPattern[];
|
|
1102
|
+
returnType: TSTypeAnnotation | null;
|
|
1103
|
+
parent?: Node;
|
|
1104
|
+
}
|
|
1105
|
+
interface TSIndexSignatureName extends Span {
|
|
1106
|
+
type: "Identifier";
|
|
1107
|
+
decorators: [];
|
|
1108
|
+
name: string;
|
|
1109
|
+
optional: false;
|
|
1110
|
+
typeAnnotation: TSTypeAnnotation;
|
|
1111
|
+
parent?: Node;
|
|
1112
|
+
}
|
|
1113
|
+
interface TSInterfaceHeritage extends Span {
|
|
1114
|
+
type: "TSInterfaceHeritage";
|
|
1115
|
+
expression: Expression;
|
|
1116
|
+
typeArguments: TSTypeParameterInstantiation | null;
|
|
1117
|
+
parent?: Node;
|
|
1118
|
+
}
|
|
1119
|
+
interface TSTypePredicate extends Span {
|
|
1120
|
+
type: "TSTypePredicate";
|
|
1121
|
+
parameterName: TSTypePredicateName;
|
|
1122
|
+
asserts: boolean;
|
|
1123
|
+
typeAnnotation: TSTypeAnnotation | null;
|
|
1124
|
+
parent?: Node;
|
|
1125
|
+
}
|
|
1126
|
+
type TSTypePredicateName = IdentifierName | TSThisType;
|
|
1127
|
+
interface TSModuleDeclaration extends Span {
|
|
1128
|
+
type: "TSModuleDeclaration";
|
|
1129
|
+
id: BindingIdentifier | StringLiteral | TSQualifiedName;
|
|
1130
|
+
body: TSModuleBlock | null;
|
|
1131
|
+
kind: TSModuleDeclarationKind;
|
|
1132
|
+
declare: boolean;
|
|
1133
|
+
global: false;
|
|
1134
|
+
parent?: Node;
|
|
1135
|
+
}
|
|
1136
|
+
type TSModuleDeclarationKind = "module" | "namespace";
|
|
1137
|
+
interface TSGlobalDeclaration extends Span {
|
|
1138
|
+
type: "TSModuleDeclaration";
|
|
1139
|
+
id: IdentifierName;
|
|
1140
|
+
body: TSModuleBlock;
|
|
1141
|
+
kind: "global";
|
|
1142
|
+
declare: boolean;
|
|
1143
|
+
global: true;
|
|
1144
|
+
parent?: Node;
|
|
1145
|
+
}
|
|
1146
|
+
interface TSModuleBlock extends Span {
|
|
1147
|
+
type: "TSModuleBlock";
|
|
1148
|
+
body: Array<Directive | Statement>;
|
|
1149
|
+
parent?: Node;
|
|
1150
|
+
}
|
|
1151
|
+
interface TSTypeLiteral extends Span {
|
|
1152
|
+
type: "TSTypeLiteral";
|
|
1153
|
+
members: Array<TSSignature>;
|
|
1154
|
+
parent?: Node;
|
|
1155
|
+
}
|
|
1156
|
+
interface TSInferType extends Span {
|
|
1157
|
+
type: "TSInferType";
|
|
1158
|
+
typeParameter: TSTypeParameter;
|
|
1159
|
+
parent?: Node;
|
|
1160
|
+
}
|
|
1161
|
+
interface TSTypeQuery extends Span {
|
|
1162
|
+
type: "TSTypeQuery";
|
|
1163
|
+
exprName: TSTypeQueryExprName;
|
|
1164
|
+
typeArguments: TSTypeParameterInstantiation | null;
|
|
1165
|
+
parent?: Node;
|
|
1166
|
+
}
|
|
1167
|
+
type TSTypeQueryExprName = TSImportType | TSTypeName;
|
|
1168
|
+
interface TSImportType extends Span {
|
|
1169
|
+
type: "TSImportType";
|
|
1170
|
+
source: StringLiteral;
|
|
1171
|
+
options: ObjectExpression | null;
|
|
1172
|
+
qualifier: TSImportTypeQualifier | null;
|
|
1173
|
+
typeArguments: TSTypeParameterInstantiation | null;
|
|
1174
|
+
parent?: Node;
|
|
1175
|
+
}
|
|
1176
|
+
type TSImportTypeQualifier = IdentifierName | TSImportTypeQualifiedName;
|
|
1177
|
+
interface TSImportTypeQualifiedName extends Span {
|
|
1178
|
+
type: "TSQualifiedName";
|
|
1179
|
+
left: TSImportTypeQualifier;
|
|
1180
|
+
right: IdentifierName;
|
|
1181
|
+
parent?: Node;
|
|
1182
|
+
}
|
|
1183
|
+
interface TSFunctionType extends Span {
|
|
1184
|
+
type: "TSFunctionType";
|
|
1185
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1186
|
+
params: ParamPattern[];
|
|
1187
|
+
returnType: TSTypeAnnotation;
|
|
1188
|
+
parent?: Node;
|
|
1189
|
+
}
|
|
1190
|
+
interface TSConstructorType extends Span {
|
|
1191
|
+
type: "TSConstructorType";
|
|
1192
|
+
abstract: boolean;
|
|
1193
|
+
typeParameters: TSTypeParameterDeclaration | null;
|
|
1194
|
+
params: ParamPattern[];
|
|
1195
|
+
returnType: TSTypeAnnotation;
|
|
1196
|
+
parent?: Node;
|
|
1197
|
+
}
|
|
1198
|
+
interface TSMappedType extends Span {
|
|
1199
|
+
type: "TSMappedType";
|
|
1200
|
+
key: BindingIdentifier;
|
|
1201
|
+
constraint: TSType;
|
|
1202
|
+
nameType: TSType | null;
|
|
1203
|
+
typeAnnotation: TSType | null;
|
|
1204
|
+
optional: TSMappedTypeModifierOperator | false;
|
|
1205
|
+
readonly: TSMappedTypeModifierOperator | null;
|
|
1206
|
+
parent?: Node;
|
|
1207
|
+
}
|
|
1208
|
+
type TSMappedTypeModifierOperator = true | "+" | "-";
|
|
1209
|
+
interface TSTemplateLiteralType extends Span {
|
|
1210
|
+
type: "TSTemplateLiteralType";
|
|
1211
|
+
quasis: Array<TemplateElement>;
|
|
1212
|
+
types: Array<TSType>;
|
|
1213
|
+
parent?: Node;
|
|
1214
|
+
}
|
|
1215
|
+
interface TSAsExpression extends Span {
|
|
1216
|
+
type: "TSAsExpression";
|
|
1217
|
+
expression: Expression;
|
|
1218
|
+
typeAnnotation: TSType;
|
|
1219
|
+
parent?: Node;
|
|
1220
|
+
}
|
|
1221
|
+
interface TSSatisfiesExpression extends Span {
|
|
1222
|
+
type: "TSSatisfiesExpression";
|
|
1223
|
+
expression: Expression;
|
|
1224
|
+
typeAnnotation: TSType;
|
|
1225
|
+
parent?: Node;
|
|
1226
|
+
}
|
|
1227
|
+
interface TSTypeAssertion extends Span {
|
|
1228
|
+
type: "TSTypeAssertion";
|
|
1229
|
+
typeAnnotation: TSType;
|
|
1230
|
+
expression: Expression;
|
|
1231
|
+
parent?: Node;
|
|
1232
|
+
}
|
|
1233
|
+
interface TSImportEqualsDeclaration extends Span {
|
|
1234
|
+
type: "TSImportEqualsDeclaration";
|
|
1235
|
+
id: BindingIdentifier;
|
|
1236
|
+
moduleReference: TSModuleReference;
|
|
1237
|
+
importKind: ImportOrExportKind;
|
|
1238
|
+
parent?: Node;
|
|
1239
|
+
}
|
|
1240
|
+
type TSModuleReference = TSExternalModuleReference | IdentifierReference | TSQualifiedName;
|
|
1241
|
+
interface TSExternalModuleReference extends Span {
|
|
1242
|
+
type: "TSExternalModuleReference";
|
|
1243
|
+
expression: StringLiteral;
|
|
1244
|
+
parent?: Node;
|
|
1245
|
+
}
|
|
1246
|
+
interface TSNonNullExpression extends Span {
|
|
1247
|
+
type: "TSNonNullExpression";
|
|
1248
|
+
expression: Expression;
|
|
1249
|
+
parent?: Node;
|
|
1250
|
+
}
|
|
1251
|
+
interface Decorator extends Span {
|
|
1252
|
+
type: "Decorator";
|
|
1253
|
+
expression: Expression;
|
|
1254
|
+
parent?: Node;
|
|
1255
|
+
}
|
|
1256
|
+
interface TSExportAssignment extends Span {
|
|
1257
|
+
type: "TSExportAssignment";
|
|
1258
|
+
expression: Expression;
|
|
1259
|
+
parent?: Node;
|
|
1260
|
+
}
|
|
1261
|
+
interface TSNamespaceExportDeclaration extends Span {
|
|
1262
|
+
type: "TSNamespaceExportDeclaration";
|
|
1263
|
+
id: IdentifierName;
|
|
1264
|
+
parent?: Node;
|
|
1265
|
+
}
|
|
1266
|
+
interface TSInstantiationExpression extends Span {
|
|
1267
|
+
type: "TSInstantiationExpression";
|
|
1268
|
+
expression: Expression;
|
|
1269
|
+
typeArguments: TSTypeParameterInstantiation;
|
|
1270
|
+
parent?: Node;
|
|
1271
|
+
}
|
|
1272
|
+
type ImportOrExportKind = "value" | "type";
|
|
1273
|
+
interface JSDocNullableType extends Span {
|
|
1274
|
+
type: "TSJSDocNullableType";
|
|
1275
|
+
typeAnnotation: TSType;
|
|
1276
|
+
postfix: boolean;
|
|
1277
|
+
parent?: Node;
|
|
1278
|
+
}
|
|
1279
|
+
interface JSDocNonNullableType extends Span {
|
|
1280
|
+
type: "TSJSDocNonNullableType";
|
|
1281
|
+
typeAnnotation: TSType;
|
|
1282
|
+
postfix: boolean;
|
|
1283
|
+
parent?: Node;
|
|
1284
|
+
}
|
|
1285
|
+
interface JSDocUnknownType extends Span {
|
|
1286
|
+
type: "TSJSDocUnknownType";
|
|
1287
|
+
parent?: Node;
|
|
1288
|
+
}
|
|
1289
|
+
type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "**=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "||=" | "&&=" | "??=";
|
|
1290
|
+
type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "+" | "-" | "*" | "/" | "%" | "**" | "<<" | ">>" | ">>>" | "|" | "^" | "&" | "in" | "instanceof";
|
|
1291
|
+
type LogicalOperator = "||" | "&&" | "??";
|
|
1292
|
+
type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
|
|
1293
|
+
type UpdateOperator = "++" | "--";
|
|
1294
|
+
interface Span {
|
|
1295
|
+
start: number;
|
|
1296
|
+
end: number;
|
|
1297
|
+
range?: [number, number];
|
|
1298
|
+
}
|
|
1299
|
+
type ModuleKind = "script" | "module" | "commonjs";
|
|
1300
|
+
type Node = Program | IdentifierName | IdentifierReference | BindingIdentifier | LabelIdentifier | ThisExpression | ArrayExpression | ObjectExpression | ObjectProperty | TemplateLiteral | TaggedTemplateExpression | TemplateElement | ComputedMemberExpression | StaticMemberExpression | PrivateFieldExpression | CallExpression | NewExpression | MetaProperty | SpreadElement | UpdateExpression | UnaryExpression | BinaryExpression | PrivateInExpression | LogicalExpression | ConditionalExpression | AssignmentExpression | ArrayAssignmentTarget | ObjectAssignmentTarget | AssignmentTargetRest | AssignmentTargetWithDefault | AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty | SequenceExpression | Super | AwaitExpression | ChainExpression | ParenthesizedExpression | Directive | Hashbang | BlockStatement | VariableDeclaration | VariableDeclarator | EmptyStatement | ExpressionStatement | IfStatement | DoWhileStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | ContinueStatement | BreakStatement | ReturnStatement | WithStatement | SwitchStatement | SwitchCase | LabeledStatement | ThrowStatement | TryStatement | CatchClause | DebuggerStatement | AssignmentPattern | ObjectPattern | BindingProperty | ArrayPattern | BindingRestElement | Function | FunctionBody | ArrowFunctionExpression | YieldExpression | Class | ClassBody | MethodDefinition | PropertyDefinition | PrivateIdentifier | StaticBlock | AccessorProperty | ImportExpression | ImportDeclaration | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportAttribute | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration | ExportSpecifier | V8IntrinsicExpression | BooleanLiteral | NullLiteral | NumericLiteral | StringLiteral | BigIntLiteral | RegExpLiteral | JSXElement | JSXOpeningElement | JSXClosingElement | JSXFragment | JSXOpeningFragment | JSXClosingFragment | JSXNamespacedName | JSXMemberExpression | JSXExpressionContainer | JSXEmptyExpression | JSXAttribute | JSXSpreadAttribute | JSXIdentifier | JSXSpreadChild | JSXText | TSThisParameter | TSEnumDeclaration | TSEnumBody | TSEnumMember | TSTypeAnnotation | TSLiteralType | TSConditionalType | TSUnionType | TSIntersectionType | TSParenthesizedType | TSTypeOperator | TSArrayType | TSIndexedAccessType | TSTupleType | TSNamedTupleMember | TSOptionalType | TSRestType | TSAnyKeyword | TSStringKeyword | TSBooleanKeyword | TSNumberKeyword | TSNeverKeyword | TSIntrinsicKeyword | TSUnknownKeyword | TSNullKeyword | TSUndefinedKeyword | TSVoidKeyword | TSSymbolKeyword | TSThisType | TSObjectKeyword | TSBigIntKeyword | TSTypeReference | TSQualifiedName | TSTypeParameterInstantiation | TSTypeParameter | TSTypeParameterDeclaration | TSTypeAliasDeclaration | TSClassImplements | TSInterfaceDeclaration | TSInterfaceBody | TSPropertySignature | TSIndexSignature | TSCallSignatureDeclaration | TSMethodSignature | TSConstructSignatureDeclaration | TSIndexSignatureName | TSInterfaceHeritage | TSTypePredicate | TSModuleDeclaration | TSGlobalDeclaration | TSModuleBlock | TSTypeLiteral | TSInferType | TSTypeQuery | TSImportType | TSImportTypeQualifiedName | TSFunctionType | TSConstructorType | TSMappedType | TSTemplateLiteralType | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | Decorator | TSExportAssignment | TSNamespaceExportDeclaration | TSInstantiationExpression | JSDocNullableType | JSDocNonNullableType | JSDocUnknownType | ParamPattern;
|
|
1301
|
+
//#endregion
|
|
1302
|
+
export { JSXClosingElement as $, TaggedTemplateExpression as $n, TSFunctionType as $t, ExportAllDeclaration as A, TSRestType as An, ReturnStatement as At, IdentifierName as B, TSTypeAssertion as Bn, TSAsExpression as Bt, ClassBody as C, TSNumberKeyword as Cn, ObjectPattern as Ct, Decorator as D, TSParenthesizedType as Dn, Program as Dt, DebuggerStatement as E, TSParameterProperty as En, PrivateIdentifier as Et, ForInStatement as F, TSThisParameter as Fn, Super as Ft, ImportDefaultSpecifier as G, TSTypeParameterInstantiation as Gn, TSConditionalType as Gt, IfStatement as H, TSTypeOperator as Hn, TSBooleanKeyword as Ht, ForOfStatement as I, TSThisType as In, SwitchCase as It, ImportSpecifier as J, TSTypeReference as Jn, TSEnumBody as Jt, ImportExpression as K, TSTypePredicate as Kn, TSConstructSignatureDeclaration as Kt, ForStatement as L, TSTupleType as Ln, SwitchStatement as Lt, ExportNamedDeclaration as M, TSStringKeyword as Mn, SpreadElement as Mt, ExportSpecifier as N, TSSymbolKeyword as Nn, StaticBlock as Nt, DoWhileStatement as O, TSPropertySignature as On, PropertyDefinition as Ot, ExpressionStatement as P, TSTemplateLiteralType as Pn, StringLiteral as Pt, JSXAttribute as Q, TSVoidKeyword as Qn, TSExternalModuleReference as Qt, FormalParameterRest as R, TSTypeAliasDeclaration as Rn, TSAnyKeyword as Rt, Class as S, TSNullKeyword as Sn, ObjectExpression as St, ContinueStatement as T, TSOptionalType as Tn, ParenthesizedExpression as Tt, ImportAttribute as U, TSTypeParameter as Un, TSCallSignatureDeclaration as Ut, IdentifierReference as V, TSTypeLiteral as Vn, TSBigIntKeyword as Vt, ImportDeclaration as W, TSTypeParameterDeclaration as Wn, TSClassImplements as Wt, JSDocNullableType as X, TSUnionType as Xn, TSEnumMember as Xt, JSDocNonNullableType as Y, TSUndefinedKeyword as Yn, TSEnumDeclaration as Yt, JSDocUnknownType as Z, TSUnknownKeyword as Zn, TSExportAssignment as Zt, BooleanLiteral as _, TSModuleDeclaration as _n, MetaProperty as _t, AssignmentExpression as a, TSIndexedAccessType as an, UnaryExpression as ar, JSXIdentifier as at, CatchClause as b, TSNeverKeyword as bn, NullLiteral as bt, AssignmentTargetPropertyProperty as c, TSInterfaceBody as cn, VariableDeclaration as cr, JSXOpeningElement as ct, BigIntLiteral as d, TSIntersectionType as dn, WithStatement as dr, JSXSpreadChild as dt, TSGlobalDeclaration as en, TemplateElement as er, JSXClosingFragment as et, BinaryExpression as f, TSIntrinsicKeyword as fn, YieldExpression as fr, JSXText as ft, BlockStatement as g, TSModuleBlock as gn, MemberExpression as gt, BindingRestElement as h, TSMethodSignature as hn, LogicalExpression as ht, ArrowFunctionExpression as i, TSIndexSignatureName as in, TryStatement as ir, JSXFragment as it, ExportDefaultDeclaration as j, TSSatisfiesExpression as jn, SequenceExpression as jt, EmptyStatement as k, TSQualifiedName as kn, RegExpLiteral as kt, AssignmentTargetRest as l, TSInterfaceDeclaration as ln, VariableDeclarator as lr, JSXOpeningFragment as lt, BindingProperty as m, TSMappedType as mn, LabeledStatement as mt, ArrayExpression as n, TSImportType as nn, ThisExpression as nr, JSXEmptyExpression as nt, AssignmentPattern as o, TSInferType as on, UpdateExpression as or, JSXMemberExpression as ot, BindingIdentifier as p, TSLiteralType as pn, types_d_exports as pr, LabelIdentifier as pt, ImportNamespaceSpecifier as q, TSTypeQuery as qn, TSConstructorType as qt, ArrayPattern as r, TSIndexSignature as rn, ThrowStatement as rr, JSXExpressionContainer as rt, AssignmentTargetProperty as s, TSInstantiationExpression as sn, V8IntrinsicExpression as sr, JSXNamespacedName as st, AccessorProperty as t, TSImportEqualsDeclaration as tn, TemplateLiteral as tr, JSXElement as tt, AwaitExpression as u, TSInterfaceHeritage as un, WhileStatement as ur, JSXSpreadAttribute as ut, BreakStatement as v, TSNamedTupleMember as vn, MethodDefinition as vt, ConditionalExpression as w, TSObjectKeyword as wn, ObjectProperty as wt, ChainExpression as x, TSNonNullExpression as xn, NumericLiteral as xt, CallExpression as y, TSNamespaceExportDeclaration as yn, NewExpression as yt, Function as z, TSTypeAnnotation as zn, TSArrayType as zt };
|