1 |
|
2 |
|
3 |
|
4 | interface BaseComment {
|
5 | value: string;
|
6 | start: number;
|
7 | end: number;
|
8 | loc: SourceLocation;
|
9 | type: "CommentBlock" | "CommentLine";
|
10 | }
|
11 |
|
12 | export interface CommentBlock extends BaseComment {
|
13 | type: "CommentBlock";
|
14 | }
|
15 |
|
16 | export interface CommentLine extends BaseComment {
|
17 | type: "CommentLine";
|
18 | }
|
19 |
|
20 | export type Comment = CommentBlock | CommentLine;
|
21 |
|
22 | export interface SourceLocation {
|
23 | start: {
|
24 | line: number;
|
25 | column: number;
|
26 | };
|
27 |
|
28 | end: {
|
29 | line: number;
|
30 | column: number;
|
31 | };
|
32 | }
|
33 |
|
34 | interface BaseNode {
|
35 | leadingComments: ReadonlyArray<Comment> | null;
|
36 | innerComments: ReadonlyArray<Comment> | null;
|
37 | trailingComments: ReadonlyArray<Comment> | null;
|
38 | start: number | null;
|
39 | end: number | null;
|
40 | loc: SourceLocation | null;
|
41 | type: Node["type"];
|
42 | extra?: Record<string, unknown>;
|
43 | }
|
44 |
|
45 | export type Node = Accessor | AnyTypeAnnotation | ArgumentPlaceholder | ArrayExpression | ArrayPattern | ArrayTypeAnnotation | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | Binary | BinaryExpression | BindExpression | Block | BlockParent | BlockStatement | BooleanLiteral | BooleanLiteralTypeAnnotation | BooleanTypeAnnotation | BreakStatement | CallExpression | CatchClause | Class | ClassAccessorProperty | ClassBody | ClassDeclaration | ClassExpression | ClassImplements | ClassMethod | ClassPrivateMethod | ClassPrivateProperty | ClassProperty | CompletionStatement | Conditional | ConditionalExpression | ContinueStatement | DebuggerStatement | DecimalLiteral | Declaration | DeclareClass | DeclareExportAllDeclaration | DeclareExportDeclaration | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareOpaqueType | DeclareTypeAlias | DeclareVariable | DeclaredPredicate | Decorator | Directive | DirectiveLiteral | DoExpression | DoWhileStatement | EmptyStatement | EmptyTypeAnnotation | EnumBody | EnumBooleanBody | EnumBooleanMember | EnumDeclaration | EnumDefaultedMember | EnumMember | EnumNumberBody | EnumNumberMember | EnumStringBody | EnumStringMember | EnumSymbolBody | ExistsTypeAnnotation | ExportAllDeclaration | ExportDeclaration | ExportDefaultDeclaration | ExportDefaultSpecifier | ExportNamedDeclaration | ExportNamespaceSpecifier | ExportSpecifier | Expression | ExpressionStatement | ExpressionWrapper | File | Flow | FlowBaseAnnotation | FlowDeclaration | FlowPredicate | FlowType | For | ForInStatement | ForOfStatement | ForStatement | ForXStatement | Function | FunctionDeclaration | FunctionExpression | FunctionParent | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | Identifier | IfStatement | Immutable | Import | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | IndexedAccessType | InferredPredicate | InterfaceDeclaration | InterfaceExtends | InterfaceTypeAnnotation | InterpreterDirective | IntersectionTypeAnnotation | JSX | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LVal | LabeledStatement | Literal | LogicalExpression | Loop | MemberExpression | MetaProperty | Method | Miscellaneous | MixedTypeAnnotation | ModuleDeclaration | ModuleExpression | ModuleSpecifier | NewExpression | Noop | NullLiteral | NullLiteralTypeAnnotation | NullableTypeAnnotation | NumberLiteral | NumberLiteralTypeAnnotation | NumberTypeAnnotation | NumericLiteral | ObjectExpression | ObjectMember | ObjectMethod | ObjectPattern | ObjectProperty | ObjectTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeInternalSlot | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | OptionalCallExpression | OptionalIndexedAccessType | OptionalMemberExpression | ParenthesizedExpression | Pattern | PatternLike | PipelineBareFunction | PipelinePrimaryTopicReference | PipelineTopicExpression | Placeholder | Private | PrivateName | Program | Property | Pureish | QualifiedTypeIdentifier | RecordExpression | RegExpLiteral | RegexLiteral | RestElement | RestProperty | ReturnStatement | Scopable | SequenceExpression | SpreadElement | SpreadProperty | Standardized | Statement | StaticBlock | StringLiteral | StringLiteralTypeAnnotation | StringTypeAnnotation | Super | SwitchCase | SwitchStatement | SymbolTypeAnnotation | TSAnyKeyword | TSArrayType | TSAsExpression | TSBaseType | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSConditionalType | TSConstructSignatureDeclaration | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSEntityName | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExpressionWithTypeArguments | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexSignature | TSIndexedAccessType | TSInferType | TSInterfaceBody | TSInterfaceDeclaration | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSParenthesizedType | TSPropertySignature | TSQualifiedName | TSRestType | TSStringKeyword | TSSymbolKeyword | TSThisType | TSTupleType | TSType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeElement | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | TaggedTemplateExpression | TemplateElement | TemplateLiteral | Terminatorless | ThisExpression | ThisTypeAnnotation | ThrowStatement | TopicReference | TryStatement | TupleExpression | TupleTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | TypeScript | TypeofTypeAnnotation | UnaryExpression | UnaryLike | UnionTypeAnnotation | UpdateExpression | UserWhitespacable | V8IntrinsicIdentifier | VariableDeclaration | VariableDeclarator | Variance | VoidTypeAnnotation | While | WhileStatement | WithStatement | YieldExpression;
|
46 |
|
47 | export interface ArrayExpression extends BaseNode {
|
48 | type: "ArrayExpression";
|
49 | elements: Array<null | Expression | SpreadElement>;
|
50 | }
|
51 |
|
52 | export interface AssignmentExpression extends BaseNode {
|
53 | type: "AssignmentExpression";
|
54 | operator: string;
|
55 | left: LVal;
|
56 | right: Expression;
|
57 | }
|
58 |
|
59 | export interface BinaryExpression extends BaseNode {
|
60 | type: "BinaryExpression";
|
61 | operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=";
|
62 | left: Expression | PrivateName;
|
63 | right: Expression;
|
64 | }
|
65 |
|
66 | export interface InterpreterDirective extends BaseNode {
|
67 | type: "InterpreterDirective";
|
68 | value: string;
|
69 | }
|
70 |
|
71 | export interface Directive extends BaseNode {
|
72 | type: "Directive";
|
73 | value: DirectiveLiteral;
|
74 | }
|
75 |
|
76 | export interface DirectiveLiteral extends BaseNode {
|
77 | type: "DirectiveLiteral";
|
78 | value: string;
|
79 | }
|
80 |
|
81 | export interface BlockStatement extends BaseNode {
|
82 | type: "BlockStatement";
|
83 | body: Array<Statement>;
|
84 | directives: Array<Directive>;
|
85 | }
|
86 |
|
87 | export interface BreakStatement extends BaseNode {
|
88 | type: "BreakStatement";
|
89 | label: Identifier | null;
|
90 | }
|
91 |
|
92 | export interface CallExpression extends BaseNode {
|
93 | type: "CallExpression";
|
94 | callee: Expression | V8IntrinsicIdentifier;
|
95 | arguments: Array<Expression | SpreadElement | JSXNamespacedName | ArgumentPlaceholder>;
|
96 | optional: true | false | null;
|
97 | typeArguments: TypeParameterInstantiation | null;
|
98 | typeParameters: TSTypeParameterInstantiation | null;
|
99 | }
|
100 |
|
101 | export interface CatchClause extends BaseNode {
|
102 | type: "CatchClause";
|
103 | param: Identifier | ArrayPattern | ObjectPattern | null;
|
104 | body: BlockStatement;
|
105 | }
|
106 |
|
107 | export interface ConditionalExpression extends BaseNode {
|
108 | type: "ConditionalExpression";
|
109 | test: Expression;
|
110 | consequent: Expression;
|
111 | alternate: Expression;
|
112 | }
|
113 |
|
114 | export interface ContinueStatement extends BaseNode {
|
115 | type: "ContinueStatement";
|
116 | label: Identifier | null;
|
117 | }
|
118 |
|
119 | export interface DebuggerStatement extends BaseNode {
|
120 | type: "DebuggerStatement";
|
121 | }
|
122 |
|
123 | export interface DoWhileStatement extends BaseNode {
|
124 | type: "DoWhileStatement";
|
125 | test: Expression;
|
126 | body: Statement;
|
127 | }
|
128 |
|
129 | export interface EmptyStatement extends BaseNode {
|
130 | type: "EmptyStatement";
|
131 | }
|
132 |
|
133 | export interface ExpressionStatement extends BaseNode {
|
134 | type: "ExpressionStatement";
|
135 | expression: Expression;
|
136 | }
|
137 |
|
138 | export interface File extends BaseNode {
|
139 | type: "File";
|
140 | program: Program;
|
141 | comments: Array<CommentBlock | CommentLine> | null;
|
142 | tokens: Array<any> | null;
|
143 | }
|
144 |
|
145 | export interface ForInStatement extends BaseNode {
|
146 | type: "ForInStatement";
|
147 | left: VariableDeclaration | LVal;
|
148 | right: Expression;
|
149 | body: Statement;
|
150 | }
|
151 |
|
152 | export interface ForStatement extends BaseNode {
|
153 | type: "ForStatement";
|
154 | init: VariableDeclaration | Expression | null;
|
155 | test: Expression | null;
|
156 | update: Expression | null;
|
157 | body: Statement;
|
158 | }
|
159 |
|
160 | export interface FunctionDeclaration extends BaseNode {
|
161 | type: "FunctionDeclaration";
|
162 | id: Identifier | null;
|
163 | params: Array<Identifier | Pattern | RestElement>;
|
164 | body: BlockStatement;
|
165 | generator: boolean;
|
166 | async: boolean;
|
167 | declare: boolean | null;
|
168 | returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
169 | typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
170 | }
|
171 |
|
172 | export interface FunctionExpression extends BaseNode {
|
173 | type: "FunctionExpression";
|
174 | id: Identifier | null;
|
175 | params: Array<Identifier | Pattern | RestElement>;
|
176 | body: BlockStatement;
|
177 | generator: boolean;
|
178 | async: boolean;
|
179 | returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
180 | typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
181 | }
|
182 |
|
183 | export interface Identifier extends BaseNode {
|
184 | type: "Identifier";
|
185 | name: string;
|
186 | decorators: Array<Decorator> | null;
|
187 | optional: boolean | null;
|
188 | typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
189 | }
|
190 |
|
191 | export interface IfStatement extends BaseNode {
|
192 | type: "IfStatement";
|
193 | test: Expression;
|
194 | consequent: Statement;
|
195 | alternate: Statement | null;
|
196 | }
|
197 |
|
198 | export interface LabeledStatement extends BaseNode {
|
199 | type: "LabeledStatement";
|
200 | label: Identifier;
|
201 | body: Statement;
|
202 | }
|
203 |
|
204 | export interface StringLiteral extends BaseNode {
|
205 | type: "StringLiteral";
|
206 | value: string;
|
207 | }
|
208 |
|
209 | export interface NumericLiteral extends BaseNode {
|
210 | type: "NumericLiteral";
|
211 | value: number;
|
212 | }
|
213 |
|
214 | export interface NullLiteral extends BaseNode {
|
215 | type: "NullLiteral";
|
216 | }
|
217 |
|
218 | export interface BooleanLiteral extends BaseNode {
|
219 | type: "BooleanLiteral";
|
220 | value: boolean;
|
221 | }
|
222 |
|
223 | export interface RegExpLiteral extends BaseNode {
|
224 | type: "RegExpLiteral";
|
225 | pattern: string;
|
226 | flags: string;
|
227 | }
|
228 |
|
229 | export interface LogicalExpression extends BaseNode {
|
230 | type: "LogicalExpression";
|
231 | operator: "||" | "&&" | "??";
|
232 | left: Expression;
|
233 | right: Expression;
|
234 | }
|
235 |
|
236 | export interface MemberExpression extends BaseNode {
|
237 | type: "MemberExpression";
|
238 | object: Expression;
|
239 | property: Expression | Identifier | PrivateName;
|
240 | computed: boolean;
|
241 | optional: true | false | null;
|
242 | }
|
243 |
|
244 | export interface NewExpression extends BaseNode {
|
245 | type: "NewExpression";
|
246 | callee: Expression | V8IntrinsicIdentifier;
|
247 | arguments: Array<Expression | SpreadElement | JSXNamespacedName | ArgumentPlaceholder>;
|
248 | optional: true | false | null;
|
249 | typeArguments: TypeParameterInstantiation | null;
|
250 | typeParameters: TSTypeParameterInstantiation | null;
|
251 | }
|
252 |
|
253 | export interface Program extends BaseNode {
|
254 | type: "Program";
|
255 | body: Array<Statement>;
|
256 | directives: Array<Directive>;
|
257 | sourceType: "script" | "module";
|
258 | interpreter: InterpreterDirective | null;
|
259 | sourceFile: string;
|
260 | }
|
261 |
|
262 | export interface ObjectExpression extends BaseNode {
|
263 | type: "ObjectExpression";
|
264 | properties: Array<ObjectMethod | ObjectProperty | SpreadElement>;
|
265 | }
|
266 |
|
267 | export interface ObjectMethod extends BaseNode {
|
268 | type: "ObjectMethod";
|
269 | kind: "method" | "get" | "set";
|
270 | key: Expression | Identifier | StringLiteral | NumericLiteral;
|
271 | params: Array<Identifier | Pattern | RestElement>;
|
272 | body: BlockStatement;
|
273 | computed: boolean;
|
274 | generator: boolean;
|
275 | async: boolean;
|
276 | decorators: Array<Decorator> | null;
|
277 | returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
278 | typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
279 | }
|
280 |
|
281 | export interface ObjectProperty extends BaseNode {
|
282 | type: "ObjectProperty";
|
283 | key: Expression | Identifier | StringLiteral | NumericLiteral;
|
284 | value: Expression | PatternLike;
|
285 | computed: boolean;
|
286 | shorthand: boolean;
|
287 | decorators: Array<Decorator> | null;
|
288 | }
|
289 |
|
290 | export interface RestElement extends BaseNode {
|
291 | type: "RestElement";
|
292 | argument: LVal;
|
293 | decorators: Array<Decorator> | null;
|
294 | optional: boolean | null;
|
295 | typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
296 | }
|
297 |
|
298 | export interface ReturnStatement extends BaseNode {
|
299 | type: "ReturnStatement";
|
300 | argument: Expression | null;
|
301 | }
|
302 |
|
303 | export interface SequenceExpression extends BaseNode {
|
304 | type: "SequenceExpression";
|
305 | expressions: Array<Expression>;
|
306 | }
|
307 |
|
308 | export interface ParenthesizedExpression extends BaseNode {
|
309 | type: "ParenthesizedExpression";
|
310 | expression: Expression;
|
311 | }
|
312 |
|
313 | export interface SwitchCase extends BaseNode {
|
314 | type: "SwitchCase";
|
315 | test: Expression | null;
|
316 | consequent: Array<Statement>;
|
317 | }
|
318 |
|
319 | export interface SwitchStatement extends BaseNode {
|
320 | type: "SwitchStatement";
|
321 | discriminant: Expression;
|
322 | cases: Array<SwitchCase>;
|
323 | }
|
324 |
|
325 | export interface ThisExpression extends BaseNode {
|
326 | type: "ThisExpression";
|
327 | }
|
328 |
|
329 | export interface ThrowStatement extends BaseNode {
|
330 | type: "ThrowStatement";
|
331 | argument: Expression;
|
332 | }
|
333 |
|
334 | export interface TryStatement extends BaseNode {
|
335 | type: "TryStatement";
|
336 | block: BlockStatement;
|
337 | handler: CatchClause | null;
|
338 | finalizer: BlockStatement | null;
|
339 | }
|
340 |
|
341 | export interface UnaryExpression extends BaseNode {
|
342 | type: "UnaryExpression";
|
343 | operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof";
|
344 | argument: Expression;
|
345 | prefix: boolean;
|
346 | }
|
347 |
|
348 | export interface UpdateExpression extends BaseNode {
|
349 | type: "UpdateExpression";
|
350 | operator: "++" | "--";
|
351 | argument: Expression;
|
352 | prefix: boolean;
|
353 | }
|
354 |
|
355 | export interface VariableDeclaration extends BaseNode {
|
356 | type: "VariableDeclaration";
|
357 | kind: "var" | "let" | "const";
|
358 | declarations: Array<VariableDeclarator>;
|
359 | declare: boolean | null;
|
360 | }
|
361 |
|
362 | export interface VariableDeclarator extends BaseNode {
|
363 | type: "VariableDeclarator";
|
364 | id: LVal;
|
365 | init: Expression | null;
|
366 | definite: boolean | null;
|
367 | }
|
368 |
|
369 | export interface WhileStatement extends BaseNode {
|
370 | type: "WhileStatement";
|
371 | test: Expression;
|
372 | body: Statement;
|
373 | }
|
374 |
|
375 | export interface WithStatement extends BaseNode {
|
376 | type: "WithStatement";
|
377 | object: Expression;
|
378 | body: Statement;
|
379 | }
|
380 |
|
381 | export interface AssignmentPattern extends BaseNode {
|
382 | type: "AssignmentPattern";
|
383 | left: Identifier | ObjectPattern | ArrayPattern | MemberExpression;
|
384 | right: Expression;
|
385 | decorators: Array<Decorator> | null;
|
386 | typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
387 | }
|
388 |
|
389 | export interface ArrayPattern extends BaseNode {
|
390 | type: "ArrayPattern";
|
391 | elements: Array<null | PatternLike>;
|
392 | decorators: Array<Decorator> | null;
|
393 | optional: boolean | null;
|
394 | typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
395 | }
|
396 |
|
397 | export interface ArrowFunctionExpression extends BaseNode {
|
398 | type: "ArrowFunctionExpression";
|
399 | params: Array<Identifier | Pattern | RestElement>;
|
400 | body: BlockStatement | Expression;
|
401 | async: boolean;
|
402 | expression: boolean;
|
403 | generator: boolean;
|
404 | returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
405 | typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
406 | }
|
407 |
|
408 | export interface ClassBody extends BaseNode {
|
409 | type: "ClassBody";
|
410 | body: Array<ClassMethod | ClassPrivateMethod | ClassProperty | ClassPrivateProperty | ClassAccessorProperty | TSDeclareMethod | TSIndexSignature | StaticBlock>;
|
411 | }
|
412 |
|
413 | export interface ClassExpression extends BaseNode {
|
414 | type: "ClassExpression";
|
415 | id: Identifier | null;
|
416 | superClass: Expression | null;
|
417 | body: ClassBody;
|
418 | decorators: Array<Decorator> | null;
|
419 | implements: Array<TSExpressionWithTypeArguments | ClassImplements> | null;
|
420 | mixins: InterfaceExtends | null;
|
421 | superTypeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
|
422 | typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
423 | }
|
424 |
|
425 | export interface ClassDeclaration extends BaseNode {
|
426 | type: "ClassDeclaration";
|
427 | id: Identifier;
|
428 | superClass: Expression | null;
|
429 | body: ClassBody;
|
430 | decorators: Array<Decorator> | null;
|
431 | abstract: boolean | null;
|
432 | declare: boolean | null;
|
433 | implements: Array<TSExpressionWithTypeArguments | ClassImplements> | null;
|
434 | mixins: InterfaceExtends | null;
|
435 | superTypeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
|
436 | typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
437 | }
|
438 |
|
439 | export interface ExportAllDeclaration extends BaseNode {
|
440 | type: "ExportAllDeclaration";
|
441 | source: StringLiteral;
|
442 | assertions: Array<ImportAttribute> | null;
|
443 | exportKind: "type" | "value" | null;
|
444 | }
|
445 |
|
446 | export interface ExportDefaultDeclaration extends BaseNode {
|
447 | type: "ExportDefaultDeclaration";
|
448 | declaration: FunctionDeclaration | TSDeclareFunction | ClassDeclaration | Expression;
|
449 | exportKind: "value" | null;
|
450 | }
|
451 |
|
452 | export interface ExportNamedDeclaration extends BaseNode {
|
453 | type: "ExportNamedDeclaration";
|
454 | declaration: Declaration | null;
|
455 | specifiers: Array<ExportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier>;
|
456 | source: StringLiteral | null;
|
457 | assertions: Array<ImportAttribute> | null;
|
458 | exportKind: "type" | "value" | null;
|
459 | }
|
460 |
|
461 | export interface ExportSpecifier extends BaseNode {
|
462 | type: "ExportSpecifier";
|
463 | local: Identifier;
|
464 | exported: Identifier | StringLiteral;
|
465 | exportKind: "type" | "value" | null;
|
466 | }
|
467 |
|
468 | export interface ForOfStatement extends BaseNode {
|
469 | type: "ForOfStatement";
|
470 | left: VariableDeclaration | LVal;
|
471 | right: Expression;
|
472 | body: Statement;
|
473 | await: boolean;
|
474 | }
|
475 |
|
476 | export interface ImportDeclaration extends BaseNode {
|
477 | type: "ImportDeclaration";
|
478 | specifiers: Array<ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>;
|
479 | source: StringLiteral;
|
480 | assertions: Array<ImportAttribute> | null;
|
481 | importKind: "type" | "typeof" | "value" | null;
|
482 | }
|
483 |
|
484 | export interface ImportDefaultSpecifier extends BaseNode {
|
485 | type: "ImportDefaultSpecifier";
|
486 | local: Identifier;
|
487 | }
|
488 |
|
489 | export interface ImportNamespaceSpecifier extends BaseNode {
|
490 | type: "ImportNamespaceSpecifier";
|
491 | local: Identifier;
|
492 | }
|
493 |
|
494 | export interface ImportSpecifier extends BaseNode {
|
495 | type: "ImportSpecifier";
|
496 | local: Identifier;
|
497 | imported: Identifier | StringLiteral;
|
498 | importKind: "type" | "typeof" | "value" | null;
|
499 | }
|
500 |
|
501 | export interface MetaProperty extends BaseNode {
|
502 | type: "MetaProperty";
|
503 | meta: Identifier;
|
504 | property: Identifier;
|
505 | }
|
506 |
|
507 | export interface ClassMethod extends BaseNode {
|
508 | type: "ClassMethod";
|
509 | kind: "get" | "set" | "method" | "constructor";
|
510 | key: Identifier | StringLiteral | NumericLiteral | Expression;
|
511 | params: Array<Identifier | Pattern | RestElement | TSParameterProperty>;
|
512 | body: BlockStatement;
|
513 | computed: boolean;
|
514 | static: boolean;
|
515 | generator: boolean;
|
516 | async: boolean;
|
517 | abstract: boolean | null;
|
518 | access: "public" | "private" | "protected" | null;
|
519 | accessibility: "public" | "private" | "protected" | null;
|
520 | decorators: Array<Decorator> | null;
|
521 | optional: boolean | null;
|
522 | override: boolean;
|
523 | returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
524 | typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
525 | }
|
526 |
|
527 | export interface ObjectPattern extends BaseNode {
|
528 | type: "ObjectPattern";
|
529 | properties: Array<RestElement | ObjectProperty>;
|
530 | decorators: Array<Decorator> | null;
|
531 | typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
532 | }
|
533 |
|
534 | export interface SpreadElement extends BaseNode {
|
535 | type: "SpreadElement";
|
536 | argument: Expression;
|
537 | }
|
538 |
|
539 | export interface Super extends BaseNode {
|
540 | type: "Super";
|
541 | }
|
542 |
|
543 | export interface TaggedTemplateExpression extends BaseNode {
|
544 | type: "TaggedTemplateExpression";
|
545 | tag: Expression;
|
546 | quasi: TemplateLiteral;
|
547 | typeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
|
548 | }
|
549 |
|
550 | export interface TemplateElement extends BaseNode {
|
551 | type: "TemplateElement";
|
552 | value: { raw: string, cooked?: string };
|
553 | tail: boolean;
|
554 | }
|
555 |
|
556 | export interface TemplateLiteral extends BaseNode {
|
557 | type: "TemplateLiteral";
|
558 | quasis: Array<TemplateElement>;
|
559 | expressions: Array<Expression | TSType>;
|
560 | }
|
561 |
|
562 | export interface YieldExpression extends BaseNode {
|
563 | type: "YieldExpression";
|
564 | argument: Expression | null;
|
565 | delegate: boolean;
|
566 | }
|
567 |
|
568 | export interface AwaitExpression extends BaseNode {
|
569 | type: "AwaitExpression";
|
570 | argument: Expression;
|
571 | }
|
572 |
|
573 | export interface Import extends BaseNode {
|
574 | type: "Import";
|
575 | }
|
576 |
|
577 | export interface BigIntLiteral extends BaseNode {
|
578 | type: "BigIntLiteral";
|
579 | value: string;
|
580 | }
|
581 |
|
582 | export interface ExportNamespaceSpecifier extends BaseNode {
|
583 | type: "ExportNamespaceSpecifier";
|
584 | exported: Identifier;
|
585 | }
|
586 |
|
587 | export interface OptionalMemberExpression extends BaseNode {
|
588 | type: "OptionalMemberExpression";
|
589 | object: Expression;
|
590 | property: Expression | Identifier;
|
591 | computed: boolean;
|
592 | optional: boolean;
|
593 | }
|
594 |
|
595 | export interface OptionalCallExpression extends BaseNode {
|
596 | type: "OptionalCallExpression";
|
597 | callee: Expression;
|
598 | arguments: Array<Expression | SpreadElement | JSXNamespacedName | ArgumentPlaceholder>;
|
599 | optional: boolean;
|
600 | typeArguments: TypeParameterInstantiation | null;
|
601 | typeParameters: TSTypeParameterInstantiation | null;
|
602 | }
|
603 |
|
604 | export interface ClassProperty extends BaseNode {
|
605 | type: "ClassProperty";
|
606 | key: Identifier | StringLiteral | NumericLiteral | Expression;
|
607 | value: Expression | null;
|
608 | typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
609 | decorators: Array<Decorator> | null;
|
610 | computed: boolean;
|
611 | static: boolean;
|
612 | abstract: boolean | null;
|
613 | accessibility: "public" | "private" | "protected" | null;
|
614 | declare: boolean | null;
|
615 | definite: boolean | null;
|
616 | optional: boolean | null;
|
617 | override: boolean;
|
618 | readonly: boolean | null;
|
619 | variance: Variance | null;
|
620 | }
|
621 |
|
622 | export interface ClassAccessorProperty extends BaseNode {
|
623 | type: "ClassAccessorProperty";
|
624 | key: Identifier | StringLiteral | NumericLiteral | Expression | PrivateName;
|
625 | value: Expression | null;
|
626 | typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
627 | decorators: Array<Decorator> | null;
|
628 | computed: boolean;
|
629 | static: boolean;
|
630 | abstract: boolean | null;
|
631 | accessibility: "public" | "private" | "protected" | null;
|
632 | declare: boolean | null;
|
633 | definite: boolean | null;
|
634 | optional: boolean | null;
|
635 | override: boolean;
|
636 | readonly: boolean | null;
|
637 | variance: Variance | null;
|
638 | }
|
639 |
|
640 | export interface ClassPrivateProperty extends BaseNode {
|
641 | type: "ClassPrivateProperty";
|
642 | key: PrivateName;
|
643 | value: Expression | null;
|
644 | decorators: Array<Decorator> | null;
|
645 | static: any;
|
646 | definite: boolean | null;
|
647 | readonly: boolean | null;
|
648 | typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
649 | variance: Variance | null;
|
650 | }
|
651 |
|
652 | export interface ClassPrivateMethod extends BaseNode {
|
653 | type: "ClassPrivateMethod";
|
654 | kind: "get" | "set" | "method" | "constructor";
|
655 | key: PrivateName;
|
656 | params: Array<Identifier | Pattern | RestElement | TSParameterProperty>;
|
657 | body: BlockStatement;
|
658 | static: boolean;
|
659 | abstract: boolean | null;
|
660 | access: "public" | "private" | "protected" | null;
|
661 | accessibility: "public" | "private" | "protected" | null;
|
662 | async: boolean;
|
663 | computed: boolean;
|
664 | decorators: Array<Decorator> | null;
|
665 | generator: boolean;
|
666 | optional: boolean | null;
|
667 | override: boolean;
|
668 | returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
|
669 | typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
|
670 | }
|
671 |
|
672 | export interface PrivateName extends BaseNode {
|
673 | type: "PrivateName";
|
674 | id: Identifier;
|
675 | }
|
676 |
|
677 | export interface StaticBlock extends BaseNode {
|
678 | type: "StaticBlock";
|
679 | body: Array<Statement>;
|
680 | }
|
681 |
|
682 | export interface AnyTypeAnnotation extends BaseNode {
|
683 | type: "AnyTypeAnnotation";
|
684 | }
|
685 |
|
686 | export interface ArrayTypeAnnotation extends BaseNode {
|
687 | type: "ArrayTypeAnnotation";
|
688 | elementType: FlowType;
|
689 | }
|
690 |
|
691 | export interface BooleanTypeAnnotation extends BaseNode {
|
692 | type: "BooleanTypeAnnotation";
|
693 | }
|
694 |
|
695 | export interface BooleanLiteralTypeAnnotation extends BaseNode {
|
696 | type: "BooleanLiteralTypeAnnotation";
|
697 | value: boolean;
|
698 | }
|
699 |
|
700 | export interface NullLiteralTypeAnnotation extends BaseNode {
|
701 | type: "NullLiteralTypeAnnotation";
|
702 | }
|
703 |
|
704 | export interface ClassImplements extends BaseNode {
|
705 | type: "ClassImplements";
|
706 | id: Identifier;
|
707 | typeParameters: TypeParameterInstantiation | null;
|
708 | }
|
709 |
|
710 | export interface DeclareClass extends BaseNode {
|
711 | type: "DeclareClass";
|
712 | id: Identifier;
|
713 | typeParameters: TypeParameterDeclaration | null;
|
714 | extends: Array<InterfaceExtends> | null;
|
715 | body: ObjectTypeAnnotation;
|
716 | implements: Array<ClassImplements> | null;
|
717 | mixins: Array<InterfaceExtends> | null;
|
718 | }
|
719 |
|
720 | export interface DeclareFunction extends BaseNode {
|
721 | type: "DeclareFunction";
|
722 | id: Identifier;
|
723 | predicate: DeclaredPredicate | null;
|
724 | }
|
725 |
|
726 | export interface DeclareInterface extends BaseNode {
|
727 | type: "DeclareInterface";
|
728 | id: Identifier;
|
729 | typeParameters: TypeParameterDeclaration | null;
|
730 | extends: Array<InterfaceExtends> | null;
|
731 | body: ObjectTypeAnnotation;
|
732 | implements: Array<ClassImplements> | null;
|
733 | mixins: Array<InterfaceExtends> | null;
|
734 | }
|
735 |
|
736 | export interface DeclareModule extends BaseNode {
|
737 | type: "DeclareModule";
|
738 | id: Identifier | StringLiteral;
|
739 | body: BlockStatement;
|
740 | kind: "CommonJS" | "ES" | null;
|
741 | }
|
742 |
|
743 | export interface DeclareModuleExports extends BaseNode {
|
744 | type: "DeclareModuleExports";
|
745 | typeAnnotation: TypeAnnotation;
|
746 | }
|
747 |
|
748 | export interface DeclareTypeAlias extends BaseNode {
|
749 | type: "DeclareTypeAlias";
|
750 | id: Identifier;
|
751 | typeParameters: TypeParameterDeclaration | null;
|
752 | right: FlowType;
|
753 | }
|
754 |
|
755 | export interface DeclareOpaqueType extends BaseNode {
|
756 | type: "DeclareOpaqueType";
|
757 | id: Identifier;
|
758 | typeParameters: TypeParameterDeclaration | null;
|
759 | supertype: FlowType | null;
|
760 | impltype: FlowType | null;
|
761 | }
|
762 |
|
763 | export interface DeclareVariable extends BaseNode {
|
764 | type: "DeclareVariable";
|
765 | id: Identifier;
|
766 | }
|
767 |
|
768 | export interface DeclareExportDeclaration extends BaseNode {
|
769 | type: "DeclareExportDeclaration";
|
770 | declaration: Flow | null;
|
771 | specifiers: Array<ExportSpecifier | ExportNamespaceSpecifier> | null;
|
772 | source: StringLiteral | null;
|
773 | default: boolean | null;
|
774 | }
|
775 |
|
776 | export interface DeclareExportAllDeclaration extends BaseNode {
|
777 | type: "DeclareExportAllDeclaration";
|
778 | source: StringLiteral;
|
779 | exportKind: "type" | "value" | null;
|
780 | }
|
781 |
|
782 | export interface DeclaredPredicate extends BaseNode {
|
783 | type: "DeclaredPredicate";
|
784 | value: Flow;
|
785 | }
|
786 |
|
787 | export interface ExistsTypeAnnotation extends BaseNode {
|
788 | type: "ExistsTypeAnnotation";
|
789 | }
|
790 |
|
791 | export interface FunctionTypeAnnotation extends BaseNode {
|
792 | type: "FunctionTypeAnnotation";
|
793 | typeParameters: TypeParameterDeclaration | null;
|
794 | params: Array<FunctionTypeParam>;
|
795 | rest: FunctionTypeParam | null;
|
796 | returnType: FlowType;
|
797 | this: FunctionTypeParam | null;
|
798 | }
|
799 |
|
800 | export interface FunctionTypeParam extends BaseNode {
|
801 | type: "FunctionTypeParam";
|
802 | name: Identifier | null;
|
803 | typeAnnotation: FlowType;
|
804 | optional: boolean | null;
|
805 | }
|
806 |
|
807 | export interface GenericTypeAnnotation extends BaseNode {
|
808 | type: "GenericTypeAnnotation";
|
809 | id: Identifier | QualifiedTypeIdentifier;
|
810 | typeParameters: TypeParameterInstantiation | null;
|
811 | }
|
812 |
|
813 | export interface InferredPredicate extends BaseNode {
|
814 | type: "InferredPredicate";
|
815 | }
|
816 |
|
817 | export interface InterfaceExtends extends BaseNode {
|
818 | type: "InterfaceExtends";
|
819 | id: Identifier | QualifiedTypeIdentifier;
|
820 | typeParameters: TypeParameterInstantiation | null;
|
821 | }
|
822 |
|
823 | export interface InterfaceDeclaration extends BaseNode {
|
824 | type: "InterfaceDeclaration";
|
825 | id: Identifier;
|
826 | typeParameters: TypeParameterDeclaration | null;
|
827 | extends: Array<InterfaceExtends> | null;
|
828 | body: ObjectTypeAnnotation;
|
829 | implements: Array<ClassImplements> | null;
|
830 | mixins: Array<InterfaceExtends> | null;
|
831 | }
|
832 |
|
833 | export interface InterfaceTypeAnnotation extends BaseNode {
|
834 | type: "InterfaceTypeAnnotation";
|
835 | extends: Array<InterfaceExtends> | null;
|
836 | body: ObjectTypeAnnotation;
|
837 | }
|
838 |
|
839 | export interface IntersectionTypeAnnotation extends BaseNode {
|
840 | type: "IntersectionTypeAnnotation";
|
841 | types: Array<FlowType>;
|
842 | }
|
843 |
|
844 | export interface MixedTypeAnnotation extends BaseNode {
|
845 | type: "MixedTypeAnnotation";
|
846 | }
|
847 |
|
848 | export interface EmptyTypeAnnotation extends BaseNode {
|
849 | type: "EmptyTypeAnnotation";
|
850 | }
|
851 |
|
852 | export interface NullableTypeAnnotation extends BaseNode {
|
853 | type: "NullableTypeAnnotation";
|
854 | typeAnnotation: FlowType;
|
855 | }
|
856 |
|
857 | export interface NumberLiteralTypeAnnotation extends BaseNode {
|
858 | type: "NumberLiteralTypeAnnotation";
|
859 | value: number;
|
860 | }
|
861 |
|
862 | export interface NumberTypeAnnotation extends BaseNode {
|
863 | type: "NumberTypeAnnotation";
|
864 | }
|
865 |
|
866 | export interface ObjectTypeAnnotation extends BaseNode {
|
867 | type: "ObjectTypeAnnotation";
|
868 | properties: Array<ObjectTypeProperty | ObjectTypeSpreadProperty>;
|
869 | indexers: Array<ObjectTypeIndexer> | null;
|
870 | callProperties: Array<ObjectTypeCallProperty> | null;
|
871 | internalSlots: Array<ObjectTypeInternalSlot> | null;
|
872 | exact: boolean;
|
873 | inexact: boolean | null;
|
874 | }
|
875 |
|
876 | export interface ObjectTypeInternalSlot extends BaseNode {
|
877 | type: "ObjectTypeInternalSlot";
|
878 | id: Identifier;
|
879 | value: FlowType;
|
880 | optional: boolean;
|
881 | static: boolean;
|
882 | method: boolean;
|
883 | }
|
884 |
|
885 | export interface ObjectTypeCallProperty extends BaseNode {
|
886 | type: "ObjectTypeCallProperty";
|
887 | value: FlowType;
|
888 | static: boolean;
|
889 | }
|
890 |
|
891 | export interface ObjectTypeIndexer extends BaseNode {
|
892 | type: "ObjectTypeIndexer";
|
893 | id: Identifier | null;
|
894 | key: FlowType;
|
895 | value: FlowType;
|
896 | variance: Variance | null;
|
897 | static: boolean;
|
898 | }
|
899 |
|
900 | export interface ObjectTypeProperty extends BaseNode {
|
901 | type: "ObjectTypeProperty";
|
902 | key: Identifier | StringLiteral;
|
903 | value: FlowType;
|
904 | variance: Variance | null;
|
905 | kind: "init" | "get" | "set";
|
906 | method: boolean;
|
907 | optional: boolean;
|
908 | proto: boolean;
|
909 | static: boolean;
|
910 | }
|
911 |
|
912 | export interface ObjectTypeSpreadProperty extends BaseNode {
|
913 | type: "ObjectTypeSpreadProperty";
|
914 | argument: FlowType;
|
915 | }
|
916 |
|
917 | export interface OpaqueType extends BaseNode {
|
918 | type: "OpaqueType";
|
919 | id: Identifier;
|
920 | typeParameters: TypeParameterDeclaration | null;
|
921 | supertype: FlowType | null;
|
922 | impltype: FlowType;
|
923 | }
|
924 |
|
925 | export interface QualifiedTypeIdentifier extends BaseNode {
|
926 | type: "QualifiedTypeIdentifier";
|
927 | id: Identifier;
|
928 | qualification: Identifier | QualifiedTypeIdentifier;
|
929 | }
|
930 |
|
931 | export interface StringLiteralTypeAnnotation extends BaseNode {
|
932 | type: "StringLiteralTypeAnnotation";
|
933 | value: string;
|
934 | }
|
935 |
|
936 | export interface StringTypeAnnotation extends BaseNode {
|
937 | type: "StringTypeAnnotation";
|
938 | }
|
939 |
|
940 | export interface SymbolTypeAnnotation extends BaseNode {
|
941 | type: "SymbolTypeAnnotation";
|
942 | }
|
943 |
|
944 | export interface ThisTypeAnnotation extends BaseNode {
|
945 | type: "ThisTypeAnnotation";
|
946 | }
|
947 |
|
948 | export interface TupleTypeAnnotation extends BaseNode {
|
949 | type: "TupleTypeAnnotation";
|
950 | types: Array<FlowType>;
|
951 | }
|
952 |
|
953 | export interface TypeofTypeAnnotation extends BaseNode {
|
954 | type: "TypeofTypeAnnotation";
|
955 | argument: FlowType;
|
956 | }
|
957 |
|
958 | export interface TypeAlias extends BaseNode {
|
959 | type: "TypeAlias";
|
960 | id: Identifier;
|
961 | typeParameters: TypeParameterDeclaration | null;
|
962 | right: FlowType;
|
963 | }
|
964 |
|
965 | export interface TypeAnnotation extends BaseNode {
|
966 | type: "TypeAnnotation";
|
967 | typeAnnotation: FlowType;
|
968 | }
|
969 |
|
970 | export interface TypeCastExpression extends BaseNode {
|
971 | type: "TypeCastExpression";
|
972 | expression: Expression;
|
973 | typeAnnotation: TypeAnnotation;
|
974 | }
|
975 |
|
976 | export interface TypeParameter extends BaseNode {
|
977 | type: "TypeParameter";
|
978 | bound: TypeAnnotation | null;
|
979 | default: FlowType | null;
|
980 | variance: Variance | null;
|
981 | name: string;
|
982 | }
|
983 |
|
984 | export interface TypeParameterDeclaration extends BaseNode {
|
985 | type: "TypeParameterDeclaration";
|
986 | params: Array<TypeParameter>;
|
987 | }
|
988 |
|
989 | export interface TypeParameterInstantiation extends BaseNode {
|
990 | type: "TypeParameterInstantiation";
|
991 | params: Array<FlowType>;
|
992 | }
|
993 |
|
994 | export interface UnionTypeAnnotation extends BaseNode {
|
995 | type: "UnionTypeAnnotation";
|
996 | types: Array<FlowType>;
|
997 | }
|
998 |
|
999 | export interface Variance extends BaseNode {
|
1000 | type: "Variance";
|
1001 | kind: "minus" | "plus";
|
1002 | }
|
1003 |
|
1004 | export interface VoidTypeAnnotation extends BaseNode {
|
1005 | type: "VoidTypeAnnotation";
|
1006 | }
|
1007 |
|
1008 | export interface EnumDeclaration extends BaseNode {
|
1009 | type: "EnumDeclaration";
|
1010 | id: Identifier;
|
1011 | body: EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody;
|
1012 | }
|
1013 |
|
1014 | export interface EnumBooleanBody extends BaseNode {
|
1015 | type: "EnumBooleanBody";
|
1016 | members: Array<EnumBooleanMember>;
|
1017 | explicitType: boolean;
|
1018 | hasUnknownMembers: boolean;
|
1019 | }
|
1020 |
|
1021 | export interface EnumNumberBody extends BaseNode {
|
1022 | type: "EnumNumberBody";
|
1023 | members: Array<EnumNumberMember>;
|
1024 | explicitType: boolean;
|
1025 | hasUnknownMembers: boolean;
|
1026 | }
|
1027 |
|
1028 | export interface EnumStringBody extends BaseNode {
|
1029 | type: "EnumStringBody";
|
1030 | members: Array<EnumStringMember | EnumDefaultedMember>;
|
1031 | explicitType: boolean;
|
1032 | hasUnknownMembers: boolean;
|
1033 | }
|
1034 |
|
1035 | export interface EnumSymbolBody extends BaseNode {
|
1036 | type: "EnumSymbolBody";
|
1037 | members: Array<EnumDefaultedMember>;
|
1038 | hasUnknownMembers: boolean;
|
1039 | }
|
1040 |
|
1041 | export interface EnumBooleanMember extends BaseNode {
|
1042 | type: "EnumBooleanMember";
|
1043 | id: Identifier;
|
1044 | init: BooleanLiteral;
|
1045 | }
|
1046 |
|
1047 | export interface EnumNumberMember extends BaseNode {
|
1048 | type: "EnumNumberMember";
|
1049 | id: Identifier;
|
1050 | init: NumericLiteral;
|
1051 | }
|
1052 |
|
1053 | export interface EnumStringMember extends BaseNode {
|
1054 | type: "EnumStringMember";
|
1055 | id: Identifier;
|
1056 | init: StringLiteral;
|
1057 | }
|
1058 |
|
1059 | export interface EnumDefaultedMember extends BaseNode {
|
1060 | type: "EnumDefaultedMember";
|
1061 | id: Identifier;
|
1062 | }
|
1063 |
|
1064 | export interface IndexedAccessType extends BaseNode {
|
1065 | type: "IndexedAccessType";
|
1066 | objectType: FlowType;
|
1067 | indexType: FlowType;
|
1068 | }
|
1069 |
|
1070 | export interface OptionalIndexedAccessType extends BaseNode {
|
1071 | type: "OptionalIndexedAccessType";
|
1072 | objectType: FlowType;
|
1073 | indexType: FlowType;
|
1074 | optional: boolean;
|
1075 | }
|
1076 |
|
1077 | export interface JSXAttribute extends BaseNode {
|
1078 | type: "JSXAttribute";
|
1079 | name: JSXIdentifier | JSXNamespacedName;
|
1080 | value: JSXElement | JSXFragment | StringLiteral | JSXExpressionContainer | null;
|
1081 | }
|
1082 |
|
1083 | export interface JSXClosingElement extends BaseNode {
|
1084 | type: "JSXClosingElement";
|
1085 | name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName;
|
1086 | }
|
1087 |
|
1088 | export interface JSXElement extends BaseNode {
|
1089 | type: "JSXElement";
|
1090 | openingElement: JSXOpeningElement;
|
1091 | closingElement: JSXClosingElement | null;
|
1092 | children: Array<JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment>;
|
1093 | selfClosing: boolean | null;
|
1094 | }
|
1095 |
|
1096 | export interface JSXEmptyExpression extends BaseNode {
|
1097 | type: "JSXEmptyExpression";
|
1098 | }
|
1099 |
|
1100 | export interface JSXExpressionContainer extends BaseNode {
|
1101 | type: "JSXExpressionContainer";
|
1102 | expression: Expression | JSXEmptyExpression;
|
1103 | }
|
1104 |
|
1105 | export interface JSXSpreadChild extends BaseNode {
|
1106 | type: "JSXSpreadChild";
|
1107 | expression: Expression;
|
1108 | }
|
1109 |
|
1110 | export interface JSXIdentifier extends BaseNode {
|
1111 | type: "JSXIdentifier";
|
1112 | name: string;
|
1113 | }
|
1114 |
|
1115 | export interface JSXMemberExpression extends BaseNode {
|
1116 | type: "JSXMemberExpression";
|
1117 | object: JSXMemberExpression | JSXIdentifier;
|
1118 | property: JSXIdentifier;
|
1119 | }
|
1120 |
|
1121 | export interface JSXNamespacedName extends BaseNode {
|
1122 | type: "JSXNamespacedName";
|
1123 | namespace: JSXIdentifier;
|
1124 | name: JSXIdentifier;
|
1125 | }
|
1126 |
|
1127 | export interface JSXOpeningElement extends BaseNode {
|
1128 | type: "JSXOpeningElement";
|
1129 | name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName;
|
1130 | attributes: Array<JSXAttribute | JSXSpreadAttribute>;
|
1131 | selfClosing: boolean;
|
1132 | typeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
|
1133 | }
|
1134 |
|
1135 | export interface JSXSpreadAttribute extends BaseNode {
|
1136 | type: "JSXSpreadAttribute";
|
1137 | argument: Expression;
|
1138 | }
|
1139 |
|
1140 | export interface JSXText extends BaseNode {
|
1141 | type: "JSXText";
|
1142 | value: string;
|
1143 | }
|
1144 |
|
1145 | export interface JSXFragment extends BaseNode {
|
1146 | type: "JSXFragment";
|
1147 | openingFragment: JSXOpeningFragment;
|
1148 | closingFragment: JSXClosingFragment;
|
1149 | children: Array<JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment>;
|
1150 | }
|
1151 |
|
1152 | export interface JSXOpeningFragment extends BaseNode {
|
1153 | type: "JSXOpeningFragment";
|
1154 | }
|
1155 |
|
1156 | export interface JSXClosingFragment extends BaseNode {
|
1157 | type: "JSXClosingFragment";
|
1158 | }
|
1159 |
|
1160 | export interface Noop extends BaseNode {
|
1161 | type: "Noop";
|
1162 | }
|
1163 |
|
1164 | export interface Placeholder extends BaseNode {
|
1165 | type: "Placeholder";
|
1166 | expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern";
|
1167 | name: Identifier;
|
1168 | }
|
1169 |
|
1170 | export interface V8IntrinsicIdentifier extends BaseNode {
|
1171 | type: "V8IntrinsicIdentifier";
|
1172 | name: string;
|
1173 | }
|
1174 |
|
1175 | export interface ArgumentPlaceholder extends BaseNode {
|
1176 | type: "ArgumentPlaceholder";
|
1177 | }
|
1178 |
|
1179 | export interface BindExpression extends BaseNode {
|
1180 | type: "BindExpression";
|
1181 | object: Expression;
|
1182 | callee: Expression;
|
1183 | }
|
1184 |
|
1185 | export interface ImportAttribute extends BaseNode {
|
1186 | type: "ImportAttribute";
|
1187 | key: Identifier | StringLiteral;
|
1188 | value: StringLiteral;
|
1189 | }
|
1190 |
|
1191 | export interface Decorator extends BaseNode {
|
1192 | type: "Decorator";
|
1193 | expression: Expression;
|
1194 | }
|
1195 |
|
1196 | export interface DoExpression extends BaseNode {
|
1197 | type: "DoExpression";
|
1198 | body: BlockStatement;
|
1199 | async: boolean;
|
1200 | }
|
1201 |
|
1202 | export interface ExportDefaultSpecifier extends BaseNode {
|
1203 | type: "ExportDefaultSpecifier";
|
1204 | exported: Identifier;
|
1205 | }
|
1206 |
|
1207 | export interface RecordExpression extends BaseNode {
|
1208 | type: "RecordExpression";
|
1209 | properties: Array<ObjectProperty | SpreadElement>;
|
1210 | }
|
1211 |
|
1212 | export interface TupleExpression extends BaseNode {
|
1213 | type: "TupleExpression";
|
1214 | elements: Array<Expression | SpreadElement>;
|
1215 | }
|
1216 |
|
1217 | export interface DecimalLiteral extends BaseNode {
|
1218 | type: "DecimalLiteral";
|
1219 | value: string;
|
1220 | }
|
1221 |
|
1222 | export interface ModuleExpression extends BaseNode {
|
1223 | type: "ModuleExpression";
|
1224 | body: Program;
|
1225 | }
|
1226 |
|
1227 | export interface TopicReference extends BaseNode {
|
1228 | type: "TopicReference";
|
1229 | }
|
1230 |
|
1231 | export interface PipelineTopicExpression extends BaseNode {
|
1232 | type: "PipelineTopicExpression";
|
1233 | expression: Expression;
|
1234 | }
|
1235 |
|
1236 | export interface PipelineBareFunction extends BaseNode {
|
1237 | type: "PipelineBareFunction";
|
1238 | callee: Expression;
|
1239 | }
|
1240 |
|
1241 | export interface PipelinePrimaryTopicReference extends BaseNode {
|
1242 | type: "PipelinePrimaryTopicReference";
|
1243 | }
|
1244 |
|
1245 | export interface TSParameterProperty extends BaseNode {
|
1246 | type: "TSParameterProperty";
|
1247 | parameter: Identifier | AssignmentPattern;
|
1248 | accessibility: "public" | "private" | "protected" | null;
|
1249 | decorators: Array<Decorator> | null;
|
1250 | override: boolean | null;
|
1251 | readonly: boolean | null;
|
1252 | }
|
1253 |
|
1254 | export interface TSDeclareFunction extends BaseNode {
|
1255 | type: "TSDeclareFunction";
|
1256 | id: Identifier | null;
|
1257 | typeParameters: TSTypeParameterDeclaration | Noop | null;
|
1258 | params: Array<Identifier | Pattern | RestElement>;
|
1259 | returnType: TSTypeAnnotation | Noop | null;
|
1260 | async: boolean;
|
1261 | declare: boolean | null;
|
1262 | generator: boolean;
|
1263 | }
|
1264 |
|
1265 | export interface TSDeclareMethod extends BaseNode {
|
1266 | type: "TSDeclareMethod";
|
1267 | decorators: Array<Decorator> | null;
|
1268 | key: Identifier | StringLiteral | NumericLiteral | Expression;
|
1269 | typeParameters: TSTypeParameterDeclaration | Noop | null;
|
1270 | params: Array<Identifier | Pattern | RestElement | TSParameterProperty>;
|
1271 | returnType: TSTypeAnnotation | Noop | null;
|
1272 | abstract: boolean | null;
|
1273 | access: "public" | "private" | "protected" | null;
|
1274 | accessibility: "public" | "private" | "protected" | null;
|
1275 | async: boolean;
|
1276 | computed: boolean;
|
1277 | generator: boolean;
|
1278 | kind: "get" | "set" | "method" | "constructor";
|
1279 | optional: boolean | null;
|
1280 | override: boolean;
|
1281 | static: boolean;
|
1282 | }
|
1283 |
|
1284 | export interface TSQualifiedName extends BaseNode {
|
1285 | type: "TSQualifiedName";
|
1286 | left: TSEntityName;
|
1287 | right: Identifier;
|
1288 | }
|
1289 |
|
1290 | export interface TSCallSignatureDeclaration extends BaseNode {
|
1291 | type: "TSCallSignatureDeclaration";
|
1292 | typeParameters: TSTypeParameterDeclaration | null;
|
1293 | parameters: Array<Identifier | RestElement>;
|
1294 | typeAnnotation: TSTypeAnnotation | null;
|
1295 | }
|
1296 |
|
1297 | export interface TSConstructSignatureDeclaration extends BaseNode {
|
1298 | type: "TSConstructSignatureDeclaration";
|
1299 | typeParameters: TSTypeParameterDeclaration | null;
|
1300 | parameters: Array<Identifier | RestElement>;
|
1301 | typeAnnotation: TSTypeAnnotation | null;
|
1302 | }
|
1303 |
|
1304 | export interface TSPropertySignature extends BaseNode {
|
1305 | type: "TSPropertySignature";
|
1306 | key: Expression;
|
1307 | typeAnnotation: TSTypeAnnotation | null;
|
1308 | initializer: Expression | null;
|
1309 | computed: boolean | null;
|
1310 | kind: "get" | "set";
|
1311 | optional: boolean | null;
|
1312 | readonly: boolean | null;
|
1313 | }
|
1314 |
|
1315 | export interface TSMethodSignature extends BaseNode {
|
1316 | type: "TSMethodSignature";
|
1317 | key: Expression;
|
1318 | typeParameters: TSTypeParameterDeclaration | null;
|
1319 | parameters: Array<Identifier | RestElement>;
|
1320 | typeAnnotation: TSTypeAnnotation | null;
|
1321 | computed: boolean | null;
|
1322 | kind: "method" | "get" | "set";
|
1323 | optional: boolean | null;
|
1324 | }
|
1325 |
|
1326 | export interface TSIndexSignature extends BaseNode {
|
1327 | type: "TSIndexSignature";
|
1328 | parameters: Array<Identifier>;
|
1329 | typeAnnotation: TSTypeAnnotation | null;
|
1330 | readonly: boolean | null;
|
1331 | static: boolean | null;
|
1332 | }
|
1333 |
|
1334 | export interface TSAnyKeyword extends BaseNode {
|
1335 | type: "TSAnyKeyword";
|
1336 | }
|
1337 |
|
1338 | export interface TSBooleanKeyword extends BaseNode {
|
1339 | type: "TSBooleanKeyword";
|
1340 | }
|
1341 |
|
1342 | export interface TSBigIntKeyword extends BaseNode {
|
1343 | type: "TSBigIntKeyword";
|
1344 | }
|
1345 |
|
1346 | export interface TSIntrinsicKeyword extends BaseNode {
|
1347 | type: "TSIntrinsicKeyword";
|
1348 | }
|
1349 |
|
1350 | export interface TSNeverKeyword extends BaseNode {
|
1351 | type: "TSNeverKeyword";
|
1352 | }
|
1353 |
|
1354 | export interface TSNullKeyword extends BaseNode {
|
1355 | type: "TSNullKeyword";
|
1356 | }
|
1357 |
|
1358 | export interface TSNumberKeyword extends BaseNode {
|
1359 | type: "TSNumberKeyword";
|
1360 | }
|
1361 |
|
1362 | export interface TSObjectKeyword extends BaseNode {
|
1363 | type: "TSObjectKeyword";
|
1364 | }
|
1365 |
|
1366 | export interface TSStringKeyword extends BaseNode {
|
1367 | type: "TSStringKeyword";
|
1368 | }
|
1369 |
|
1370 | export interface TSSymbolKeyword extends BaseNode {
|
1371 | type: "TSSymbolKeyword";
|
1372 | }
|
1373 |
|
1374 | export interface TSUndefinedKeyword extends BaseNode {
|
1375 | type: "TSUndefinedKeyword";
|
1376 | }
|
1377 |
|
1378 | export interface TSUnknownKeyword extends BaseNode {
|
1379 | type: "TSUnknownKeyword";
|
1380 | }
|
1381 |
|
1382 | export interface TSVoidKeyword extends BaseNode {
|
1383 | type: "TSVoidKeyword";
|
1384 | }
|
1385 |
|
1386 | export interface TSThisType extends BaseNode {
|
1387 | type: "TSThisType";
|
1388 | }
|
1389 |
|
1390 | export interface TSFunctionType extends BaseNode {
|
1391 | type: "TSFunctionType";
|
1392 | typeParameters: TSTypeParameterDeclaration | null;
|
1393 | parameters: Array<Identifier | RestElement>;
|
1394 | typeAnnotation: TSTypeAnnotation | null;
|
1395 | }
|
1396 |
|
1397 | export interface TSConstructorType extends BaseNode {
|
1398 | type: "TSConstructorType";
|
1399 | typeParameters: TSTypeParameterDeclaration | null;
|
1400 | parameters: Array<Identifier | RestElement>;
|
1401 | typeAnnotation: TSTypeAnnotation | null;
|
1402 | abstract: boolean | null;
|
1403 | }
|
1404 |
|
1405 | export interface TSTypeReference extends BaseNode {
|
1406 | type: "TSTypeReference";
|
1407 | typeName: TSEntityName;
|
1408 | typeParameters: TSTypeParameterInstantiation | null;
|
1409 | }
|
1410 |
|
1411 | export interface TSTypePredicate extends BaseNode {
|
1412 | type: "TSTypePredicate";
|
1413 | parameterName: Identifier | TSThisType;
|
1414 | typeAnnotation: TSTypeAnnotation | null;
|
1415 | asserts: boolean | null;
|
1416 | }
|
1417 |
|
1418 | export interface TSTypeQuery extends BaseNode {
|
1419 | type: "TSTypeQuery";
|
1420 | exprName: TSEntityName | TSImportType;
|
1421 | }
|
1422 |
|
1423 | export interface TSTypeLiteral extends BaseNode {
|
1424 | type: "TSTypeLiteral";
|
1425 | members: Array<TSTypeElement>;
|
1426 | }
|
1427 |
|
1428 | export interface TSArrayType extends BaseNode {
|
1429 | type: "TSArrayType";
|
1430 | elementType: TSType;
|
1431 | }
|
1432 |
|
1433 | export interface TSTupleType extends BaseNode {
|
1434 | type: "TSTupleType";
|
1435 | elementTypes: Array<TSType | TSNamedTupleMember>;
|
1436 | }
|
1437 |
|
1438 | export interface TSOptionalType extends BaseNode {
|
1439 | type: "TSOptionalType";
|
1440 | typeAnnotation: TSType;
|
1441 | }
|
1442 |
|
1443 | export interface TSRestType extends BaseNode {
|
1444 | type: "TSRestType";
|
1445 | typeAnnotation: TSType;
|
1446 | }
|
1447 |
|
1448 | export interface TSNamedTupleMember extends BaseNode {
|
1449 | type: "TSNamedTupleMember";
|
1450 | label: Identifier;
|
1451 | elementType: TSType;
|
1452 | optional: boolean;
|
1453 | }
|
1454 |
|
1455 | export interface TSUnionType extends BaseNode {
|
1456 | type: "TSUnionType";
|
1457 | types: Array<TSType>;
|
1458 | }
|
1459 |
|
1460 | export interface TSIntersectionType extends BaseNode {
|
1461 | type: "TSIntersectionType";
|
1462 | types: Array<TSType>;
|
1463 | }
|
1464 |
|
1465 | export interface TSConditionalType extends BaseNode {
|
1466 | type: "TSConditionalType";
|
1467 | checkType: TSType;
|
1468 | extendsType: TSType;
|
1469 | trueType: TSType;
|
1470 | falseType: TSType;
|
1471 | }
|
1472 |
|
1473 | export interface TSInferType extends BaseNode {
|
1474 | type: "TSInferType";
|
1475 | typeParameter: TSTypeParameter;
|
1476 | }
|
1477 |
|
1478 | export interface TSParenthesizedType extends BaseNode {
|
1479 | type: "TSParenthesizedType";
|
1480 | typeAnnotation: TSType;
|
1481 | }
|
1482 |
|
1483 | export interface TSTypeOperator extends BaseNode {
|
1484 | type: "TSTypeOperator";
|
1485 | typeAnnotation: TSType;
|
1486 | operator: string;
|
1487 | }
|
1488 |
|
1489 | export interface TSIndexedAccessType extends BaseNode {
|
1490 | type: "TSIndexedAccessType";
|
1491 | objectType: TSType;
|
1492 | indexType: TSType;
|
1493 | }
|
1494 |
|
1495 | export interface TSMappedType extends BaseNode {
|
1496 | type: "TSMappedType";
|
1497 | typeParameter: TSTypeParameter;
|
1498 | typeAnnotation: TSType | null;
|
1499 | nameType: TSType | null;
|
1500 | optional: boolean | null;
|
1501 | readonly: boolean | null;
|
1502 | }
|
1503 |
|
1504 | export interface TSLiteralType extends BaseNode {
|
1505 | type: "TSLiteralType";
|
1506 | literal: NumericLiteral | StringLiteral | BooleanLiteral | BigIntLiteral | UnaryExpression;
|
1507 | }
|
1508 |
|
1509 | export interface TSExpressionWithTypeArguments extends BaseNode {
|
1510 | type: "TSExpressionWithTypeArguments";
|
1511 | expression: TSEntityName;
|
1512 | typeParameters: TSTypeParameterInstantiation | null;
|
1513 | }
|
1514 |
|
1515 | export interface TSInterfaceDeclaration extends BaseNode {
|
1516 | type: "TSInterfaceDeclaration";
|
1517 | id: Identifier;
|
1518 | typeParameters: TSTypeParameterDeclaration | null;
|
1519 | extends: Array<TSExpressionWithTypeArguments> | null;
|
1520 | body: TSInterfaceBody;
|
1521 | declare: boolean | null;
|
1522 | }
|
1523 |
|
1524 | export interface TSInterfaceBody extends BaseNode {
|
1525 | type: "TSInterfaceBody";
|
1526 | body: Array<TSTypeElement>;
|
1527 | }
|
1528 |
|
1529 | export interface TSTypeAliasDeclaration extends BaseNode {
|
1530 | type: "TSTypeAliasDeclaration";
|
1531 | id: Identifier;
|
1532 | typeParameters: TSTypeParameterDeclaration | null;
|
1533 | typeAnnotation: TSType;
|
1534 | declare: boolean | null;
|
1535 | }
|
1536 |
|
1537 | export interface TSAsExpression extends BaseNode {
|
1538 | type: "TSAsExpression";
|
1539 | expression: Expression;
|
1540 | typeAnnotation: TSType;
|
1541 | }
|
1542 |
|
1543 | export interface TSTypeAssertion extends BaseNode {
|
1544 | type: "TSTypeAssertion";
|
1545 | typeAnnotation: TSType;
|
1546 | expression: Expression;
|
1547 | }
|
1548 |
|
1549 | export interface TSEnumDeclaration extends BaseNode {
|
1550 | type: "TSEnumDeclaration";
|
1551 | id: Identifier;
|
1552 | members: Array<TSEnumMember>;
|
1553 | const: boolean | null;
|
1554 | declare: boolean | null;
|
1555 | initializer: Expression | null;
|
1556 | }
|
1557 |
|
1558 | export interface TSEnumMember extends BaseNode {
|
1559 | type: "TSEnumMember";
|
1560 | id: Identifier | StringLiteral;
|
1561 | initializer: Expression | null;
|
1562 | }
|
1563 |
|
1564 | export interface TSModuleDeclaration extends BaseNode {
|
1565 | type: "TSModuleDeclaration";
|
1566 | id: Identifier | StringLiteral;
|
1567 | body: TSModuleBlock | TSModuleDeclaration;
|
1568 | declare: boolean | null;
|
1569 | global: boolean | null;
|
1570 | }
|
1571 |
|
1572 | export interface TSModuleBlock extends BaseNode {
|
1573 | type: "TSModuleBlock";
|
1574 | body: Array<Statement>;
|
1575 | }
|
1576 |
|
1577 | export interface TSImportType extends BaseNode {
|
1578 | type: "TSImportType";
|
1579 | argument: StringLiteral;
|
1580 | qualifier: TSEntityName | null;
|
1581 | typeParameters: TSTypeParameterInstantiation | null;
|
1582 | }
|
1583 |
|
1584 | export interface TSImportEqualsDeclaration extends BaseNode {
|
1585 | type: "TSImportEqualsDeclaration";
|
1586 | id: Identifier;
|
1587 | moduleReference: TSEntityName | TSExternalModuleReference;
|
1588 | importKind: "type" | "value" | null;
|
1589 | isExport: boolean;
|
1590 | }
|
1591 |
|
1592 | export interface TSExternalModuleReference extends BaseNode {
|
1593 | type: "TSExternalModuleReference";
|
1594 | expression: StringLiteral;
|
1595 | }
|
1596 |
|
1597 | export interface TSNonNullExpression extends BaseNode {
|
1598 | type: "TSNonNullExpression";
|
1599 | expression: Expression;
|
1600 | }
|
1601 |
|
1602 | export interface TSExportAssignment extends BaseNode {
|
1603 | type: "TSExportAssignment";
|
1604 | expression: Expression;
|
1605 | }
|
1606 |
|
1607 | export interface TSNamespaceExportDeclaration extends BaseNode {
|
1608 | type: "TSNamespaceExportDeclaration";
|
1609 | id: Identifier;
|
1610 | }
|
1611 |
|
1612 | export interface TSTypeAnnotation extends BaseNode {
|
1613 | type: "TSTypeAnnotation";
|
1614 | typeAnnotation: TSType;
|
1615 | }
|
1616 |
|
1617 | export interface TSTypeParameterInstantiation extends BaseNode {
|
1618 | type: "TSTypeParameterInstantiation";
|
1619 | params: Array<TSType>;
|
1620 | }
|
1621 |
|
1622 | export interface TSTypeParameterDeclaration extends BaseNode {
|
1623 | type: "TSTypeParameterDeclaration";
|
1624 | params: Array<TSTypeParameter>;
|
1625 | }
|
1626 |
|
1627 | export interface TSTypeParameter extends BaseNode {
|
1628 | type: "TSTypeParameter";
|
1629 | constraint: TSType | null;
|
1630 | default: TSType | null;
|
1631 | name: string;
|
1632 | }
|
1633 |
|
1634 |
|
1635 |
|
1636 |
|
1637 | export type NumberLiteral = NumericLiteral;
|
1638 |
|
1639 |
|
1640 |
|
1641 |
|
1642 | export type RegexLiteral = RegExpLiteral;
|
1643 |
|
1644 |
|
1645 |
|
1646 |
|
1647 | export type RestProperty = RestElement;
|
1648 |
|
1649 |
|
1650 |
|
1651 |
|
1652 | export type SpreadProperty = SpreadElement;
|
1653 |
|
1654 | export type Standardized = ArrayExpression | AssignmentExpression | BinaryExpression | InterpreterDirective | Directive | DirectiveLiteral | BlockStatement | BreakStatement | CallExpression | CatchClause | ConditionalExpression | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | File | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | LabeledStatement | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | Program | ObjectExpression | ObjectMethod | ObjectProperty | RestElement | ReturnStatement | SequenceExpression | ParenthesizedExpression | SwitchCase | SwitchStatement | ThisExpression | ThrowStatement | TryStatement | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | AssignmentPattern | ArrayPattern | ArrowFunctionExpression | ClassBody | ClassExpression | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ForOfStatement | ImportDeclaration | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | MetaProperty | ClassMethod | ObjectPattern | SpreadElement | Super | TaggedTemplateExpression | TemplateElement | TemplateLiteral | YieldExpression | AwaitExpression | Import | BigIntLiteral | ExportNamespaceSpecifier | OptionalMemberExpression | OptionalCallExpression | ClassProperty | ClassAccessorProperty | ClassPrivateProperty | ClassPrivateMethod | PrivateName | StaticBlock;
|
1655 | export type Expression = ArrayExpression | AssignmentExpression | BinaryExpression | CallExpression | ConditionalExpression | FunctionExpression | Identifier | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | ObjectExpression | SequenceExpression | ParenthesizedExpression | ThisExpression | UnaryExpression | UpdateExpression | ArrowFunctionExpression | ClassExpression | MetaProperty | Super | TaggedTemplateExpression | TemplateLiteral | YieldExpression | AwaitExpression | Import | BigIntLiteral | OptionalMemberExpression | OptionalCallExpression | TypeCastExpression | JSXElement | JSXFragment | BindExpression | DoExpression | RecordExpression | TupleExpression | DecimalLiteral | ModuleExpression | TopicReference | PipelineTopicExpression | PipelineBareFunction | PipelinePrimaryTopicReference | TSAsExpression | TSTypeAssertion | TSNonNullExpression;
|
1656 | export type Binary = BinaryExpression | LogicalExpression;
|
1657 | export type Scopable = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ClassExpression | ClassDeclaration | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock;
|
1658 | export type BlockParent = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock;
|
1659 | export type Block = BlockStatement | Program | TSModuleBlock;
|
1660 | export type Statement = BlockStatement | BreakStatement | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | ForInStatement | ForStatement | FunctionDeclaration | IfStatement | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | VariableDeclaration | WhileStatement | WithStatement | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ForOfStatement | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | EnumDeclaration | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration | TSImportEqualsDeclaration | TSExportAssignment | TSNamespaceExportDeclaration;
|
1661 | export type Terminatorless = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement | YieldExpression | AwaitExpression;
|
1662 | export type CompletionStatement = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement;
|
1663 | export type Conditional = ConditionalExpression | IfStatement;
|
1664 | export type Loop = DoWhileStatement | ForInStatement | ForStatement | WhileStatement | ForOfStatement;
|
1665 | export type While = DoWhileStatement | WhileStatement;
|
1666 | export type ExpressionWrapper = ExpressionStatement | ParenthesizedExpression | TypeCastExpression;
|
1667 | export type For = ForInStatement | ForStatement | ForOfStatement;
|
1668 | export type ForXStatement = ForInStatement | ForOfStatement;
|
1669 | export type Function = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod;
|
1670 | export type FunctionParent = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod | StaticBlock;
|
1671 | export type Pureish = FunctionDeclaration | FunctionExpression | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | ArrowFunctionExpression | BigIntLiteral | DecimalLiteral;
|
1672 | export type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | EnumDeclaration | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration;
|
1673 | export type PatternLike = Identifier | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern;
|
1674 | export type LVal = Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | TSParameterProperty;
|
1675 | export type TSEntityName = Identifier | TSQualifiedName;
|
1676 | export type Literal = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | TemplateLiteral | BigIntLiteral | DecimalLiteral;
|
1677 | export type Immutable = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | BigIntLiteral | JSXAttribute | JSXClosingElement | JSXElement | JSXExpressionContainer | JSXSpreadChild | JSXOpeningElement | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment | DecimalLiteral;
|
1678 | export type UserWhitespacable = ObjectMethod | ObjectProperty | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty;
|
1679 | export type Method = ObjectMethod | ClassMethod | ClassPrivateMethod;
|
1680 | export type ObjectMember = ObjectMethod | ObjectProperty;
|
1681 | export type Property = ObjectProperty | ClassProperty | ClassAccessorProperty | ClassPrivateProperty;
|
1682 | export type UnaryLike = UnaryExpression | SpreadElement;
|
1683 | export type Pattern = AssignmentPattern | ArrayPattern | ObjectPattern;
|
1684 | export type Class = ClassExpression | ClassDeclaration;
|
1685 | export type ModuleDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
|
1686 | export type ExportDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration;
|
1687 | export type ModuleSpecifier = ExportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | ExportNamespaceSpecifier | ExportDefaultSpecifier;
|
1688 | export type Accessor = ClassAccessorProperty;
|
1689 | export type Private = ClassPrivateProperty | ClassPrivateMethod | PrivateName;
|
1690 | export type Flow = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ClassImplements | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | DeclaredPredicate | ExistsTypeAnnotation | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | InferredPredicate | InterfaceExtends | InterfaceDeclaration | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NullableTypeAnnotation | NumberLiteralTypeAnnotation | NumberTypeAnnotation | ObjectTypeAnnotation | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | QualifiedTypeIdentifier | StringLiteralTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | UnionTypeAnnotation | Variance | VoidTypeAnnotation | EnumDeclaration | EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody | EnumBooleanMember | EnumNumberMember | EnumStringMember | EnumDefaultedMember | IndexedAccessType | OptionalIndexedAccessType;
|
1691 | export type FlowType = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ExistsTypeAnnotation | FunctionTypeAnnotation | GenericTypeAnnotation | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NullableTypeAnnotation | NumberLiteralTypeAnnotation | NumberTypeAnnotation | ObjectTypeAnnotation | StringLiteralTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | UnionTypeAnnotation | VoidTypeAnnotation | IndexedAccessType | OptionalIndexedAccessType;
|
1692 | export type FlowBaseAnnotation = AnyTypeAnnotation | BooleanTypeAnnotation | NullLiteralTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NumberTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | VoidTypeAnnotation;
|
1693 | export type FlowDeclaration = DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias;
|
1694 | export type FlowPredicate = DeclaredPredicate | InferredPredicate;
|
1695 | export type EnumBody = EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody;
|
1696 | export type EnumMember = EnumBooleanMember | EnumNumberMember | EnumStringMember | EnumDefaultedMember;
|
1697 | export type JSX = JSXAttribute | JSXClosingElement | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXSpreadChild | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXSpreadAttribute | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment;
|
1698 | export type Miscellaneous = Noop | Placeholder | V8IntrinsicIdentifier;
|
1699 | export type TypeScript = TSParameterProperty | TSDeclareFunction | TSDeclareMethod | TSQualifiedName | TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature | TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSOptionalType | TSRestType | TSNamedTupleMember | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSLiteralType | TSExpressionWithTypeArguments | TSInterfaceDeclaration | TSInterfaceBody | TSTypeAliasDeclaration | TSAsExpression | TSTypeAssertion | TSEnumDeclaration | TSEnumMember | TSModuleDeclaration | TSModuleBlock | TSImportType | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | TSExportAssignment | TSNamespaceExportDeclaration | TSTypeAnnotation | TSTypeParameterInstantiation | TSTypeParameterDeclaration | TSTypeParameter;
|
1700 | export type TSTypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature;
|
1701 | export type TSType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSOptionalType | TSRestType | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSLiteralType | TSExpressionWithTypeArguments | TSImportType;
|
1702 | export type TSBaseType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSLiteralType;
|
1703 |
|
1704 | export interface Aliases {
|
1705 | Standardized: Standardized;
|
1706 | Expression: Expression;
|
1707 | Binary: Binary;
|
1708 | Scopable: Scopable;
|
1709 | BlockParent: BlockParent;
|
1710 | Block: Block;
|
1711 | Statement: Statement;
|
1712 | Terminatorless: Terminatorless;
|
1713 | CompletionStatement: CompletionStatement;
|
1714 | Conditional: Conditional;
|
1715 | Loop: Loop;
|
1716 | While: While;
|
1717 | ExpressionWrapper: ExpressionWrapper;
|
1718 | For: For;
|
1719 | ForXStatement: ForXStatement;
|
1720 | Function: Function;
|
1721 | FunctionParent: FunctionParent;
|
1722 | Pureish: Pureish;
|
1723 | Declaration: Declaration;
|
1724 | PatternLike: PatternLike;
|
1725 | LVal: LVal;
|
1726 | TSEntityName: TSEntityName;
|
1727 | Literal: Literal;
|
1728 | Immutable: Immutable;
|
1729 | UserWhitespacable: UserWhitespacable;
|
1730 | Method: Method;
|
1731 | ObjectMember: ObjectMember;
|
1732 | Property: Property;
|
1733 | UnaryLike: UnaryLike;
|
1734 | Pattern: Pattern;
|
1735 | Class: Class;
|
1736 | ModuleDeclaration: ModuleDeclaration;
|
1737 | ExportDeclaration: ExportDeclaration;
|
1738 | ModuleSpecifier: ModuleSpecifier;
|
1739 | Accessor: Accessor;
|
1740 | Private: Private;
|
1741 | Flow: Flow;
|
1742 | FlowType: FlowType;
|
1743 | FlowBaseAnnotation: FlowBaseAnnotation;
|
1744 | FlowDeclaration: FlowDeclaration;
|
1745 | FlowPredicate: FlowPredicate;
|
1746 | EnumBody: EnumBody;
|
1747 | EnumMember: EnumMember;
|
1748 | JSX: JSX;
|
1749 | Miscellaneous: Miscellaneous;
|
1750 | TypeScript: TypeScript;
|
1751 | TSTypeElement: TSTypeElement;
|
1752 | TSType: TSType;
|
1753 | TSBaseType: TSBaseType;
|
1754 | }
|
1755 |
|
1756 | export function arrayExpression(elements?: Array<null | Expression | SpreadElement>): ArrayExpression;
|
1757 | export function assignmentExpression(operator: string, left: LVal, right: Expression): AssignmentExpression;
|
1758 | export function binaryExpression(operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=", left: Expression | PrivateName, right: Expression): BinaryExpression;
|
1759 | export function interpreterDirective(value: string): InterpreterDirective;
|
1760 | export function directive(value: DirectiveLiteral): Directive;
|
1761 | export function directiveLiteral(value: string): DirectiveLiteral;
|
1762 | export function blockStatement(body: Array<Statement>, directives?: Array<Directive>): BlockStatement;
|
1763 | export function breakStatement(label?: Identifier | null): BreakStatement;
|
1764 | export function callExpression(callee: Expression | V8IntrinsicIdentifier, _arguments: Array<Expression | SpreadElement | JSXNamespacedName | ArgumentPlaceholder>): CallExpression;
|
1765 | export function catchClause(param: Identifier | ArrayPattern | ObjectPattern | null | undefined, body: BlockStatement): CatchClause;
|
1766 | export function conditionalExpression(test: Expression, consequent: Expression, alternate: Expression): ConditionalExpression;
|
1767 | export function continueStatement(label?: Identifier | null): ContinueStatement;
|
1768 | export function debuggerStatement(): DebuggerStatement;
|
1769 | export function doWhileStatement(test: Expression, body: Statement): DoWhileStatement;
|
1770 | export function emptyStatement(): EmptyStatement;
|
1771 | export function expressionStatement(expression: Expression): ExpressionStatement;
|
1772 | export function file(program: Program, comments?: Array<CommentBlock | CommentLine> | null, tokens?: Array<any> | null): File;
|
1773 | export function forInStatement(left: VariableDeclaration | LVal, right: Expression, body: Statement): ForInStatement;
|
1774 | export function forStatement(init: VariableDeclaration | Expression | null | undefined, test: Expression | null | undefined, update: Expression | null | undefined, body: Statement): ForStatement;
|
1775 | export function functionDeclaration(id: Identifier | null | undefined, params: Array<Identifier | Pattern | RestElement>, body: BlockStatement, generator?: boolean, async?: boolean): FunctionDeclaration;
|
1776 | export function functionExpression(id: Identifier | null | undefined, params: Array<Identifier | Pattern | RestElement>, body: BlockStatement, generator?: boolean, async?: boolean): FunctionExpression;
|
1777 | export function identifier(name: string): Identifier;
|
1778 | export function ifStatement(test: Expression, consequent: Statement, alternate?: Statement | null): IfStatement;
|
1779 | export function labeledStatement(label: Identifier, body: Statement): LabeledStatement;
|
1780 | export function stringLiteral(value: string): StringLiteral;
|
1781 | export function numericLiteral(value: number): NumericLiteral;
|
1782 | export function nullLiteral(): NullLiteral;
|
1783 | export function booleanLiteral(value: boolean): BooleanLiteral;
|
1784 | export function regExpLiteral(pattern: string, flags?: string): RegExpLiteral;
|
1785 | export function logicalExpression(operator: "||" | "&&" | "??", left: Expression, right: Expression): LogicalExpression;
|
1786 | export function memberExpression(object: Expression, property: Expression | Identifier | PrivateName, computed?: boolean, optional?: true | false | null): MemberExpression;
|
1787 | export function newExpression(callee: Expression | V8IntrinsicIdentifier, _arguments: Array<Expression | SpreadElement | JSXNamespacedName | ArgumentPlaceholder>): NewExpression;
|
1788 | export function program(body: Array<Statement>, directives?: Array<Directive>, sourceType?: "script" | "module", interpreter?: InterpreterDirective | null): Program;
|
1789 | export function objectExpression(properties: Array<ObjectMethod | ObjectProperty | SpreadElement>): ObjectExpression;
|
1790 | export function objectMethod(kind: "method" | "get" | "set" | undefined, key: Expression | Identifier | StringLiteral | NumericLiteral, params: Array<Identifier | Pattern | RestElement>, body: BlockStatement, computed?: boolean, generator?: boolean, async?: boolean): ObjectMethod;
|
1791 | export function objectProperty(key: Expression | Identifier | StringLiteral | NumericLiteral, value: Expression | PatternLike, computed?: boolean, shorthand?: boolean, decorators?: Array<Decorator> | null): ObjectProperty;
|
1792 | export function restElement(argument: LVal): RestElement;
|
1793 | export function returnStatement(argument?: Expression | null): ReturnStatement;
|
1794 | export function sequenceExpression(expressions: Array<Expression>): SequenceExpression;
|
1795 | export function parenthesizedExpression(expression: Expression): ParenthesizedExpression;
|
1796 | export function switchCase(test: Expression | null | undefined, consequent: Array<Statement>): SwitchCase;
|
1797 | export function switchStatement(discriminant: Expression, cases: Array<SwitchCase>): SwitchStatement;
|
1798 | export function thisExpression(): ThisExpression;
|
1799 | export function throwStatement(argument: Expression): ThrowStatement;
|
1800 | export function tryStatement(block: BlockStatement, handler?: CatchClause | null, finalizer?: BlockStatement | null): TryStatement;
|
1801 | export function unaryExpression(operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof", argument: Expression, prefix?: boolean): UnaryExpression;
|
1802 | export function updateExpression(operator: "++" | "--", argument: Expression, prefix?: boolean): UpdateExpression;
|
1803 | export function variableDeclaration(kind: "var" | "let" | "const", declarations: Array<VariableDeclarator>): VariableDeclaration;
|
1804 | export function variableDeclarator(id: LVal, init?: Expression | null): VariableDeclarator;
|
1805 | export function whileStatement(test: Expression, body: Statement): WhileStatement;
|
1806 | export function withStatement(object: Expression, body: Statement): WithStatement;
|
1807 | export function assignmentPattern(left: Identifier | ObjectPattern | ArrayPattern | MemberExpression, right: Expression): AssignmentPattern;
|
1808 | export function arrayPattern(elements: Array<null | PatternLike>): ArrayPattern;
|
1809 | export function arrowFunctionExpression(params: Array<Identifier | Pattern | RestElement>, body: BlockStatement | Expression, async?: boolean): ArrowFunctionExpression;
|
1810 | export function classBody(body: Array<ClassMethod | ClassPrivateMethod | ClassProperty | ClassPrivateProperty | ClassAccessorProperty | TSDeclareMethod | TSIndexSignature | StaticBlock>): ClassBody;
|
1811 | export function classExpression(id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array<Decorator> | null): ClassExpression;
|
1812 | export function classDeclaration(id: Identifier, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array<Decorator> | null): ClassDeclaration;
|
1813 | export function exportAllDeclaration(source: StringLiteral): ExportAllDeclaration;
|
1814 | export function exportDefaultDeclaration(declaration: FunctionDeclaration | TSDeclareFunction | ClassDeclaration | Expression): ExportDefaultDeclaration;
|
1815 | export function exportNamedDeclaration(declaration?: Declaration | null, specifiers?: Array<ExportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier>, source?: StringLiteral | null): ExportNamedDeclaration;
|
1816 | export function exportSpecifier(local: Identifier, exported: Identifier | StringLiteral): ExportSpecifier;
|
1817 | export function forOfStatement(left: VariableDeclaration | LVal, right: Expression, body: Statement, _await?: boolean): ForOfStatement;
|
1818 | export function importDeclaration(specifiers: Array<ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier>, source: StringLiteral): ImportDeclaration;
|
1819 | export function importDefaultSpecifier(local: Identifier): ImportDefaultSpecifier;
|
1820 | export function importNamespaceSpecifier(local: Identifier): ImportNamespaceSpecifier;
|
1821 | export function importSpecifier(local: Identifier, imported: Identifier | StringLiteral): ImportSpecifier;
|
1822 | export function metaProperty(meta: Identifier, property: Identifier): MetaProperty;
|
1823 | export function classMethod(kind: "get" | "set" | "method" | "constructor" | undefined, key: Identifier | StringLiteral | NumericLiteral | Expression, params: Array<Identifier | Pattern | RestElement | TSParameterProperty>, body: BlockStatement, computed?: boolean, _static?: boolean, generator?: boolean, async?: boolean): ClassMethod;
|
1824 | export function objectPattern(properties: Array<RestElement | ObjectProperty>): ObjectPattern;
|
1825 | export function spreadElement(argument: Expression): SpreadElement;
|
1826 | declare function _super(): Super;
|
1827 | export { _super as super}
|
1828 | export function taggedTemplateExpression(tag: Expression, quasi: TemplateLiteral): TaggedTemplateExpression;
|
1829 | export function templateElement(value: { raw: string, cooked?: string }, tail?: boolean): TemplateElement;
|
1830 | export function templateLiteral(quasis: Array<TemplateElement>, expressions: Array<Expression | TSType>): TemplateLiteral;
|
1831 | export function yieldExpression(argument?: Expression | null, delegate?: boolean): YieldExpression;
|
1832 | export function awaitExpression(argument: Expression): AwaitExpression;
|
1833 | declare function _import(): Import;
|
1834 | export { _import as import}
|
1835 | export function bigIntLiteral(value: string): BigIntLiteral;
|
1836 | export function exportNamespaceSpecifier(exported: Identifier): ExportNamespaceSpecifier;
|
1837 | export function optionalMemberExpression(object: Expression, property: Expression | Identifier, computed: boolean | undefined, optional: boolean): OptionalMemberExpression;
|
1838 | export function optionalCallExpression(callee: Expression, _arguments: Array<Expression | SpreadElement | JSXNamespacedName | ArgumentPlaceholder>, optional: boolean): OptionalCallExpression;
|
1839 | export function classProperty(key: Identifier | StringLiteral | NumericLiteral | Expression, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Array<Decorator> | null, computed?: boolean, _static?: boolean): ClassProperty;
|
1840 | export function classAccessorProperty(key: Identifier | StringLiteral | NumericLiteral | Expression | PrivateName, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Array<Decorator> | null, computed?: boolean, _static?: boolean): ClassAccessorProperty;
|
1841 | export function classPrivateProperty(key: PrivateName, value: Expression | null | undefined, decorators: Array<Decorator> | null | undefined, _static: any): ClassPrivateProperty;
|
1842 | export function classPrivateMethod(kind: "get" | "set" | "method" | "constructor" | undefined, key: PrivateName, params: Array<Identifier | Pattern | RestElement | TSParameterProperty>, body: BlockStatement, _static?: boolean): ClassPrivateMethod;
|
1843 | export function privateName(id: Identifier): PrivateName;
|
1844 | export function staticBlock(body: Array<Statement>): StaticBlock;
|
1845 | export function anyTypeAnnotation(): AnyTypeAnnotation;
|
1846 | export function arrayTypeAnnotation(elementType: FlowType): ArrayTypeAnnotation;
|
1847 | export function booleanTypeAnnotation(): BooleanTypeAnnotation;
|
1848 | export function booleanLiteralTypeAnnotation(value: boolean): BooleanLiteralTypeAnnotation;
|
1849 | export function nullLiteralTypeAnnotation(): NullLiteralTypeAnnotation;
|
1850 | export function classImplements(id: Identifier, typeParameters?: TypeParameterInstantiation | null): ClassImplements;
|
1851 | export function declareClass(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array<InterfaceExtends> | null | undefined, body: ObjectTypeAnnotation): DeclareClass;
|
1852 | export function declareFunction(id: Identifier): DeclareFunction;
|
1853 | export function declareInterface(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array<InterfaceExtends> | null | undefined, body: ObjectTypeAnnotation): DeclareInterface;
|
1854 | export function declareModule(id: Identifier | StringLiteral, body: BlockStatement, kind?: "CommonJS" | "ES" | null): DeclareModule;
|
1855 | export function declareModuleExports(typeAnnotation: TypeAnnotation): DeclareModuleExports;
|
1856 | export function declareTypeAlias(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, right: FlowType): DeclareTypeAlias;
|
1857 | export function declareOpaqueType(id: Identifier, typeParameters?: TypeParameterDeclaration | null, supertype?: FlowType | null): DeclareOpaqueType;
|
1858 | export function declareVariable(id: Identifier): DeclareVariable;
|
1859 | export function declareExportDeclaration(declaration?: Flow | null, specifiers?: Array<ExportSpecifier | ExportNamespaceSpecifier> | null, source?: StringLiteral | null): DeclareExportDeclaration;
|
1860 | export function declareExportAllDeclaration(source: StringLiteral): DeclareExportAllDeclaration;
|
1861 | export function declaredPredicate(value: Flow): DeclaredPredicate;
|
1862 | export function existsTypeAnnotation(): ExistsTypeAnnotation;
|
1863 | export function functionTypeAnnotation(typeParameters: TypeParameterDeclaration | null | undefined, params: Array<FunctionTypeParam>, rest: FunctionTypeParam | null | undefined, returnType: FlowType): FunctionTypeAnnotation;
|
1864 | export function functionTypeParam(name: Identifier | null | undefined, typeAnnotation: FlowType): FunctionTypeParam;
|
1865 | export function genericTypeAnnotation(id: Identifier | QualifiedTypeIdentifier, typeParameters?: TypeParameterInstantiation | null): GenericTypeAnnotation;
|
1866 | export function inferredPredicate(): InferredPredicate;
|
1867 | export function interfaceExtends(id: Identifier | QualifiedTypeIdentifier, typeParameters?: TypeParameterInstantiation | null): InterfaceExtends;
|
1868 | export function interfaceDeclaration(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array<InterfaceExtends> | null | undefined, body: ObjectTypeAnnotation): InterfaceDeclaration;
|
1869 | export function interfaceTypeAnnotation(_extends: Array<InterfaceExtends> | null | undefined, body: ObjectTypeAnnotation): InterfaceTypeAnnotation;
|
1870 | export function intersectionTypeAnnotation(types: Array<FlowType>): IntersectionTypeAnnotation;
|
1871 | export function mixedTypeAnnotation(): MixedTypeAnnotation;
|
1872 | export function emptyTypeAnnotation(): EmptyTypeAnnotation;
|
1873 | export function nullableTypeAnnotation(typeAnnotation: FlowType): NullableTypeAnnotation;
|
1874 | export function numberLiteralTypeAnnotation(value: number): NumberLiteralTypeAnnotation;
|
1875 | export function numberTypeAnnotation(): NumberTypeAnnotation;
|
1876 | export function objectTypeAnnotation(properties: Array<ObjectTypeProperty | ObjectTypeSpreadProperty>, indexers?: Array<ObjectTypeIndexer> | null, callProperties?: Array<ObjectTypeCallProperty> | null, internalSlots?: Array<ObjectTypeInternalSlot> | null, exact?: boolean): ObjectTypeAnnotation;
|
1877 | export function objectTypeInternalSlot(id: Identifier, value: FlowType, optional: boolean, _static: boolean, method: boolean): ObjectTypeInternalSlot;
|
1878 | export function objectTypeCallProperty(value: FlowType): ObjectTypeCallProperty;
|
1879 | export function objectTypeIndexer(id: Identifier | null | undefined, key: FlowType, value: FlowType, variance?: Variance | null): ObjectTypeIndexer;
|
1880 | export function objectTypeProperty(key: Identifier | StringLiteral, value: FlowType, variance?: Variance | null): ObjectTypeProperty;
|
1881 | export function objectTypeSpreadProperty(argument: FlowType): ObjectTypeSpreadProperty;
|
1882 | export function opaqueType(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, supertype: FlowType | null | undefined, impltype: FlowType): OpaqueType;
|
1883 | export function qualifiedTypeIdentifier(id: Identifier, qualification: Identifier | QualifiedTypeIdentifier): QualifiedTypeIdentifier;
|
1884 | export function stringLiteralTypeAnnotation(value: string): StringLiteralTypeAnnotation;
|
1885 | export function stringTypeAnnotation(): StringTypeAnnotation;
|
1886 | export function symbolTypeAnnotation(): SymbolTypeAnnotation;
|
1887 | export function thisTypeAnnotation(): ThisTypeAnnotation;
|
1888 | export function tupleTypeAnnotation(types: Array<FlowType>): TupleTypeAnnotation;
|
1889 | export function typeofTypeAnnotation(argument: FlowType): TypeofTypeAnnotation;
|
1890 | export function typeAlias(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, right: FlowType): TypeAlias;
|
1891 | export function typeAnnotation(typeAnnotation: FlowType): TypeAnnotation;
|
1892 | export function typeCastExpression(expression: Expression, typeAnnotation: TypeAnnotation): TypeCastExpression;
|
1893 | export function typeParameter(bound?: TypeAnnotation | null, _default?: FlowType | null, variance?: Variance | null): TypeParameter;
|
1894 | export function typeParameterDeclaration(params: Array<TypeParameter>): TypeParameterDeclaration;
|
1895 | export function typeParameterInstantiation(params: Array<FlowType>): TypeParameterInstantiation;
|
1896 | export function unionTypeAnnotation(types: Array<FlowType>): UnionTypeAnnotation;
|
1897 | export function variance(kind: "minus" | "plus"): Variance;
|
1898 | export function voidTypeAnnotation(): VoidTypeAnnotation;
|
1899 | export function enumDeclaration(id: Identifier, body: EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody): EnumDeclaration;
|
1900 | export function enumBooleanBody(members: Array<EnumBooleanMember>): EnumBooleanBody;
|
1901 | export function enumNumberBody(members: Array<EnumNumberMember>): EnumNumberBody;
|
1902 | export function enumStringBody(members: Array<EnumStringMember | EnumDefaultedMember>): EnumStringBody;
|
1903 | export function enumSymbolBody(members: Array<EnumDefaultedMember>): EnumSymbolBody;
|
1904 | export function enumBooleanMember(id: Identifier): EnumBooleanMember;
|
1905 | export function enumNumberMember(id: Identifier, init: NumericLiteral): EnumNumberMember;
|
1906 | export function enumStringMember(id: Identifier, init: StringLiteral): EnumStringMember;
|
1907 | export function enumDefaultedMember(id: Identifier): EnumDefaultedMember;
|
1908 | export function indexedAccessType(objectType: FlowType, indexType: FlowType): IndexedAccessType;
|
1909 | export function optionalIndexedAccessType(objectType: FlowType, indexType: FlowType): OptionalIndexedAccessType;
|
1910 | export function jsxAttribute(name: JSXIdentifier | JSXNamespacedName, value?: JSXElement | JSXFragment | StringLiteral | JSXExpressionContainer | null): JSXAttribute;
|
1911 | export function jsxClosingElement(name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName): JSXClosingElement;
|
1912 | export function jsxElement(openingElement: JSXOpeningElement, closingElement: JSXClosingElement | null | undefined, children: Array<JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment>, selfClosing?: boolean | null): JSXElement;
|
1913 | export function jsxEmptyExpression(): JSXEmptyExpression;
|
1914 | export function jsxExpressionContainer(expression: Expression | JSXEmptyExpression): JSXExpressionContainer;
|
1915 | export function jsxSpreadChild(expression: Expression): JSXSpreadChild;
|
1916 | export function jsxIdentifier(name: string): JSXIdentifier;
|
1917 | export function jsxMemberExpression(object: JSXMemberExpression | JSXIdentifier, property: JSXIdentifier): JSXMemberExpression;
|
1918 | export function jsxNamespacedName(namespace: JSXIdentifier, name: JSXIdentifier): JSXNamespacedName;
|
1919 | export function jsxOpeningElement(name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName, attributes: Array<JSXAttribute | JSXSpreadAttribute>, selfClosing?: boolean): JSXOpeningElement;
|
1920 | export function jsxSpreadAttribute(argument: Expression): JSXSpreadAttribute;
|
1921 | export function jsxText(value: string): JSXText;
|
1922 | export function jsxFragment(openingFragment: JSXOpeningFragment, closingFragment: JSXClosingFragment, children: Array<JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment>): JSXFragment;
|
1923 | export function jsxOpeningFragment(): JSXOpeningFragment;
|
1924 | export function jsxClosingFragment(): JSXClosingFragment;
|
1925 | export function noop(): Noop;
|
1926 | export function placeholder(expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern", name: Identifier): Placeholder;
|
1927 | export function v8IntrinsicIdentifier(name: string): V8IntrinsicIdentifier;
|
1928 | export function argumentPlaceholder(): ArgumentPlaceholder;
|
1929 | export function bindExpression(object: Expression, callee: Expression): BindExpression;
|
1930 | export function importAttribute(key: Identifier | StringLiteral, value: StringLiteral): ImportAttribute;
|
1931 | export function decorator(expression: Expression): Decorator;
|
1932 | export function doExpression(body: BlockStatement, async?: boolean): DoExpression;
|
1933 | export function exportDefaultSpecifier(exported: Identifier): ExportDefaultSpecifier;
|
1934 | export function recordExpression(properties: Array<ObjectProperty | SpreadElement>): RecordExpression;
|
1935 | export function tupleExpression(elements?: Array<Expression | SpreadElement>): TupleExpression;
|
1936 | export function decimalLiteral(value: string): DecimalLiteral;
|
1937 | export function moduleExpression(body: Program): ModuleExpression;
|
1938 | export function topicReference(): TopicReference;
|
1939 | export function pipelineTopicExpression(expression: Expression): PipelineTopicExpression;
|
1940 | export function pipelineBareFunction(callee: Expression): PipelineBareFunction;
|
1941 | export function pipelinePrimaryTopicReference(): PipelinePrimaryTopicReference;
|
1942 | export function tsParameterProperty(parameter: Identifier | AssignmentPattern): TSParameterProperty;
|
1943 | export function tsDeclareFunction(id: Identifier | null | undefined, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array<Identifier | Pattern | RestElement>, returnType?: TSTypeAnnotation | Noop | null): TSDeclareFunction;
|
1944 | export function tsDeclareMethod(decorators: Array<Decorator> | null | undefined, key: Identifier | StringLiteral | NumericLiteral | Expression, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array<Identifier | Pattern | RestElement | TSParameterProperty>, returnType?: TSTypeAnnotation | Noop | null): TSDeclareMethod;
|
1945 | export function tsQualifiedName(left: TSEntityName, right: Identifier): TSQualifiedName;
|
1946 | export function tsCallSignatureDeclaration(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<Identifier | RestElement>, typeAnnotation?: TSTypeAnnotation | null): TSCallSignatureDeclaration;
|
1947 | export function tsConstructSignatureDeclaration(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<Identifier | RestElement>, typeAnnotation?: TSTypeAnnotation | null): TSConstructSignatureDeclaration;
|
1948 | export function tsPropertySignature(key: Expression, typeAnnotation?: TSTypeAnnotation | null, initializer?: Expression | null): TSPropertySignature;
|
1949 | export function tsMethodSignature(key: Expression, typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<Identifier | RestElement>, typeAnnotation?: TSTypeAnnotation | null): TSMethodSignature;
|
1950 | export function tsIndexSignature(parameters: Array<Identifier>, typeAnnotation?: TSTypeAnnotation | null): TSIndexSignature;
|
1951 | export function tsAnyKeyword(): TSAnyKeyword;
|
1952 | export function tsBooleanKeyword(): TSBooleanKeyword;
|
1953 | export function tsBigIntKeyword(): TSBigIntKeyword;
|
1954 | export function tsIntrinsicKeyword(): TSIntrinsicKeyword;
|
1955 | export function tsNeverKeyword(): TSNeverKeyword;
|
1956 | export function tsNullKeyword(): TSNullKeyword;
|
1957 | export function tsNumberKeyword(): TSNumberKeyword;
|
1958 | export function tsObjectKeyword(): TSObjectKeyword;
|
1959 | export function tsStringKeyword(): TSStringKeyword;
|
1960 | export function tsSymbolKeyword(): TSSymbolKeyword;
|
1961 | export function tsUndefinedKeyword(): TSUndefinedKeyword;
|
1962 | export function tsUnknownKeyword(): TSUnknownKeyword;
|
1963 | export function tsVoidKeyword(): TSVoidKeyword;
|
1964 | export function tsThisType(): TSThisType;
|
1965 | export function tsFunctionType(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<Identifier | RestElement>, typeAnnotation?: TSTypeAnnotation | null): TSFunctionType;
|
1966 | export function tsConstructorType(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array<Identifier | RestElement>, typeAnnotation?: TSTypeAnnotation | null): TSConstructorType;
|
1967 | export function tsTypeReference(typeName: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null): TSTypeReference;
|
1968 | export function tsTypePredicate(parameterName: Identifier | TSThisType, typeAnnotation?: TSTypeAnnotation | null, asserts?: boolean | null): TSTypePredicate;
|
1969 | export function tsTypeQuery(exprName: TSEntityName | TSImportType): TSTypeQuery;
|
1970 | export function tsTypeLiteral(members: Array<TSTypeElement>): TSTypeLiteral;
|
1971 | export function tsArrayType(elementType: TSType): TSArrayType;
|
1972 | export function tsTupleType(elementTypes: Array<TSType | TSNamedTupleMember>): TSTupleType;
|
1973 | export function tsOptionalType(typeAnnotation: TSType): TSOptionalType;
|
1974 | export function tsRestType(typeAnnotation: TSType): TSRestType;
|
1975 | export function tsNamedTupleMember(label: Identifier, elementType: TSType, optional?: boolean): TSNamedTupleMember;
|
1976 | export function tsUnionType(types: Array<TSType>): TSUnionType;
|
1977 | export function tsIntersectionType(types: Array<TSType>): TSIntersectionType;
|
1978 | export function tsConditionalType(checkType: TSType, extendsType: TSType, trueType: TSType, falseType: TSType): TSConditionalType;
|
1979 | export function tsInferType(typeParameter: TSTypeParameter): TSInferType;
|
1980 | export function tsParenthesizedType(typeAnnotation: TSType): TSParenthesizedType;
|
1981 | export function tsTypeOperator(typeAnnotation: TSType): TSTypeOperator;
|
1982 | export function tsIndexedAccessType(objectType: TSType, indexType: TSType): TSIndexedAccessType;
|
1983 | export function tsMappedType(typeParameter: TSTypeParameter, typeAnnotation?: TSType | null, nameType?: TSType | null): TSMappedType;
|
1984 | export function tsLiteralType(literal: NumericLiteral | StringLiteral | BooleanLiteral | BigIntLiteral | UnaryExpression): TSLiteralType;
|
1985 | export function tsExpressionWithTypeArguments(expression: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null): TSExpressionWithTypeArguments;
|
1986 | export function tsInterfaceDeclaration(id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, _extends: Array<TSExpressionWithTypeArguments> | null | undefined, body: TSInterfaceBody): TSInterfaceDeclaration;
|
1987 | export function tsInterfaceBody(body: Array<TSTypeElement>): TSInterfaceBody;
|
1988 | export function tsTypeAliasDeclaration(id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, typeAnnotation: TSType): TSTypeAliasDeclaration;
|
1989 | export function tsAsExpression(expression: Expression, typeAnnotation: TSType): TSAsExpression;
|
1990 | export function tsTypeAssertion(typeAnnotation: TSType, expression: Expression): TSTypeAssertion;
|
1991 | export function tsEnumDeclaration(id: Identifier, members: Array<TSEnumMember>): TSEnumDeclaration;
|
1992 | export function tsEnumMember(id: Identifier | StringLiteral, initializer?: Expression | null): TSEnumMember;
|
1993 | export function tsModuleDeclaration(id: Identifier | StringLiteral, body: TSModuleBlock | TSModuleDeclaration): TSModuleDeclaration;
|
1994 | export function tsModuleBlock(body: Array<Statement>): TSModuleBlock;
|
1995 | export function tsImportType(argument: StringLiteral, qualifier?: TSEntityName | null, typeParameters?: TSTypeParameterInstantiation | null): TSImportType;
|
1996 | export function tsImportEqualsDeclaration(id: Identifier, moduleReference: TSEntityName | TSExternalModuleReference): TSImportEqualsDeclaration;
|
1997 | export function tsExternalModuleReference(expression: StringLiteral): TSExternalModuleReference;
|
1998 | export function tsNonNullExpression(expression: Expression): TSNonNullExpression;
|
1999 | export function tsExportAssignment(expression: Expression): TSExportAssignment;
|
2000 | export function tsNamespaceExportDeclaration(id: Identifier): TSNamespaceExportDeclaration;
|
2001 | export function tsTypeAnnotation(typeAnnotation: TSType): TSTypeAnnotation;
|
2002 | export function tsTypeParameterInstantiation(params: Array<TSType>): TSTypeParameterInstantiation;
|
2003 | export function tsTypeParameterDeclaration(params: Array<TSTypeParameter>): TSTypeParameterDeclaration;
|
2004 | export function tsTypeParameter(constraint: TSType | null | undefined, _default: TSType | null | undefined, name: string): TSTypeParameter;
|
2005 | export function isAccessor(node: object | null | undefined, opts?: object | null): node is Accessor;
|
2006 | export function assertAccessor(node: object | null | undefined, opts?: object | null): void;
|
2007 | export function isAnyTypeAnnotation(node: object | null | undefined, opts?: object | null): node is AnyTypeAnnotation;
|
2008 | export function assertAnyTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2009 | export function isArgumentPlaceholder(node: object | null | undefined, opts?: object | null): node is ArgumentPlaceholder;
|
2010 | export function assertArgumentPlaceholder(node: object | null | undefined, opts?: object | null): void;
|
2011 | export function isArrayExpression(node: object | null | undefined, opts?: object | null): node is ArrayExpression;
|
2012 | export function assertArrayExpression(node: object | null | undefined, opts?: object | null): void;
|
2013 | export function isArrayPattern(node: object | null | undefined, opts?: object | null): node is ArrayPattern;
|
2014 | export function assertArrayPattern(node: object | null | undefined, opts?: object | null): void;
|
2015 | export function isArrayTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ArrayTypeAnnotation;
|
2016 | export function assertArrayTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2017 | export function isArrowFunctionExpression(node: object | null | undefined, opts?: object | null): node is ArrowFunctionExpression;
|
2018 | export function assertArrowFunctionExpression(node: object | null | undefined, opts?: object | null): void;
|
2019 | export function isAssignmentExpression(node: object | null | undefined, opts?: object | null): node is AssignmentExpression;
|
2020 | export function assertAssignmentExpression(node: object | null | undefined, opts?: object | null): void;
|
2021 | export function isAssignmentPattern(node: object | null | undefined, opts?: object | null): node is AssignmentPattern;
|
2022 | export function assertAssignmentPattern(node: object | null | undefined, opts?: object | null): void;
|
2023 | export function isAwaitExpression(node: object | null | undefined, opts?: object | null): node is AwaitExpression;
|
2024 | export function assertAwaitExpression(node: object | null | undefined, opts?: object | null): void;
|
2025 | export function isBigIntLiteral(node: object | null | undefined, opts?: object | null): node is BigIntLiteral;
|
2026 | export function assertBigIntLiteral(node: object | null | undefined, opts?: object | null): void;
|
2027 | export function isBinary(node: object | null | undefined, opts?: object | null): node is Binary;
|
2028 | export function assertBinary(node: object | null | undefined, opts?: object | null): void;
|
2029 | export function isBinaryExpression(node: object | null | undefined, opts?: object | null): node is BinaryExpression;
|
2030 | export function assertBinaryExpression(node: object | null | undefined, opts?: object | null): void;
|
2031 | export function isBindExpression(node: object | null | undefined, opts?: object | null): node is BindExpression;
|
2032 | export function assertBindExpression(node: object | null | undefined, opts?: object | null): void;
|
2033 | export function isBlock(node: object | null | undefined, opts?: object | null): node is Block;
|
2034 | export function assertBlock(node: object | null | undefined, opts?: object | null): void;
|
2035 | export function isBlockParent(node: object | null | undefined, opts?: object | null): node is BlockParent;
|
2036 | export function assertBlockParent(node: object | null | undefined, opts?: object | null): void;
|
2037 | export function isBlockStatement(node: object | null | undefined, opts?: object | null): node is BlockStatement;
|
2038 | export function assertBlockStatement(node: object | null | undefined, opts?: object | null): void;
|
2039 | export function isBooleanLiteral(node: object | null | undefined, opts?: object | null): node is BooleanLiteral;
|
2040 | export function assertBooleanLiteral(node: object | null | undefined, opts?: object | null): void;
|
2041 | export function isBooleanLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is BooleanLiteralTypeAnnotation;
|
2042 | export function assertBooleanLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2043 | export function isBooleanTypeAnnotation(node: object | null | undefined, opts?: object | null): node is BooleanTypeAnnotation;
|
2044 | export function assertBooleanTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2045 | export function isBreakStatement(node: object | null | undefined, opts?: object | null): node is BreakStatement;
|
2046 | export function assertBreakStatement(node: object | null | undefined, opts?: object | null): void;
|
2047 | export function isCallExpression(node: object | null | undefined, opts?: object | null): node is CallExpression;
|
2048 | export function assertCallExpression(node: object | null | undefined, opts?: object | null): void;
|
2049 | export function isCatchClause(node: object | null | undefined, opts?: object | null): node is CatchClause;
|
2050 | export function assertCatchClause(node: object | null | undefined, opts?: object | null): void;
|
2051 | export function isClass(node: object | null | undefined, opts?: object | null): node is Class;
|
2052 | export function assertClass(node: object | null | undefined, opts?: object | null): void;
|
2053 | export function isClassAccessorProperty(node: object | null | undefined, opts?: object | null): node is ClassAccessorProperty;
|
2054 | export function assertClassAccessorProperty(node: object | null | undefined, opts?: object | null): void;
|
2055 | export function isClassBody(node: object | null | undefined, opts?: object | null): node is ClassBody;
|
2056 | export function assertClassBody(node: object | null | undefined, opts?: object | null): void;
|
2057 | export function isClassDeclaration(node: object | null | undefined, opts?: object | null): node is ClassDeclaration;
|
2058 | export function assertClassDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2059 | export function isClassExpression(node: object | null | undefined, opts?: object | null): node is ClassExpression;
|
2060 | export function assertClassExpression(node: object | null | undefined, opts?: object | null): void;
|
2061 | export function isClassImplements(node: object | null | undefined, opts?: object | null): node is ClassImplements;
|
2062 | export function assertClassImplements(node: object | null | undefined, opts?: object | null): void;
|
2063 | export function isClassMethod(node: object | null | undefined, opts?: object | null): node is ClassMethod;
|
2064 | export function assertClassMethod(node: object | null | undefined, opts?: object | null): void;
|
2065 | export function isClassPrivateMethod(node: object | null | undefined, opts?: object | null): node is ClassPrivateMethod;
|
2066 | export function assertClassPrivateMethod(node: object | null | undefined, opts?: object | null): void;
|
2067 | export function isClassPrivateProperty(node: object | null | undefined, opts?: object | null): node is ClassPrivateProperty;
|
2068 | export function assertClassPrivateProperty(node: object | null | undefined, opts?: object | null): void;
|
2069 | export function isClassProperty(node: object | null | undefined, opts?: object | null): node is ClassProperty;
|
2070 | export function assertClassProperty(node: object | null | undefined, opts?: object | null): void;
|
2071 | export function isCompletionStatement(node: object | null | undefined, opts?: object | null): node is CompletionStatement;
|
2072 | export function assertCompletionStatement(node: object | null | undefined, opts?: object | null): void;
|
2073 | export function isConditional(node: object | null | undefined, opts?: object | null): node is Conditional;
|
2074 | export function assertConditional(node: object | null | undefined, opts?: object | null): void;
|
2075 | export function isConditionalExpression(node: object | null | undefined, opts?: object | null): node is ConditionalExpression;
|
2076 | export function assertConditionalExpression(node: object | null | undefined, opts?: object | null): void;
|
2077 | export function isContinueStatement(node: object | null | undefined, opts?: object | null): node is ContinueStatement;
|
2078 | export function assertContinueStatement(node: object | null | undefined, opts?: object | null): void;
|
2079 | export function isDebuggerStatement(node: object | null | undefined, opts?: object | null): node is DebuggerStatement;
|
2080 | export function assertDebuggerStatement(node: object | null | undefined, opts?: object | null): void;
|
2081 | export function isDecimalLiteral(node: object | null | undefined, opts?: object | null): node is DecimalLiteral;
|
2082 | export function assertDecimalLiteral(node: object | null | undefined, opts?: object | null): void;
|
2083 | export function isDeclaration(node: object | null | undefined, opts?: object | null): node is Declaration;
|
2084 | export function assertDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2085 | export function isDeclareClass(node: object | null | undefined, opts?: object | null): node is DeclareClass;
|
2086 | export function assertDeclareClass(node: object | null | undefined, opts?: object | null): void;
|
2087 | export function isDeclareExportAllDeclaration(node: object | null | undefined, opts?: object | null): node is DeclareExportAllDeclaration;
|
2088 | export function assertDeclareExportAllDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2089 | export function isDeclareExportDeclaration(node: object | null | undefined, opts?: object | null): node is DeclareExportDeclaration;
|
2090 | export function assertDeclareExportDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2091 | export function isDeclareFunction(node: object | null | undefined, opts?: object | null): node is DeclareFunction;
|
2092 | export function assertDeclareFunction(node: object | null | undefined, opts?: object | null): void;
|
2093 | export function isDeclareInterface(node: object | null | undefined, opts?: object | null): node is DeclareInterface;
|
2094 | export function assertDeclareInterface(node: object | null | undefined, opts?: object | null): void;
|
2095 | export function isDeclareModule(node: object | null | undefined, opts?: object | null): node is DeclareModule;
|
2096 | export function assertDeclareModule(node: object | null | undefined, opts?: object | null): void;
|
2097 | export function isDeclareModuleExports(node: object | null | undefined, opts?: object | null): node is DeclareModuleExports;
|
2098 | export function assertDeclareModuleExports(node: object | null | undefined, opts?: object | null): void;
|
2099 | export function isDeclareOpaqueType(node: object | null | undefined, opts?: object | null): node is DeclareOpaqueType;
|
2100 | export function assertDeclareOpaqueType(node: object | null | undefined, opts?: object | null): void;
|
2101 | export function isDeclareTypeAlias(node: object | null | undefined, opts?: object | null): node is DeclareTypeAlias;
|
2102 | export function assertDeclareTypeAlias(node: object | null | undefined, opts?: object | null): void;
|
2103 | export function isDeclareVariable(node: object | null | undefined, opts?: object | null): node is DeclareVariable;
|
2104 | export function assertDeclareVariable(node: object | null | undefined, opts?: object | null): void;
|
2105 | export function isDeclaredPredicate(node: object | null | undefined, opts?: object | null): node is DeclaredPredicate;
|
2106 | export function assertDeclaredPredicate(node: object | null | undefined, opts?: object | null): void;
|
2107 | export function isDecorator(node: object | null | undefined, opts?: object | null): node is Decorator;
|
2108 | export function assertDecorator(node: object | null | undefined, opts?: object | null): void;
|
2109 | export function isDirective(node: object | null | undefined, opts?: object | null): node is Directive;
|
2110 | export function assertDirective(node: object | null | undefined, opts?: object | null): void;
|
2111 | export function isDirectiveLiteral(node: object | null | undefined, opts?: object | null): node is DirectiveLiteral;
|
2112 | export function assertDirectiveLiteral(node: object | null | undefined, opts?: object | null): void;
|
2113 | export function isDoExpression(node: object | null | undefined, opts?: object | null): node is DoExpression;
|
2114 | export function assertDoExpression(node: object | null | undefined, opts?: object | null): void;
|
2115 | export function isDoWhileStatement(node: object | null | undefined, opts?: object | null): node is DoWhileStatement;
|
2116 | export function assertDoWhileStatement(node: object | null | undefined, opts?: object | null): void;
|
2117 | export function isEmptyStatement(node: object | null | undefined, opts?: object | null): node is EmptyStatement;
|
2118 | export function assertEmptyStatement(node: object | null | undefined, opts?: object | null): void;
|
2119 | export function isEmptyTypeAnnotation(node: object | null | undefined, opts?: object | null): node is EmptyTypeAnnotation;
|
2120 | export function assertEmptyTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2121 | export function isEnumBody(node: object | null | undefined, opts?: object | null): node is EnumBody;
|
2122 | export function assertEnumBody(node: object | null | undefined, opts?: object | null): void;
|
2123 | export function isEnumBooleanBody(node: object | null | undefined, opts?: object | null): node is EnumBooleanBody;
|
2124 | export function assertEnumBooleanBody(node: object | null | undefined, opts?: object | null): void;
|
2125 | export function isEnumBooleanMember(node: object | null | undefined, opts?: object | null): node is EnumBooleanMember;
|
2126 | export function assertEnumBooleanMember(node: object | null | undefined, opts?: object | null): void;
|
2127 | export function isEnumDeclaration(node: object | null | undefined, opts?: object | null): node is EnumDeclaration;
|
2128 | export function assertEnumDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2129 | export function isEnumDefaultedMember(node: object | null | undefined, opts?: object | null): node is EnumDefaultedMember;
|
2130 | export function assertEnumDefaultedMember(node: object | null | undefined, opts?: object | null): void;
|
2131 | export function isEnumMember(node: object | null | undefined, opts?: object | null): node is EnumMember;
|
2132 | export function assertEnumMember(node: object | null | undefined, opts?: object | null): void;
|
2133 | export function isEnumNumberBody(node: object | null | undefined, opts?: object | null): node is EnumNumberBody;
|
2134 | export function assertEnumNumberBody(node: object | null | undefined, opts?: object | null): void;
|
2135 | export function isEnumNumberMember(node: object | null | undefined, opts?: object | null): node is EnumNumberMember;
|
2136 | export function assertEnumNumberMember(node: object | null | undefined, opts?: object | null): void;
|
2137 | export function isEnumStringBody(node: object | null | undefined, opts?: object | null): node is EnumStringBody;
|
2138 | export function assertEnumStringBody(node: object | null | undefined, opts?: object | null): void;
|
2139 | export function isEnumStringMember(node: object | null | undefined, opts?: object | null): node is EnumStringMember;
|
2140 | export function assertEnumStringMember(node: object | null | undefined, opts?: object | null): void;
|
2141 | export function isEnumSymbolBody(node: object | null | undefined, opts?: object | null): node is EnumSymbolBody;
|
2142 | export function assertEnumSymbolBody(node: object | null | undefined, opts?: object | null): void;
|
2143 | export function isExistsTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ExistsTypeAnnotation;
|
2144 | export function assertExistsTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2145 | export function isExportAllDeclaration(node: object | null | undefined, opts?: object | null): node is ExportAllDeclaration;
|
2146 | export function assertExportAllDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2147 | export function isExportDeclaration(node: object | null | undefined, opts?: object | null): node is ExportDeclaration;
|
2148 | export function assertExportDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2149 | export function isExportDefaultDeclaration(node: object | null | undefined, opts?: object | null): node is ExportDefaultDeclaration;
|
2150 | export function assertExportDefaultDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2151 | export function isExportDefaultSpecifier(node: object | null | undefined, opts?: object | null): node is ExportDefaultSpecifier;
|
2152 | export function assertExportDefaultSpecifier(node: object | null | undefined, opts?: object | null): void;
|
2153 | export function isExportNamedDeclaration(node: object | null | undefined, opts?: object | null): node is ExportNamedDeclaration;
|
2154 | export function assertExportNamedDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2155 | export function isExportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): node is ExportNamespaceSpecifier;
|
2156 | export function assertExportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): void;
|
2157 | export function isExportSpecifier(node: object | null | undefined, opts?: object | null): node is ExportSpecifier;
|
2158 | export function assertExportSpecifier(node: object | null | undefined, opts?: object | null): void;
|
2159 | export function isExpression(node: object | null | undefined, opts?: object | null): node is Expression;
|
2160 | export function assertExpression(node: object | null | undefined, opts?: object | null): void;
|
2161 | export function isExpressionStatement(node: object | null | undefined, opts?: object | null): node is ExpressionStatement;
|
2162 | export function assertExpressionStatement(node: object | null | undefined, opts?: object | null): void;
|
2163 | export function isExpressionWrapper(node: object | null | undefined, opts?: object | null): node is ExpressionWrapper;
|
2164 | export function assertExpressionWrapper(node: object | null | undefined, opts?: object | null): void;
|
2165 | export function isFile(node: object | null | undefined, opts?: object | null): node is File;
|
2166 | export function assertFile(node: object | null | undefined, opts?: object | null): void;
|
2167 | export function isFlow(node: object | null | undefined, opts?: object | null): node is Flow;
|
2168 | export function assertFlow(node: object | null | undefined, opts?: object | null): void;
|
2169 | export function isFlowBaseAnnotation(node: object | null | undefined, opts?: object | null): node is FlowBaseAnnotation;
|
2170 | export function assertFlowBaseAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2171 | export function isFlowDeclaration(node: object | null | undefined, opts?: object | null): node is FlowDeclaration;
|
2172 | export function assertFlowDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2173 | export function isFlowPredicate(node: object | null | undefined, opts?: object | null): node is FlowPredicate;
|
2174 | export function assertFlowPredicate(node: object | null | undefined, opts?: object | null): void;
|
2175 | export function isFlowType(node: object | null | undefined, opts?: object | null): node is FlowType;
|
2176 | export function assertFlowType(node: object | null | undefined, opts?: object | null): void;
|
2177 | export function isFor(node: object | null | undefined, opts?: object | null): node is For;
|
2178 | export function assertFor(node: object | null | undefined, opts?: object | null): void;
|
2179 | export function isForInStatement(node: object | null | undefined, opts?: object | null): node is ForInStatement;
|
2180 | export function assertForInStatement(node: object | null | undefined, opts?: object | null): void;
|
2181 | export function isForOfStatement(node: object | null | undefined, opts?: object | null): node is ForOfStatement;
|
2182 | export function assertForOfStatement(node: object | null | undefined, opts?: object | null): void;
|
2183 | export function isForStatement(node: object | null | undefined, opts?: object | null): node is ForStatement;
|
2184 | export function assertForStatement(node: object | null | undefined, opts?: object | null): void;
|
2185 | export function isForXStatement(node: object | null | undefined, opts?: object | null): node is ForXStatement;
|
2186 | export function assertForXStatement(node: object | null | undefined, opts?: object | null): void;
|
2187 | export function isFunction(node: object | null | undefined, opts?: object | null): node is Function;
|
2188 | export function assertFunction(node: object | null | undefined, opts?: object | null): void;
|
2189 | export function isFunctionDeclaration(node: object | null | undefined, opts?: object | null): node is FunctionDeclaration;
|
2190 | export function assertFunctionDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2191 | export function isFunctionExpression(node: object | null | undefined, opts?: object | null): node is FunctionExpression;
|
2192 | export function assertFunctionExpression(node: object | null | undefined, opts?: object | null): void;
|
2193 | export function isFunctionParent(node: object | null | undefined, opts?: object | null): node is FunctionParent;
|
2194 | export function assertFunctionParent(node: object | null | undefined, opts?: object | null): void;
|
2195 | export function isFunctionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is FunctionTypeAnnotation;
|
2196 | export function assertFunctionTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2197 | export function isFunctionTypeParam(node: object | null | undefined, opts?: object | null): node is FunctionTypeParam;
|
2198 | export function assertFunctionTypeParam(node: object | null | undefined, opts?: object | null): void;
|
2199 | export function isGenericTypeAnnotation(node: object | null | undefined, opts?: object | null): node is GenericTypeAnnotation;
|
2200 | export function assertGenericTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2201 | export function isIdentifier(node: object | null | undefined, opts?: object | null): node is Identifier;
|
2202 | export function assertIdentifier(node: object | null | undefined, opts?: object | null): void;
|
2203 | export function isIfStatement(node: object | null | undefined, opts?: object | null): node is IfStatement;
|
2204 | export function assertIfStatement(node: object | null | undefined, opts?: object | null): void;
|
2205 | export function isImmutable(node: object | null | undefined, opts?: object | null): node is Immutable;
|
2206 | export function assertImmutable(node: object | null | undefined, opts?: object | null): void;
|
2207 | export function isImport(node: object | null | undefined, opts?: object | null): node is Import;
|
2208 | export function assertImport(node: object | null | undefined, opts?: object | null): void;
|
2209 | export function isImportAttribute(node: object | null | undefined, opts?: object | null): node is ImportAttribute;
|
2210 | export function assertImportAttribute(node: object | null | undefined, opts?: object | null): void;
|
2211 | export function isImportDeclaration(node: object | null | undefined, opts?: object | null): node is ImportDeclaration;
|
2212 | export function assertImportDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2213 | export function isImportDefaultSpecifier(node: object | null | undefined, opts?: object | null): node is ImportDefaultSpecifier;
|
2214 | export function assertImportDefaultSpecifier(node: object | null | undefined, opts?: object | null): void;
|
2215 | export function isImportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): node is ImportNamespaceSpecifier;
|
2216 | export function assertImportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): void;
|
2217 | export function isImportSpecifier(node: object | null | undefined, opts?: object | null): node is ImportSpecifier;
|
2218 | export function assertImportSpecifier(node: object | null | undefined, opts?: object | null): void;
|
2219 | export function isIndexedAccessType(node: object | null | undefined, opts?: object | null): node is IndexedAccessType;
|
2220 | export function assertIndexedAccessType(node: object | null | undefined, opts?: object | null): void;
|
2221 | export function isInferredPredicate(node: object | null | undefined, opts?: object | null): node is InferredPredicate;
|
2222 | export function assertInferredPredicate(node: object | null | undefined, opts?: object | null): void;
|
2223 | export function isInterfaceDeclaration(node: object | null | undefined, opts?: object | null): node is InterfaceDeclaration;
|
2224 | export function assertInterfaceDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2225 | export function isInterfaceExtends(node: object | null | undefined, opts?: object | null): node is InterfaceExtends;
|
2226 | export function assertInterfaceExtends(node: object | null | undefined, opts?: object | null): void;
|
2227 | export function isInterfaceTypeAnnotation(node: object | null | undefined, opts?: object | null): node is InterfaceTypeAnnotation;
|
2228 | export function assertInterfaceTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2229 | export function isInterpreterDirective(node: object | null | undefined, opts?: object | null): node is InterpreterDirective;
|
2230 | export function assertInterpreterDirective(node: object | null | undefined, opts?: object | null): void;
|
2231 | export function isIntersectionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is IntersectionTypeAnnotation;
|
2232 | export function assertIntersectionTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2233 | export function isJSX(node: object | null | undefined, opts?: object | null): node is JSX;
|
2234 | export function assertJSX(node: object | null | undefined, opts?: object | null): void;
|
2235 | export function isJSXAttribute(node: object | null | undefined, opts?: object | null): node is JSXAttribute;
|
2236 | export function assertJSXAttribute(node: object | null | undefined, opts?: object | null): void;
|
2237 | export function isJSXClosingElement(node: object | null | undefined, opts?: object | null): node is JSXClosingElement;
|
2238 | export function assertJSXClosingElement(node: object | null | undefined, opts?: object | null): void;
|
2239 | export function isJSXClosingFragment(node: object | null | undefined, opts?: object | null): node is JSXClosingFragment;
|
2240 | export function assertJSXClosingFragment(node: object | null | undefined, opts?: object | null): void;
|
2241 | export function isJSXElement(node: object | null | undefined, opts?: object | null): node is JSXElement;
|
2242 | export function assertJSXElement(node: object | null | undefined, opts?: object | null): void;
|
2243 | export function isJSXEmptyExpression(node: object | null | undefined, opts?: object | null): node is JSXEmptyExpression;
|
2244 | export function assertJSXEmptyExpression(node: object | null | undefined, opts?: object | null): void;
|
2245 | export function isJSXExpressionContainer(node: object | null | undefined, opts?: object | null): node is JSXExpressionContainer;
|
2246 | export function assertJSXExpressionContainer(node: object | null | undefined, opts?: object | null): void;
|
2247 | export function isJSXFragment(node: object | null | undefined, opts?: object | null): node is JSXFragment;
|
2248 | export function assertJSXFragment(node: object | null | undefined, opts?: object | null): void;
|
2249 | export function isJSXIdentifier(node: object | null | undefined, opts?: object | null): node is JSXIdentifier;
|
2250 | export function assertJSXIdentifier(node: object | null | undefined, opts?: object | null): void;
|
2251 | export function isJSXMemberExpression(node: object | null | undefined, opts?: object | null): node is JSXMemberExpression;
|
2252 | export function assertJSXMemberExpression(node: object | null | undefined, opts?: object | null): void;
|
2253 | export function isJSXNamespacedName(node: object | null | undefined, opts?: object | null): node is JSXNamespacedName;
|
2254 | export function assertJSXNamespacedName(node: object | null | undefined, opts?: object | null): void;
|
2255 | export function isJSXOpeningElement(node: object | null | undefined, opts?: object | null): node is JSXOpeningElement;
|
2256 | export function assertJSXOpeningElement(node: object | null | undefined, opts?: object | null): void;
|
2257 | export function isJSXOpeningFragment(node: object | null | undefined, opts?: object | null): node is JSXOpeningFragment;
|
2258 | export function assertJSXOpeningFragment(node: object | null | undefined, opts?: object | null): void;
|
2259 | export function isJSXSpreadAttribute(node: object | null | undefined, opts?: object | null): node is JSXSpreadAttribute;
|
2260 | export function assertJSXSpreadAttribute(node: object | null | undefined, opts?: object | null): void;
|
2261 | export function isJSXSpreadChild(node: object | null | undefined, opts?: object | null): node is JSXSpreadChild;
|
2262 | export function assertJSXSpreadChild(node: object | null | undefined, opts?: object | null): void;
|
2263 | export function isJSXText(node: object | null | undefined, opts?: object | null): node is JSXText;
|
2264 | export function assertJSXText(node: object | null | undefined, opts?: object | null): void;
|
2265 | export function isLVal(node: object | null | undefined, opts?: object | null): node is LVal;
|
2266 | export function assertLVal(node: object | null | undefined, opts?: object | null): void;
|
2267 | export function isLabeledStatement(node: object | null | undefined, opts?: object | null): node is LabeledStatement;
|
2268 | export function assertLabeledStatement(node: object | null | undefined, opts?: object | null): void;
|
2269 | export function isLiteral(node: object | null | undefined, opts?: object | null): node is Literal;
|
2270 | export function assertLiteral(node: object | null | undefined, opts?: object | null): void;
|
2271 | export function isLogicalExpression(node: object | null | undefined, opts?: object | null): node is LogicalExpression;
|
2272 | export function assertLogicalExpression(node: object | null | undefined, opts?: object | null): void;
|
2273 | export function isLoop(node: object | null | undefined, opts?: object | null): node is Loop;
|
2274 | export function assertLoop(node: object | null | undefined, opts?: object | null): void;
|
2275 | export function isMemberExpression(node: object | null | undefined, opts?: object | null): node is MemberExpression;
|
2276 | export function assertMemberExpression(node: object | null | undefined, opts?: object | null): void;
|
2277 | export function isMetaProperty(node: object | null | undefined, opts?: object | null): node is MetaProperty;
|
2278 | export function assertMetaProperty(node: object | null | undefined, opts?: object | null): void;
|
2279 | export function isMethod(node: object | null | undefined, opts?: object | null): node is Method;
|
2280 | export function assertMethod(node: object | null | undefined, opts?: object | null): void;
|
2281 | export function isMiscellaneous(node: object | null | undefined, opts?: object | null): node is Miscellaneous;
|
2282 | export function assertMiscellaneous(node: object | null | undefined, opts?: object | null): void;
|
2283 | export function isMixedTypeAnnotation(node: object | null | undefined, opts?: object | null): node is MixedTypeAnnotation;
|
2284 | export function assertMixedTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2285 | export function isModuleDeclaration(node: object | null | undefined, opts?: object | null): node is ModuleDeclaration;
|
2286 | export function assertModuleDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2287 | export function isModuleExpression(node: object | null | undefined, opts?: object | null): node is ModuleExpression;
|
2288 | export function assertModuleExpression(node: object | null | undefined, opts?: object | null): void;
|
2289 | export function isModuleSpecifier(node: object | null | undefined, opts?: object | null): node is ModuleSpecifier;
|
2290 | export function assertModuleSpecifier(node: object | null | undefined, opts?: object | null): void;
|
2291 | export function isNewExpression(node: object | null | undefined, opts?: object | null): node is NewExpression;
|
2292 | export function assertNewExpression(node: object | null | undefined, opts?: object | null): void;
|
2293 | export function isNoop(node: object | null | undefined, opts?: object | null): node is Noop;
|
2294 | export function assertNoop(node: object | null | undefined, opts?: object | null): void;
|
2295 | export function isNullLiteral(node: object | null | undefined, opts?: object | null): node is NullLiteral;
|
2296 | export function assertNullLiteral(node: object | null | undefined, opts?: object | null): void;
|
2297 | export function isNullLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NullLiteralTypeAnnotation;
|
2298 | export function assertNullLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2299 | export function isNullableTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NullableTypeAnnotation;
|
2300 | export function assertNullableTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2301 | /** @deprecated Use `isNumericLiteral` */
|
2302 | export function isNumberLiteral(node: object | null | undefined, opts?: object | null): node is NumericLiteral;
|
2303 | /** @deprecated Use `assertNumericLiteral` */
|
2304 | export function assertNumberLiteral(node: object | null | undefined, opts?: object | null): void;
|
2305 | export function isNumberLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NumberLiteralTypeAnnotation;
|
2306 | export function assertNumberLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2307 | export function isNumberTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NumberTypeAnnotation;
|
2308 | export function assertNumberTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2309 | export function isNumericLiteral(node: object | null | undefined, opts?: object | null): node is NumericLiteral;
|
2310 | export function assertNumericLiteral(node: object | null | undefined, opts?: object | null): void;
|
2311 | export function isObjectExpression(node: object | null | undefined, opts?: object | null): node is ObjectExpression;
|
2312 | export function assertObjectExpression(node: object | null | undefined, opts?: object | null): void;
|
2313 | export function isObjectMember(node: object | null | undefined, opts?: object | null): node is ObjectMember;
|
2314 | export function assertObjectMember(node: object | null | undefined, opts?: object | null): void;
|
2315 | export function isObjectMethod(node: object | null | undefined, opts?: object | null): node is ObjectMethod;
|
2316 | export function assertObjectMethod(node: object | null | undefined, opts?: object | null): void;
|
2317 | export function isObjectPattern(node: object | null | undefined, opts?: object | null): node is ObjectPattern;
|
2318 | export function assertObjectPattern(node: object | null | undefined, opts?: object | null): void;
|
2319 | export function isObjectProperty(node: object | null | undefined, opts?: object | null): node is ObjectProperty;
|
2320 | export function assertObjectProperty(node: object | null | undefined, opts?: object | null): void;
|
2321 | export function isObjectTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ObjectTypeAnnotation;
|
2322 | export function assertObjectTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2323 | export function isObjectTypeCallProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeCallProperty;
|
2324 | export function assertObjectTypeCallProperty(node: object | null | undefined, opts?: object | null): void;
|
2325 | export function isObjectTypeIndexer(node: object | null | undefined, opts?: object | null): node is ObjectTypeIndexer;
|
2326 | export function assertObjectTypeIndexer(node: object | null | undefined, opts?: object | null): void;
|
2327 | export function isObjectTypeInternalSlot(node: object | null | undefined, opts?: object | null): node is ObjectTypeInternalSlot;
|
2328 | export function assertObjectTypeInternalSlot(node: object | null | undefined, opts?: object | null): void;
|
2329 | export function isObjectTypeProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeProperty;
|
2330 | export function assertObjectTypeProperty(node: object | null | undefined, opts?: object | null): void;
|
2331 | export function isObjectTypeSpreadProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeSpreadProperty;
|
2332 | export function assertObjectTypeSpreadProperty(node: object | null | undefined, opts?: object | null): void;
|
2333 | export function isOpaqueType(node: object | null | undefined, opts?: object | null): node is OpaqueType;
|
2334 | export function assertOpaqueType(node: object | null | undefined, opts?: object | null): void;
|
2335 | export function isOptionalCallExpression(node: object | null | undefined, opts?: object | null): node is OptionalCallExpression;
|
2336 | export function assertOptionalCallExpression(node: object | null | undefined, opts?: object | null): void;
|
2337 | export function isOptionalIndexedAccessType(node: object | null | undefined, opts?: object | null): node is OptionalIndexedAccessType;
|
2338 | export function assertOptionalIndexedAccessType(node: object | null | undefined, opts?: object | null): void;
|
2339 | export function isOptionalMemberExpression(node: object | null | undefined, opts?: object | null): node is OptionalMemberExpression;
|
2340 | export function assertOptionalMemberExpression(node: object | null | undefined, opts?: object | null): void;
|
2341 | export function isParenthesizedExpression(node: object | null | undefined, opts?: object | null): node is ParenthesizedExpression;
|
2342 | export function assertParenthesizedExpression(node: object | null | undefined, opts?: object | null): void;
|
2343 | export function isPattern(node: object | null | undefined, opts?: object | null): node is Pattern;
|
2344 | export function assertPattern(node: object | null | undefined, opts?: object | null): void;
|
2345 | export function isPatternLike(node: object | null | undefined, opts?: object | null): node is PatternLike;
|
2346 | export function assertPatternLike(node: object | null | undefined, opts?: object | null): void;
|
2347 | export function isPipelineBareFunction(node: object | null | undefined, opts?: object | null): node is PipelineBareFunction;
|
2348 | export function assertPipelineBareFunction(node: object | null | undefined, opts?: object | null): void;
|
2349 | export function isPipelinePrimaryTopicReference(node: object | null | undefined, opts?: object | null): node is PipelinePrimaryTopicReference;
|
2350 | export function assertPipelinePrimaryTopicReference(node: object | null | undefined, opts?: object | null): void;
|
2351 | export function isPipelineTopicExpression(node: object | null | undefined, opts?: object | null): node is PipelineTopicExpression;
|
2352 | export function assertPipelineTopicExpression(node: object | null | undefined, opts?: object | null): void;
|
2353 | export function isPlaceholder(node: object | null | undefined, opts?: object | null): node is Placeholder;
|
2354 | export function assertPlaceholder(node: object | null | undefined, opts?: object | null): void;
|
2355 | export function isPrivate(node: object | null | undefined, opts?: object | null): node is Private;
|
2356 | export function assertPrivate(node: object | null | undefined, opts?: object | null): void;
|
2357 | export function isPrivateName(node: object | null | undefined, opts?: object | null): node is PrivateName;
|
2358 | export function assertPrivateName(node: object | null | undefined, opts?: object | null): void;
|
2359 | export function isProgram(node: object | null | undefined, opts?: object | null): node is Program;
|
2360 | export function assertProgram(node: object | null | undefined, opts?: object | null): void;
|
2361 | export function isProperty(node: object | null | undefined, opts?: object | null): node is Property;
|
2362 | export function assertProperty(node: object | null | undefined, opts?: object | null): void;
|
2363 | export function isPureish(node: object | null | undefined, opts?: object | null): node is Pureish;
|
2364 | export function assertPureish(node: object | null | undefined, opts?: object | null): void;
|
2365 | export function isQualifiedTypeIdentifier(node: object | null | undefined, opts?: object | null): node is QualifiedTypeIdentifier;
|
2366 | export function assertQualifiedTypeIdentifier(node: object | null | undefined, opts?: object | null): void;
|
2367 | export function isRecordExpression(node: object | null | undefined, opts?: object | null): node is RecordExpression;
|
2368 | export function assertRecordExpression(node: object | null | undefined, opts?: object | null): void;
|
2369 | export function isRegExpLiteral(node: object | null | undefined, opts?: object | null): node is RegExpLiteral;
|
2370 | export function assertRegExpLiteral(node: object | null | undefined, opts?: object | null): void;
|
2371 | /** @deprecated Use `isRegExpLiteral` */
|
2372 | export function isRegexLiteral(node: object | null | undefined, opts?: object | null): node is RegExpLiteral;
|
2373 | /** @deprecated Use `assertRegExpLiteral` */
|
2374 | export function assertRegexLiteral(node: object | null | undefined, opts?: object | null): void;
|
2375 | export function isRestElement(node: object | null | undefined, opts?: object | null): node is RestElement;
|
2376 | export function assertRestElement(node: object | null | undefined, opts?: object | null): void;
|
2377 | /** @deprecated Use `isRestElement` */
|
2378 | export function isRestProperty(node: object | null | undefined, opts?: object | null): node is RestElement;
|
2379 | /** @deprecated Use `assertRestElement` */
|
2380 | export function assertRestProperty(node: object | null | undefined, opts?: object | null): void;
|
2381 | export function isReturnStatement(node: object | null | undefined, opts?: object | null): node is ReturnStatement;
|
2382 | export function assertReturnStatement(node: object | null | undefined, opts?: object | null): void;
|
2383 | export function isScopable(node: object | null | undefined, opts?: object | null): node is Scopable;
|
2384 | export function assertScopable(node: object | null | undefined, opts?: object | null): void;
|
2385 | export function isSequenceExpression(node: object | null | undefined, opts?: object | null): node is SequenceExpression;
|
2386 | export function assertSequenceExpression(node: object | null | undefined, opts?: object | null): void;
|
2387 | export function isSpreadElement(node: object | null | undefined, opts?: object | null): node is SpreadElement;
|
2388 | export function assertSpreadElement(node: object | null | undefined, opts?: object | null): void;
|
2389 | /** @deprecated Use `isSpreadElement` */
|
2390 | export function isSpreadProperty(node: object | null | undefined, opts?: object | null): node is SpreadElement;
|
2391 | /** @deprecated Use `assertSpreadElement` */
|
2392 | export function assertSpreadProperty(node: object | null | undefined, opts?: object | null): void;
|
2393 | export function isStandardized(node: object | null | undefined, opts?: object | null): node is Standardized;
|
2394 | export function assertStandardized(node: object | null | undefined, opts?: object | null): void;
|
2395 | export function isStatement(node: object | null | undefined, opts?: object | null): node is Statement;
|
2396 | export function assertStatement(node: object | null | undefined, opts?: object | null): void;
|
2397 | export function isStaticBlock(node: object | null | undefined, opts?: object | null): node is StaticBlock;
|
2398 | export function assertStaticBlock(node: object | null | undefined, opts?: object | null): void;
|
2399 | export function isStringLiteral(node: object | null | undefined, opts?: object | null): node is StringLiteral;
|
2400 | export function assertStringLiteral(node: object | null | undefined, opts?: object | null): void;
|
2401 | export function isStringLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is StringLiteralTypeAnnotation;
|
2402 | export function assertStringLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2403 | export function isStringTypeAnnotation(node: object | null | undefined, opts?: object | null): node is StringTypeAnnotation;
|
2404 | export function assertStringTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2405 | export function isSuper(node: object | null | undefined, opts?: object | null): node is Super;
|
2406 | export function assertSuper(node: object | null | undefined, opts?: object | null): void;
|
2407 | export function isSwitchCase(node: object | null | undefined, opts?: object | null): node is SwitchCase;
|
2408 | export function assertSwitchCase(node: object | null | undefined, opts?: object | null): void;
|
2409 | export function isSwitchStatement(node: object | null | undefined, opts?: object | null): node is SwitchStatement;
|
2410 | export function assertSwitchStatement(node: object | null | undefined, opts?: object | null): void;
|
2411 | export function isSymbolTypeAnnotation(node: object | null | undefined, opts?: object | null): node is SymbolTypeAnnotation;
|
2412 | export function assertSymbolTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2413 | export function isTSAnyKeyword(node: object | null | undefined, opts?: object | null): node is TSAnyKeyword;
|
2414 | export function assertTSAnyKeyword(node: object | null | undefined, opts?: object | null): void;
|
2415 | export function isTSArrayType(node: object | null | undefined, opts?: object | null): node is TSArrayType;
|
2416 | export function assertTSArrayType(node: object | null | undefined, opts?: object | null): void;
|
2417 | export function isTSAsExpression(node: object | null | undefined, opts?: object | null): node is TSAsExpression;
|
2418 | export function assertTSAsExpression(node: object | null | undefined, opts?: object | null): void;
|
2419 | export function isTSBaseType(node: object | null | undefined, opts?: object | null): node is TSBaseType;
|
2420 | export function assertTSBaseType(node: object | null | undefined, opts?: object | null): void;
|
2421 | export function isTSBigIntKeyword(node: object | null | undefined, opts?: object | null): node is TSBigIntKeyword;
|
2422 | export function assertTSBigIntKeyword(node: object | null | undefined, opts?: object | null): void;
|
2423 | export function isTSBooleanKeyword(node: object | null | undefined, opts?: object | null): node is TSBooleanKeyword;
|
2424 | export function assertTSBooleanKeyword(node: object | null | undefined, opts?: object | null): void;
|
2425 | export function isTSCallSignatureDeclaration(node: object | null | undefined, opts?: object | null): node is TSCallSignatureDeclaration;
|
2426 | export function assertTSCallSignatureDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2427 | export function isTSConditionalType(node: object | null | undefined, opts?: object | null): node is TSConditionalType;
|
2428 | export function assertTSConditionalType(node: object | null | undefined, opts?: object | null): void;
|
2429 | export function isTSConstructSignatureDeclaration(node: object | null | undefined, opts?: object | null): node is TSConstructSignatureDeclaration;
|
2430 | export function assertTSConstructSignatureDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2431 | export function isTSConstructorType(node: object | null | undefined, opts?: object | null): node is TSConstructorType;
|
2432 | export function assertTSConstructorType(node: object | null | undefined, opts?: object | null): void;
|
2433 | export function isTSDeclareFunction(node: object | null | undefined, opts?: object | null): node is TSDeclareFunction;
|
2434 | export function assertTSDeclareFunction(node: object | null | undefined, opts?: object | null): void;
|
2435 | export function isTSDeclareMethod(node: object | null | undefined, opts?: object | null): node is TSDeclareMethod;
|
2436 | export function assertTSDeclareMethod(node: object | null | undefined, opts?: object | null): void;
|
2437 | export function isTSEntityName(node: object | null | undefined, opts?: object | null): node is TSEntityName;
|
2438 | export function assertTSEntityName(node: object | null | undefined, opts?: object | null): void;
|
2439 | export function isTSEnumDeclaration(node: object | null | undefined, opts?: object | null): node is TSEnumDeclaration;
|
2440 | export function assertTSEnumDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2441 | export function isTSEnumMember(node: object | null | undefined, opts?: object | null): node is TSEnumMember;
|
2442 | export function assertTSEnumMember(node: object | null | undefined, opts?: object | null): void;
|
2443 | export function isTSExportAssignment(node: object | null | undefined, opts?: object | null): node is TSExportAssignment;
|
2444 | export function assertTSExportAssignment(node: object | null | undefined, opts?: object | null): void;
|
2445 | export function isTSExpressionWithTypeArguments(node: object | null | undefined, opts?: object | null): node is TSExpressionWithTypeArguments;
|
2446 | export function assertTSExpressionWithTypeArguments(node: object | null | undefined, opts?: object | null): void;
|
2447 | export function isTSExternalModuleReference(node: object | null | undefined, opts?: object | null): node is TSExternalModuleReference;
|
2448 | export function assertTSExternalModuleReference(node: object | null | undefined, opts?: object | null): void;
|
2449 | export function isTSFunctionType(node: object | null | undefined, opts?: object | null): node is TSFunctionType;
|
2450 | export function assertTSFunctionType(node: object | null | undefined, opts?: object | null): void;
|
2451 | export function isTSImportEqualsDeclaration(node: object | null | undefined, opts?: object | null): node is TSImportEqualsDeclaration;
|
2452 | export function assertTSImportEqualsDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2453 | export function isTSImportType(node: object | null | undefined, opts?: object | null): node is TSImportType;
|
2454 | export function assertTSImportType(node: object | null | undefined, opts?: object | null): void;
|
2455 | export function isTSIndexSignature(node: object | null | undefined, opts?: object | null): node is TSIndexSignature;
|
2456 | export function assertTSIndexSignature(node: object | null | undefined, opts?: object | null): void;
|
2457 | export function isTSIndexedAccessType(node: object | null | undefined, opts?: object | null): node is TSIndexedAccessType;
|
2458 | export function assertTSIndexedAccessType(node: object | null | undefined, opts?: object | null): void;
|
2459 | export function isTSInferType(node: object | null | undefined, opts?: object | null): node is TSInferType;
|
2460 | export function assertTSInferType(node: object | null | undefined, opts?: object | null): void;
|
2461 | export function isTSInterfaceBody(node: object | null | undefined, opts?: object | null): node is TSInterfaceBody;
|
2462 | export function assertTSInterfaceBody(node: object | null | undefined, opts?: object | null): void;
|
2463 | export function isTSInterfaceDeclaration(node: object | null | undefined, opts?: object | null): node is TSInterfaceDeclaration;
|
2464 | export function assertTSInterfaceDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2465 | export function isTSIntersectionType(node: object | null | undefined, opts?: object | null): node is TSIntersectionType;
|
2466 | export function assertTSIntersectionType(node: object | null | undefined, opts?: object | null): void;
|
2467 | export function isTSIntrinsicKeyword(node: object | null | undefined, opts?: object | null): node is TSIntrinsicKeyword;
|
2468 | export function assertTSIntrinsicKeyword(node: object | null | undefined, opts?: object | null): void;
|
2469 | export function isTSLiteralType(node: object | null | undefined, opts?: object | null): node is TSLiteralType;
|
2470 | export function assertTSLiteralType(node: object | null | undefined, opts?: object | null): void;
|
2471 | export function isTSMappedType(node: object | null | undefined, opts?: object | null): node is TSMappedType;
|
2472 | export function assertTSMappedType(node: object | null | undefined, opts?: object | null): void;
|
2473 | export function isTSMethodSignature(node: object | null | undefined, opts?: object | null): node is TSMethodSignature;
|
2474 | export function assertTSMethodSignature(node: object | null | undefined, opts?: object | null): void;
|
2475 | export function isTSModuleBlock(node: object | null | undefined, opts?: object | null): node is TSModuleBlock;
|
2476 | export function assertTSModuleBlock(node: object | null | undefined, opts?: object | null): void;
|
2477 | export function isTSModuleDeclaration(node: object | null | undefined, opts?: object | null): node is TSModuleDeclaration;
|
2478 | export function assertTSModuleDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2479 | export function isTSNamedTupleMember(node: object | null | undefined, opts?: object | null): node is TSNamedTupleMember;
|
2480 | export function assertTSNamedTupleMember(node: object | null | undefined, opts?: object | null): void;
|
2481 | export function isTSNamespaceExportDeclaration(node: object | null | undefined, opts?: object | null): node is TSNamespaceExportDeclaration;
|
2482 | export function assertTSNamespaceExportDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2483 | export function isTSNeverKeyword(node: object | null | undefined, opts?: object | null): node is TSNeverKeyword;
|
2484 | export function assertTSNeverKeyword(node: object | null | undefined, opts?: object | null): void;
|
2485 | export function isTSNonNullExpression(node: object | null | undefined, opts?: object | null): node is TSNonNullExpression;
|
2486 | export function assertTSNonNullExpression(node: object | null | undefined, opts?: object | null): void;
|
2487 | export function isTSNullKeyword(node: object | null | undefined, opts?: object | null): node is TSNullKeyword;
|
2488 | export function assertTSNullKeyword(node: object | null | undefined, opts?: object | null): void;
|
2489 | export function isTSNumberKeyword(node: object | null | undefined, opts?: object | null): node is TSNumberKeyword;
|
2490 | export function assertTSNumberKeyword(node: object | null | undefined, opts?: object | null): void;
|
2491 | export function isTSObjectKeyword(node: object | null | undefined, opts?: object | null): node is TSObjectKeyword;
|
2492 | export function assertTSObjectKeyword(node: object | null | undefined, opts?: object | null): void;
|
2493 | export function isTSOptionalType(node: object | null | undefined, opts?: object | null): node is TSOptionalType;
|
2494 | export function assertTSOptionalType(node: object | null | undefined, opts?: object | null): void;
|
2495 | export function isTSParameterProperty(node: object | null | undefined, opts?: object | null): node is TSParameterProperty;
|
2496 | export function assertTSParameterProperty(node: object | null | undefined, opts?: object | null): void;
|
2497 | export function isTSParenthesizedType(node: object | null | undefined, opts?: object | null): node is TSParenthesizedType;
|
2498 | export function assertTSParenthesizedType(node: object | null | undefined, opts?: object | null): void;
|
2499 | export function isTSPropertySignature(node: object | null | undefined, opts?: object | null): node is TSPropertySignature;
|
2500 | export function assertTSPropertySignature(node: object | null | undefined, opts?: object | null): void;
|
2501 | export function isTSQualifiedName(node: object | null | undefined, opts?: object | null): node is TSQualifiedName;
|
2502 | export function assertTSQualifiedName(node: object | null | undefined, opts?: object | null): void;
|
2503 | export function isTSRestType(node: object | null | undefined, opts?: object | null): node is TSRestType;
|
2504 | export function assertTSRestType(node: object | null | undefined, opts?: object | null): void;
|
2505 | export function isTSStringKeyword(node: object | null | undefined, opts?: object | null): node is TSStringKeyword;
|
2506 | export function assertTSStringKeyword(node: object | null | undefined, opts?: object | null): void;
|
2507 | export function isTSSymbolKeyword(node: object | null | undefined, opts?: object | null): node is TSSymbolKeyword;
|
2508 | export function assertTSSymbolKeyword(node: object | null | undefined, opts?: object | null): void;
|
2509 | export function isTSThisType(node: object | null | undefined, opts?: object | null): node is TSThisType;
|
2510 | export function assertTSThisType(node: object | null | undefined, opts?: object | null): void;
|
2511 | export function isTSTupleType(node: object | null | undefined, opts?: object | null): node is TSTupleType;
|
2512 | export function assertTSTupleType(node: object | null | undefined, opts?: object | null): void;
|
2513 | export function isTSType(node: object | null | undefined, opts?: object | null): node is TSType;
|
2514 | export function assertTSType(node: object | null | undefined, opts?: object | null): void;
|
2515 | export function isTSTypeAliasDeclaration(node: object | null | undefined, opts?: object | null): node is TSTypeAliasDeclaration;
|
2516 | export function assertTSTypeAliasDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2517 | export function isTSTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TSTypeAnnotation;
|
2518 | export function assertTSTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2519 | export function isTSTypeAssertion(node: object | null | undefined, opts?: object | null): node is TSTypeAssertion;
|
2520 | export function assertTSTypeAssertion(node: object | null | undefined, opts?: object | null): void;
|
2521 | export function isTSTypeElement(node: object | null | undefined, opts?: object | null): node is TSTypeElement;
|
2522 | export function assertTSTypeElement(node: object | null | undefined, opts?: object | null): void;
|
2523 | export function isTSTypeLiteral(node: object | null | undefined, opts?: object | null): node is TSTypeLiteral;
|
2524 | export function assertTSTypeLiteral(node: object | null | undefined, opts?: object | null): void;
|
2525 | export function isTSTypeOperator(node: object | null | undefined, opts?: object | null): node is TSTypeOperator;
|
2526 | export function assertTSTypeOperator(node: object | null | undefined, opts?: object | null): void;
|
2527 | export function isTSTypeParameter(node: object | null | undefined, opts?: object | null): node is TSTypeParameter;
|
2528 | export function assertTSTypeParameter(node: object | null | undefined, opts?: object | null): void;
|
2529 | export function isTSTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): node is TSTypeParameterDeclaration;
|
2530 | export function assertTSTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2531 | export function isTSTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): node is TSTypeParameterInstantiation;
|
2532 | export function assertTSTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): void;
|
2533 | export function isTSTypePredicate(node: object | null | undefined, opts?: object | null): node is TSTypePredicate;
|
2534 | export function assertTSTypePredicate(node: object | null | undefined, opts?: object | null): void;
|
2535 | export function isTSTypeQuery(node: object | null | undefined, opts?: object | null): node is TSTypeQuery;
|
2536 | export function assertTSTypeQuery(node: object | null | undefined, opts?: object | null): void;
|
2537 | export function isTSTypeReference(node: object | null | undefined, opts?: object | null): node is TSTypeReference;
|
2538 | export function assertTSTypeReference(node: object | null | undefined, opts?: object | null): void;
|
2539 | export function isTSUndefinedKeyword(node: object | null | undefined, opts?: object | null): node is TSUndefinedKeyword;
|
2540 | export function assertTSUndefinedKeyword(node: object | null | undefined, opts?: object | null): void;
|
2541 | export function isTSUnionType(node: object | null | undefined, opts?: object | null): node is TSUnionType;
|
2542 | export function assertTSUnionType(node: object | null | undefined, opts?: object | null): void;
|
2543 | export function isTSUnknownKeyword(node: object | null | undefined, opts?: object | null): node is TSUnknownKeyword;
|
2544 | export function assertTSUnknownKeyword(node: object | null | undefined, opts?: object | null): void;
|
2545 | export function isTSVoidKeyword(node: object | null | undefined, opts?: object | null): node is TSVoidKeyword;
|
2546 | export function assertTSVoidKeyword(node: object | null | undefined, opts?: object | null): void;
|
2547 | export function isTaggedTemplateExpression(node: object | null | undefined, opts?: object | null): node is TaggedTemplateExpression;
|
2548 | export function assertTaggedTemplateExpression(node: object | null | undefined, opts?: object | null): void;
|
2549 | export function isTemplateElement(node: object | null | undefined, opts?: object | null): node is TemplateElement;
|
2550 | export function assertTemplateElement(node: object | null | undefined, opts?: object | null): void;
|
2551 | export function isTemplateLiteral(node: object | null | undefined, opts?: object | null): node is TemplateLiteral;
|
2552 | export function assertTemplateLiteral(node: object | null | undefined, opts?: object | null): void;
|
2553 | export function isTerminatorless(node: object | null | undefined, opts?: object | null): node is Terminatorless;
|
2554 | export function assertTerminatorless(node: object | null | undefined, opts?: object | null): void;
|
2555 | export function isThisExpression(node: object | null | undefined, opts?: object | null): node is ThisExpression;
|
2556 | export function assertThisExpression(node: object | null | undefined, opts?: object | null): void;
|
2557 | export function isThisTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ThisTypeAnnotation;
|
2558 | export function assertThisTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2559 | export function isThrowStatement(node: object | null | undefined, opts?: object | null): node is ThrowStatement;
|
2560 | export function assertThrowStatement(node: object | null | undefined, opts?: object | null): void;
|
2561 | export function isTopicReference(node: object | null | undefined, opts?: object | null): node is TopicReference;
|
2562 | export function assertTopicReference(node: object | null | undefined, opts?: object | null): void;
|
2563 | export function isTryStatement(node: object | null | undefined, opts?: object | null): node is TryStatement;
|
2564 | export function assertTryStatement(node: object | null | undefined, opts?: object | null): void;
|
2565 | export function isTupleExpression(node: object | null | undefined, opts?: object | null): node is TupleExpression;
|
2566 | export function assertTupleExpression(node: object | null | undefined, opts?: object | null): void;
|
2567 | export function isTupleTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TupleTypeAnnotation;
|
2568 | export function assertTupleTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2569 | export function isTypeAlias(node: object | null | undefined, opts?: object | null): node is TypeAlias;
|
2570 | export function assertTypeAlias(node: object | null | undefined, opts?: object | null): void;
|
2571 | export function isTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TypeAnnotation;
|
2572 | export function assertTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2573 | export function isTypeCastExpression(node: object | null | undefined, opts?: object | null): node is TypeCastExpression;
|
2574 | export function assertTypeCastExpression(node: object | null | undefined, opts?: object | null): void;
|
2575 | export function isTypeParameter(node: object | null | undefined, opts?: object | null): node is TypeParameter;
|
2576 | export function assertTypeParameter(node: object | null | undefined, opts?: object | null): void;
|
2577 | export function isTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): node is TypeParameterDeclaration;
|
2578 | export function assertTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2579 | export function isTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): node is TypeParameterInstantiation;
|
2580 | export function assertTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): void;
|
2581 | export function isTypeScript(node: object | null | undefined, opts?: object | null): node is TypeScript;
|
2582 | export function assertTypeScript(node: object | null | undefined, opts?: object | null): void;
|
2583 | export function isTypeofTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TypeofTypeAnnotation;
|
2584 | export function assertTypeofTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2585 | export function isUnaryExpression(node: object | null | undefined, opts?: object | null): node is UnaryExpression;
|
2586 | export function assertUnaryExpression(node: object | null | undefined, opts?: object | null): void;
|
2587 | export function isUnaryLike(node: object | null | undefined, opts?: object | null): node is UnaryLike;
|
2588 | export function assertUnaryLike(node: object | null | undefined, opts?: object | null): void;
|
2589 | export function isUnionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is UnionTypeAnnotation;
|
2590 | export function assertUnionTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2591 | export function isUpdateExpression(node: object | null | undefined, opts?: object | null): node is UpdateExpression;
|
2592 | export function assertUpdateExpression(node: object | null | undefined, opts?: object | null): void;
|
2593 | export function isUserWhitespacable(node: object | null | undefined, opts?: object | null): node is UserWhitespacable;
|
2594 | export function assertUserWhitespacable(node: object | null | undefined, opts?: object | null): void;
|
2595 | export function isV8IntrinsicIdentifier(node: object | null | undefined, opts?: object | null): node is V8IntrinsicIdentifier;
|
2596 | export function assertV8IntrinsicIdentifier(node: object | null | undefined, opts?: object | null): void;
|
2597 | export function isVariableDeclaration(node: object | null | undefined, opts?: object | null): node is VariableDeclaration;
|
2598 | export function assertVariableDeclaration(node: object | null | undefined, opts?: object | null): void;
|
2599 | export function isVariableDeclarator(node: object | null | undefined, opts?: object | null): node is VariableDeclarator;
|
2600 | export function assertVariableDeclarator(node: object | null | undefined, opts?: object | null): void;
|
2601 | export function isVariance(node: object | null | undefined, opts?: object | null): node is Variance;
|
2602 | export function assertVariance(node: object | null | undefined, opts?: object | null): void;
|
2603 | export function isVoidTypeAnnotation(node: object | null | undefined, opts?: object | null): node is VoidTypeAnnotation;
|
2604 | export function assertVoidTypeAnnotation(node: object | null | undefined, opts?: object | null): void;
|
2605 | export function isWhile(node: object | null | undefined, opts?: object | null): node is While;
|
2606 | export function assertWhile(node: object | null | undefined, opts?: object | null): void;
|
2607 | export function isWhileStatement(node: object | null | undefined, opts?: object | null): node is WhileStatement;
|
2608 | export function assertWhileStatement(node: object | null | undefined, opts?: object | null): void;
|
2609 | export function isWithStatement(node: object | null | undefined, opts?: object | null): node is WithStatement;
|
2610 | export function assertWithStatement(node: object | null | undefined, opts?: object | null): void;
|
2611 | export function isYieldExpression(node: object | null | undefined, opts?: object | null): node is YieldExpression;
|
2612 | export function assertYieldExpression(node: object | null | undefined, opts?: object | null): void;
|
2613 | export function assertNode(obj: any): void
|
2614 | export function createTypeAnnotationBasedOnTypeof(type: 'string' | 'number' | 'undefined' | 'boolean' | 'function' | 'object' | 'symbol'): StringTypeAnnotation | VoidTypeAnnotation | NumberTypeAnnotation | BooleanTypeAnnotation | GenericTypeAnnotation
|
2615 | export function createUnionTypeAnnotation<T extends FlowType>(types: [T]): T
|
2616 | export function createFlowUnionType<T extends FlowType>(types: [T]): T
|
2617 | export function createUnionTypeAnnotation(types: ReadonlyArray<FlowType>): UnionTypeAnnotation
|
2618 | export function createFlowUnionType(types: ReadonlyArray<FlowType>): UnionTypeAnnotation
|
2619 | export function buildChildren(node: { children: ReadonlyArray<JSXText | JSXExpressionContainer | JSXSpreadChild | JSXElement | JSXFragment | JSXEmptyExpression> }): JSXElement['children']
|
2620 | export function clone<T extends Node>(n: T): T;
|
2621 | export function cloneDeep<T extends Node>(n: T): T;
|
2622 | export function cloneDeepWithoutLoc<T extends Node>(n: T): T;
|
2623 | export function cloneNode<T extends Node>(n: T, deep?: boolean, withoutLoc?: boolean): T;
|
2624 | export function cloneWithoutLoc<T extends Node>(n: T): T;
|
2625 | export type CommentTypeShorthand = 'leading' | 'inner' | 'trailing'
|
2626 | export function addComment<T extends Node>(node: T, type: CommentTypeShorthand, content: string, line?: boolean): T
|
2627 | export function addComments<T extends Node>(node: T, type: CommentTypeShorthand, comments: ReadonlyArray<Comment>): T
|
2628 | export function inheritInnerComments(node: Node, parent: Node): void
|
2629 | export function inheritLeadingComments(node: Node, parent: Node): void
|
2630 | export function inheritsComments<T extends Node>(node: T, parent: Node): void
|
2631 | export function inheritTrailingComments(node: Node, parent: Node): void
|
2632 | export function removeComments<T extends Node>(node: T): T
|
2633 | export function ensureBlock(node: Extract<Node, { body: BlockStatement | Statement | Expression }>): BlockStatement
|
2634 | export function ensureBlock<K extends keyof Extract<Node, { body: BlockStatement | Statement | Expression }> = 'body'>(node: Extract<Node, Record<K, BlockStatement | Statement | Expression>>, key: K): BlockStatement
|
2635 | export function toBindingIdentifierName(name: { toString(): string } | null | undefined): string
|
2636 | export function toBlock(node: Statement | Expression, parent?: Function | null): BlockStatement
|
2637 | export function toComputedKey<T extends Extract<Node, { computed: boolean | null }>>(node: T, key?: Expression | Identifier): Expression
|
2638 | export function toExpression(node: Function): FunctionExpression
|
2639 | export function toExpression(node: Class): ClassExpression
|
2640 | export function toExpression(node: ExpressionStatement | Expression | Class | Function): Expression
|
2641 | export function toIdentifier(name: { toString(): string } | null | undefined): string
|
2642 | export function toKeyAlias(node: Method | Property, key?: Node): string
|
2643 | export function toSequenceExpression(nodes: ReadonlyArray<Node>, scope: { push(value: { id: LVal; kind: 'var'; init?: Expression}): void; buildUndefinedNode(): Node }): SequenceExpression | undefined
|
2644 | export function toStatement(node: AssignmentExpression, ignore?: boolean): ExpressionStatement
|
2645 | export function toStatement(node: Statement | AssignmentExpression, ignore?: boolean): Statement
|
2646 | export function toStatement(node: Class, ignore: true): ClassDeclaration | undefined
|
2647 | export function toStatement(node: Class, ignore?: boolean): ClassDeclaration
|
2648 | export function toStatement(node: Function, ignore: true): FunctionDeclaration | undefined
|
2649 | export function toStatement(node: Function, ignore?: boolean): FunctionDeclaration
|
2650 | export function toStatement(node: Statement | Class | Function | AssignmentExpression, ignore: true): Statement | undefined
|
2651 | export function toStatement(node: Statement | Class | Function | AssignmentExpression, ignore?: boolean): Statement
|
2652 | export function valueToNode(value: undefined): Identifier
|
2653 | export function valueToNode(value: boolean): BooleanLiteral
|
2654 | export function valueToNode(value: null): NullLiteral
|
2655 | export function valueToNode(value: string): StringLiteral
|
2656 | export function valueToNode(value: number): NumericLiteral | BinaryExpression | UnaryExpression
|
2657 | export function valueToNode(value: RegExp): RegExpLiteral
|
2658 | export function valueToNode(value: ReadonlyArray<undefined | boolean | null | string | number | RegExp | object>): ArrayExpression
|
2659 | export function valueToNode(value: object): ObjectExpression
|
2660 | export function valueToNode(value: undefined | boolean | null | string | number | RegExp | object): Expression
|
2661 | export function removeTypeDuplicates(types: ReadonlyArray<FlowType | false | null | undefined>): FlowType[]
|
2662 | export function appendToMemberExpression<T extends Pick<MemberExpression, 'object' | 'property'>>(member: T, append: MemberExpression['property'], computed?: boolean): T
|
2663 | export function inherits<T extends Node | null | undefined>(child: T, parent: Node | null | undefined): T
|
2664 | export function prependToMemberExpression<T extends Pick<MemberExpression, 'object' | 'property'>>(member: T, prepend: MemberExpression['object']): T
|
2665 | export function removeProperties(
|
2666 | n: Node,
|
2667 | opts?: { preserveComments: boolean } | null
|
2668 | ): void;
|
2669 | export function removePropertiesDeep<T extends Node>(
|
2670 | n: T,
|
2671 | opts?: { preserveComments: boolean } | null
|
2672 | ): T;
|
2673 | export function getBindingIdentifiers(node: Node, duplicates: true, outerOnly?: boolean): Record<string, Array<Identifier>>
|
2674 | export function getBindingIdentifiers(node: Node, duplicates?: false, outerOnly?: boolean): Record<string, Identifier>
|
2675 | export function getBindingIdentifiers(node: Node, duplicates: boolean, outerOnly?: boolean): Record<string, Identifier | Array<Identifier>>
|
2676 | export function getOuterBindingIdentifiers(node: Node, duplicates: true): Record<string, Array<Identifier>>
|
2677 | export function getOuterBindingIdentifiers(node: Node, duplicates?: false): Record<string, Identifier>
|
2678 | export function getOuterBindingIdentifiers(node: Node, duplicates: boolean): Record<string, Identifier | Array<Identifier>>
|
2679 | export type TraversalAncestors = ReadonlyArray<{
|
2680 | node: Node,
|
2681 | key: string,
|
2682 | index?: number,
|
2683 | }>;
|
2684 | export type TraversalHandler<T> = (
|
2685 | this: undefined, node: Node, parent: TraversalAncestors, type: T
|
2686 | ) => void;
|
2687 | export type TraversalHandlers<T> = {
|
2688 | enter?: TraversalHandler<T>,
|
2689 | exit?: TraversalHandler<T>,
|
2690 | };
|
2691 | export function traverse<T>(n: Node, h: TraversalHandler<T> | TraversalHandlers<T>, state?: T): void;
|
2692 | export function traverseFast<T>(n: Node, h: TraversalHandler<T>, state?: T): void;
|
2693 | export function shallowEqual<T extends object>(actual: object, expected: T): actual is T
|
2694 | export function buildMatchMemberExpression(match: string, allowPartial?: boolean): (node: Node | null | undefined) => node is MemberExpression
|
2695 | export function is<T extends Node['type']>(type: T, n: Node | null | undefined, required?: undefined): n is Extract<Node, { type: T }>
|
2696 | export function is<T extends Node['type'], P extends Extract<Node, { type: T }>>(type: T, n: Node | null | undefined, required: Partial<P>): n is P
|
2697 | export function is<P extends Node>(type: string, n: Node | null | undefined, required: Partial<P>): n is P
|
2698 | export function is(type: string, n: Node | null | undefined, required?: Partial<Node>): n is Node
|
2699 | export function isBinding(node: Node, parent: Node, grandparent?: Node): boolean
|
2700 | export function isBlockScoped(node: Node): node is FunctionDeclaration | ClassDeclaration | VariableDeclaration
|
2701 | export function isImmutable(node: Node): node is Immutable
|
2702 | export function isLet(node: Node): node is VariableDeclaration
|
2703 | export function isNode(node: object | null | undefined): node is Node
|
2704 | export function isNodesEquivalent<T extends Partial<Node>>(a: T, b: any): b is T
|
2705 | export function isNodesEquivalent(a: any, b: any): boolean
|
2706 | export function isPlaceholderType(placeholderType: Node['type'], targetType: Node['type']): boolean
|
2707 | export function isReferenced(node: Node, parent: Node, grandparent?: Node): boolean
|
2708 | export function isScope(node: Node, parent: Node): node is Scopable
|
2709 | export function isSpecifierDefault(specifier: ModuleSpecifier): boolean
|
2710 | export function isType<T extends Node['type']>(nodetype: string, targetType: T): nodetype is T
|
2711 | export function isType(nodetype: string | null | undefined, targetType: string): boolean
|
2712 | export function isValidES3Identifier(name: string): boolean
|
2713 | export function isValidIdentifier(name: string): boolean
|
2714 | export function isVar(node: Node): node is VariableDeclaration
|
2715 | export function matchesPattern(node: Node | null | undefined, match: string | ReadonlyArray<string>, allowPartial?: boolean): node is MemberExpression
|
2716 | export function validate<T extends Node, K extends keyof T>(n: Node | null | undefined, key: K, value: T[K]): void;
|
2717 | export function validate(n: Node, key: string, value: any): void;
|
2718 |
|
\ | No newline at end of file |