Debian Codegraph @

packages/babel-types/src/asserts/generated/index.ts

raw
1 /*
2 * This file is auto-generated! Do not modify it directly.
3 * To re-generate run 'make build'
4 */
5 import is from "../../validators/is";
6 import type * as t from "../..";
7
8 function assert(type: string, node: any, opts?: any): void {
9 if (!is(type, node, opts)) {
10 throw new Error(
11 `Expected type "${type}" with option ${JSON.stringify(opts)}, ` +
12 `but instead got "${node.type}".`,
13 );
14 }
15 }
16
17 export function assertArrayExpression(
18 node: object | null | undefined,
19 opts?: object | null,
20 ): asserts node is t.ArrayExpression {
21 assert("ArrayExpression", node, opts);
22 }
23 export function assertAssignmentExpression(
24 node: object | null | undefined,
25 opts?: object | null,
26 ): asserts node is t.AssignmentExpression {
27 assert("AssignmentExpression", node, opts);
28 }
29 export function assertBinaryExpression(
30 node: object | null | undefined,
31 opts?: object | null,
32 ): asserts node is t.BinaryExpression {
33 assert("BinaryExpression", node, opts);
34 }
35 export function assertInterpreterDirective(
36 node: object | null | undefined,
37 opts?: object | null,
38 ): asserts node is t.InterpreterDirective {
39 assert("InterpreterDirective", node, opts);
40 }
41 export function assertDirective(
42 node: object | null | undefined,
43 opts?: object | null,
44 ): asserts node is t.Directive {
45 assert("Directive", node, opts);
46 }
47 export function assertDirectiveLiteral(
48 node: object | null | undefined,
49 opts?: object | null,
50 ): asserts node is t.DirectiveLiteral {
51 assert("DirectiveLiteral", node, opts);
52 }
53 export function assertBlockStatement(
54 node: object | null | undefined,
55 opts?: object | null,
56 ): asserts node is t.BlockStatement {
57 assert("BlockStatement", node, opts);
58 }
59 export function assertBreakStatement(
60 node: object | null | undefined,
61 opts?: object | null,
62 ): asserts node is t.BreakStatement {
63 assert("BreakStatement", node, opts);
64 }
65 export function assertCallExpression(
66 node: object | null | undefined,
67 opts?: object | null,
68 ): asserts node is t.CallExpression {
69 assert("CallExpression", node, opts);
70 }
71 export function assertCatchClause(
72 node: object | null | undefined,
73 opts?: object | null,
74 ): asserts node is t.CatchClause {
75 assert("CatchClause", node, opts);
76 }
77 export function assertConditionalExpression(
78 node: object | null | undefined,
79 opts?: object | null,
80 ): asserts node is t.ConditionalExpression {
81 assert("ConditionalExpression", node, opts);
82 }
83 export function assertContinueStatement(
84 node: object | null | undefined,
85 opts?: object | null,
86 ): asserts node is t.ContinueStatement {
87 assert("ContinueStatement", node, opts);
88 }
89 export function assertDebuggerStatement(
90 node: object | null | undefined,
91 opts?: object | null,
92 ): asserts node is t.DebuggerStatement {
93 assert("DebuggerStatement", node, opts);
94 }
95 export function assertDoWhileStatement(
96 node: object | null | undefined,
97 opts?: object | null,
98 ): asserts node is t.DoWhileStatement {
99 assert("DoWhileStatement", node, opts);
100 }
101 export function assertEmptyStatement(
102 node: object | null | undefined,
103 opts?: object | null,
104 ): asserts node is t.EmptyStatement {
105 assert("EmptyStatement", node, opts);
106 }
107 export function assertExpressionStatement(
108 node: object | null | undefined,
109 opts?: object | null,
110 ): asserts node is t.ExpressionStatement {
111 assert("ExpressionStatement", node, opts);
112 }
113 export function assertFile(
114 node: object | null | undefined,
115 opts?: object | null,
116 ): asserts node is t.File {
117 assert("File", node, opts);
118 }
119 export function assertForInStatement(
120 node: object | null | undefined,
121 opts?: object | null,
122 ): asserts node is t.ForInStatement {
123 assert("ForInStatement", node, opts);
124 }
125 export function assertForStatement(
126 node: object | null | undefined,
127 opts?: object | null,
128 ): asserts node is t.ForStatement {
129 assert("ForStatement", node, opts);
130 }
131 export function assertFunctionDeclaration(
132 node: object | null | undefined,
133 opts?: object | null,
134 ): asserts node is t.FunctionDeclaration {
135 assert("FunctionDeclaration", node, opts);
136 }
137 export function assertFunctionExpression(
138 node: object | null | undefined,
139 opts?: object | null,
140 ): asserts node is t.FunctionExpression {
141 assert("FunctionExpression", node, opts);
142 }
143 export function assertIdentifier(
144 node: object | null | undefined,
145 opts?: object | null,
146 ): asserts node is t.Identifier {
147 assert("Identifier", node, opts);
148 }
149 export function assertIfStatement(
150 node: object | null | undefined,
151 opts?: object | null,
152 ): asserts node is t.IfStatement {
153 assert("IfStatement", node, opts);
154 }
155 export function assertLabeledStatement(
156 node: object | null | undefined,
157 opts?: object | null,
158 ): asserts node is t.LabeledStatement {
159 assert("LabeledStatement", node, opts);
160 }
161 export function assertStringLiteral(
162 node: object | null | undefined,
163 opts?: object | null,
164 ): asserts node is t.StringLiteral {
165 assert("StringLiteral", node, opts);
166 }
167 export function assertNumericLiteral(
168 node: object | null | undefined,
169 opts?: object | null,
170 ): asserts node is t.NumericLiteral {
171 assert("NumericLiteral", node, opts);
172 }
173 export function assertNullLiteral(
174 node: object | null | undefined,
175 opts?: object | null,
176 ): asserts node is t.NullLiteral {
177 assert("NullLiteral", node, opts);
178 }
179 export function assertBooleanLiteral(
180 node: object | null | undefined,
181 opts?: object | null,
182 ): asserts node is t.BooleanLiteral {
183 assert("BooleanLiteral", node, opts);
184 }
185 export function assertRegExpLiteral(
186 node: object | null | undefined,
187 opts?: object | null,
188 ): asserts node is t.RegExpLiteral {
189 assert("RegExpLiteral", node, opts);
190 }
191 export function assertLogicalExpression(
192 node: object | null | undefined,
193 opts?: object | null,
194 ): asserts node is t.LogicalExpression {
195 assert("LogicalExpression", node, opts);
196 }
197 export function assertMemberExpression(
198 node: object | null | undefined,
199 opts?: object | null,
200 ): asserts node is t.MemberExpression {
201 assert("MemberExpression", node, opts);
202 }
203 export function assertNewExpression(
204 node: object | null | undefined,
205 opts?: object | null,
206 ): asserts node is t.NewExpression {
207 assert("NewExpression", node, opts);
208 }
209 export function assertProgram(
210 node: object | null | undefined,
211 opts?: object | null,
212 ): asserts node is t.Program {
213 assert("Program", node, opts);
214 }
215 export function assertObjectExpression(
216 node: object | null | undefined,
217 opts?: object | null,
218 ): asserts node is t.ObjectExpression {
219 assert("ObjectExpression", node, opts);
220 }
221 export function assertObjectMethod(
222 node: object | null | undefined,
223 opts?: object | null,
224 ): asserts node is t.ObjectMethod {
225 assert("ObjectMethod", node, opts);
226 }
227 export function assertObjectProperty(
228 node: object | null | undefined,
229 opts?: object | null,
230 ): asserts node is t.ObjectProperty {
231 assert("ObjectProperty", node, opts);
232 }
233 export function assertRestElement(
234 node: object | null | undefined,
235 opts?: object | null,
236 ): asserts node is t.RestElement {
237 assert("RestElement", node, opts);
238 }
239 export function assertReturnStatement(
240 node: object | null | undefined,
241 opts?: object | null,
242 ): asserts node is t.ReturnStatement {
243 assert("ReturnStatement", node, opts);
244 }
245 export function assertSequenceExpression(
246 node: object | null | undefined,
247 opts?: object | null,
248 ): asserts node is t.SequenceExpression {
249 assert("SequenceExpression", node, opts);
250 }
251 export function assertParenthesizedExpression(
252 node: object | null | undefined,
253 opts?: object | null,
254 ): asserts node is t.ParenthesizedExpression {
255 assert("ParenthesizedExpression", node, opts);
256 }
257 export function assertSwitchCase(
258 node: object | null | undefined,
259 opts?: object | null,
260 ): asserts node is t.SwitchCase {
261 assert("SwitchCase", node, opts);
262 }
263 export function assertSwitchStatement(
264 node: object | null | undefined,
265 opts?: object | null,
266 ): asserts node is t.SwitchStatement {
267 assert("SwitchStatement", node, opts);
268 }
269 export function assertThisExpression(
270 node: object | null | undefined,
271 opts?: object | null,
272 ): asserts node is t.ThisExpression {
273 assert("ThisExpression", node, opts);
274 }
275 export function assertThrowStatement(
276 node: object | null | undefined,
277 opts?: object | null,
278 ): asserts node is t.ThrowStatement {
279 assert("ThrowStatement", node, opts);
280 }
281 export function assertTryStatement(
282 node: object | null | undefined,
283 opts?: object | null,
284 ): asserts node is t.TryStatement {
285 assert("TryStatement", node, opts);
286 }
287 export function assertUnaryExpression(
288 node: object | null | undefined,
289 opts?: object | null,
290 ): asserts node is t.UnaryExpression {
291 assert("UnaryExpression", node, opts);
292 }
293 export function assertUpdateExpression(
294 node: object | null | undefined,
295 opts?: object | null,
296 ): asserts node is t.UpdateExpression {
297 assert("UpdateExpression", node, opts);
298 }
299 export function assertVariableDeclaration(
300 node: object | null | undefined,
301 opts?: object | null,
302 ): asserts node is t.VariableDeclaration {
303 assert("VariableDeclaration", node, opts);
304 }
305 export function assertVariableDeclarator(
306 node: object | null | undefined,
307 opts?: object | null,
308 ): asserts node is t.VariableDeclarator {
309 assert("VariableDeclarator", node, opts);
310 }
311 export function assertWhileStatement(
312 node: object | null | undefined,
313 opts?: object | null,
314 ): asserts node is t.WhileStatement {
315 assert("WhileStatement", node, opts);
316 }
317 export function assertWithStatement(
318 node: object | null | undefined,
319 opts?: object | null,
320 ): asserts node is t.WithStatement {
321 assert("WithStatement", node, opts);
322 }
323 export function assertAssignmentPattern(
324 node: object | null | undefined,
325 opts?: object | null,
326 ): asserts node is t.AssignmentPattern {
327 assert("AssignmentPattern", node, opts);
328 }
329 export function assertArrayPattern(
330 node: object | null | undefined,
331 opts?: object | null,
332 ): asserts node is t.ArrayPattern {
333 assert("ArrayPattern", node, opts);
334 }
335 export function assertArrowFunctionExpression(
336 node: object | null | undefined,
337 opts?: object | null,
338 ): asserts node is t.ArrowFunctionExpression {
339 assert("ArrowFunctionExpression", node, opts);
340 }
341 export function assertClassBody(
342 node: object | null | undefined,
343 opts?: object | null,
344 ): asserts node is t.ClassBody {
345 assert("ClassBody", node, opts);
346 }
347 export function assertClassExpression(
348 node: object | null | undefined,
349 opts?: object | null,
350 ): asserts node is t.ClassExpression {
351 assert("ClassExpression", node, opts);
352 }
353 export function assertClassDeclaration(
354 node: object | null | undefined,
355 opts?: object | null,
356 ): asserts node is t.ClassDeclaration {
357 assert("ClassDeclaration", node, opts);
358 }
359 export function assertExportAllDeclaration(
360 node: object | null | undefined,
361 opts?: object | null,
362 ): asserts node is t.ExportAllDeclaration {
363 assert("ExportAllDeclaration", node, opts);
364 }
365 export function assertExportDefaultDeclaration(
366 node: object | null | undefined,
367 opts?: object | null,
368 ): asserts node is t.ExportDefaultDeclaration {
369 assert("ExportDefaultDeclaration", node, opts);
370 }
371 export function assertExportNamedDeclaration(
372 node: object | null | undefined,
373 opts?: object | null,
374 ): asserts node is t.ExportNamedDeclaration {
375 assert("ExportNamedDeclaration", node, opts);
376 }
377 export function assertExportSpecifier(
378 node: object | null | undefined,
379 opts?: object | null,
380 ): asserts node is t.ExportSpecifier {
381 assert("ExportSpecifier", node, opts);
382 }
383 export function assertForOfStatement(
384 node: object | null | undefined,
385 opts?: object | null,
386 ): asserts node is t.ForOfStatement {
387 assert("ForOfStatement", node, opts);
388 }
389 export function assertImportDeclaration(
390 node: object | null | undefined,
391 opts?: object | null,
392 ): asserts node is t.ImportDeclaration {
393 assert("ImportDeclaration", node, opts);
394 }
395 export function assertImportDefaultSpecifier(
396 node: object | null | undefined,
397 opts?: object | null,
398 ): asserts node is t.ImportDefaultSpecifier {
399 assert("ImportDefaultSpecifier", node, opts);
400 }
401 export function assertImportNamespaceSpecifier(
402 node: object | null | undefined,
403 opts?: object | null,
404 ): asserts node is t.ImportNamespaceSpecifier {
405 assert("ImportNamespaceSpecifier", node, opts);
406 }
407 export function assertImportSpecifier(
408 node: object | null | undefined,
409 opts?: object | null,
410 ): asserts node is t.ImportSpecifier {
411 assert("ImportSpecifier", node, opts);
412 }
413 export function assertMetaProperty(
414 node: object | null | undefined,
415 opts?: object | null,
416 ): asserts node is t.MetaProperty {
417 assert("MetaProperty", node, opts);
418 }
419 export function assertClassMethod(
420 node: object | null | undefined,
421 opts?: object | null,
422 ): asserts node is t.ClassMethod {
423 assert("ClassMethod", node, opts);
424 }
425 export function assertObjectPattern(
426 node: object | null | undefined,
427 opts?: object | null,
428 ): asserts node is t.ObjectPattern {
429 assert("ObjectPattern", node, opts);
430 }
431 export function assertSpreadElement(
432 node: object | null | undefined,
433 opts?: object | null,
434 ): asserts node is t.SpreadElement {
435 assert("SpreadElement", node, opts);
436 }
437 export function assertSuper(
438 node: object | null | undefined,
439 opts?: object | null,
440 ): asserts node is t.Super {
441 assert("Super", node, opts);
442 }
443 export function assertTaggedTemplateExpression(
444 node: object | null | undefined,
445 opts?: object | null,
446 ): asserts node is t.TaggedTemplateExpression {
447 assert("TaggedTemplateExpression", node, opts);
448 }
449 export function assertTemplateElement(
450 node: object | null | undefined,
451 opts?: object | null,
452 ): asserts node is t.TemplateElement {
453 assert("TemplateElement", node, opts);
454 }
455 export function assertTemplateLiteral(
456 node: object | null | undefined,
457 opts?: object | null,
458 ): asserts node is t.TemplateLiteral {
459 assert("TemplateLiteral", node, opts);
460 }
461 export function assertYieldExpression(
462 node: object | null | undefined,
463 opts?: object | null,
464 ): asserts node is t.YieldExpression {
465 assert("YieldExpression", node, opts);
466 }
467 export function assertAwaitExpression(
468 node: object | null | undefined,
469 opts?: object | null,
470 ): asserts node is t.AwaitExpression {
471 assert("AwaitExpression", node, opts);
472 }
473 export function assertImport(
474 node: object | null | undefined,
475 opts?: object | null,
476 ): asserts node is t.Import {
477 assert("Import", node, opts);
478 }
479 export function assertBigIntLiteral(
480 node: object | null | undefined,
481 opts?: object | null,
482 ): asserts node is t.BigIntLiteral {
483 assert("BigIntLiteral", node, opts);
484 }
485 export function assertExportNamespaceSpecifier(
486 node: object | null | undefined,
487 opts?: object | null,
488 ): asserts node is t.ExportNamespaceSpecifier {
489 assert("ExportNamespaceSpecifier", node, opts);
490 }
491 export function assertOptionalMemberExpression(
492 node: object | null | undefined,
493 opts?: object | null,
494 ): asserts node is t.OptionalMemberExpression {
495 assert("OptionalMemberExpression", node, opts);
496 }
497 export function assertOptionalCallExpression(
498 node: object | null | undefined,
499 opts?: object | null,
500 ): asserts node is t.OptionalCallExpression {
501 assert("OptionalCallExpression", node, opts);
502 }
503 export function assertClassProperty(
504 node: object | null | undefined,
505 opts?: object | null,
506 ): asserts node is t.ClassProperty {
507 assert("ClassProperty", node, opts);
508 }
509 export function assertClassAccessorProperty(
510 node: object | null | undefined,
511 opts?: object | null,
512 ): asserts node is t.ClassAccessorProperty {
513 assert("ClassAccessorProperty", node, opts);
514 }
515 export function assertClassPrivateProperty(
516 node: object | null | undefined,
517 opts?: object | null,
518 ): asserts node is t.ClassPrivateProperty {
519 assert("ClassPrivateProperty", node, opts);
520 }
521 export function assertClassPrivateMethod(
522 node: object | null | undefined,
523 opts?: object | null,
524 ): asserts node is t.ClassPrivateMethod {
525 assert("ClassPrivateMethod", node, opts);
526 }
527 export function assertPrivateName(
528 node: object | null | undefined,
529 opts?: object | null,
530 ): asserts node is t.PrivateName {
531 assert("PrivateName", node, opts);
532 }
533 export function assertStaticBlock(
534 node: object | null | undefined,
535 opts?: object | null,
536 ): asserts node is t.StaticBlock {
537 assert("StaticBlock", node, opts);
538 }
539 export function assertAnyTypeAnnotation(
540 node: object | null | undefined,
541 opts?: object | null,
542 ): asserts node is t.AnyTypeAnnotation {
543 assert("AnyTypeAnnotation", node, opts);
544 }
545 export function assertArrayTypeAnnotation(
546 node: object | null | undefined,
547 opts?: object | null,
548 ): asserts node is t.ArrayTypeAnnotation {
549 assert("ArrayTypeAnnotation", node, opts);
550 }
551 export function assertBooleanTypeAnnotation(
552 node: object | null | undefined,
553 opts?: object | null,
554 ): asserts node is t.BooleanTypeAnnotation {
555 assert("BooleanTypeAnnotation", node, opts);
556 }
557 export function assertBooleanLiteralTypeAnnotation(
558 node: object | null | undefined,
559 opts?: object | null,
560 ): asserts node is t.BooleanLiteralTypeAnnotation {
561 assert("BooleanLiteralTypeAnnotation", node, opts);
562 }
563 export function assertNullLiteralTypeAnnotation(
564 node: object | null | undefined,
565 opts?: object | null,
566 ): asserts node is t.NullLiteralTypeAnnotation {
567 assert("NullLiteralTypeAnnotation", node, opts);
568 }
569 export function assertClassImplements(
570 node: object | null | undefined,
571 opts?: object | null,
572 ): asserts node is t.ClassImplements {
573 assert("ClassImplements", node, opts);
574 }
575 export function assertDeclareClass(
576 node: object | null | undefined,
577 opts?: object | null,
578 ): asserts node is t.DeclareClass {
579 assert("DeclareClass", node, opts);
580 }
581 export function assertDeclareFunction(
582 node: object | null | undefined,
583 opts?: object | null,
584 ): asserts node is t.DeclareFunction {
585 assert("DeclareFunction", node, opts);
586 }
587 export function assertDeclareInterface(
588 node: object | null | undefined,
589 opts?: object | null,
590 ): asserts node is t.DeclareInterface {
591 assert("DeclareInterface", node, opts);
592 }
593 export function assertDeclareModule(
594 node: object | null | undefined,
595 opts?: object | null,
596 ): asserts node is t.DeclareModule {
597 assert("DeclareModule", node, opts);
598 }
599 export function assertDeclareModuleExports(
600 node: object | null | undefined,
601 opts?: object | null,
602 ): asserts node is t.DeclareModuleExports {
603 assert("DeclareModuleExports", node, opts);
604 }
605 export function assertDeclareTypeAlias(
606 node: object | null | undefined,
607 opts?: object | null,
608 ): asserts node is t.DeclareTypeAlias {
609 assert("DeclareTypeAlias", node, opts);
610 }
611 export function assertDeclareOpaqueType(
612 node: object | null | undefined,
613 opts?: object | null,
614 ): asserts node is t.DeclareOpaqueType {
615 assert("DeclareOpaqueType", node, opts);
616 }
617 export function assertDeclareVariable(
618 node: object | null | undefined,
619 opts?: object | null,
620 ): asserts node is t.DeclareVariable {
621 assert("DeclareVariable", node, opts);
622 }
623 export function assertDeclareExportDeclaration(
624 node: object | null | undefined,
625 opts?: object | null,
626 ): asserts node is t.DeclareExportDeclaration {
627 assert("DeclareExportDeclaration", node, opts);
628 }
629 export function assertDeclareExportAllDeclaration(
630 node: object | null | undefined,
631 opts?: object | null,
632 ): asserts node is t.DeclareExportAllDeclaration {
633 assert("DeclareExportAllDeclaration", node, opts);
634 }
635 export function assertDeclaredPredicate(
636 node: object | null | undefined,
637 opts?: object | null,
638 ): asserts node is t.DeclaredPredicate {
639 assert("DeclaredPredicate", node, opts);
640 }
641 export function assertExistsTypeAnnotation(
642 node: object | null | undefined,
643 opts?: object | null,
644 ): asserts node is t.ExistsTypeAnnotation {
645 assert("ExistsTypeAnnotation", node, opts);
646 }
647 export function assertFunctionTypeAnnotation(
648 node: object | null | undefined,
649 opts?: object | null,
650 ): asserts node is t.FunctionTypeAnnotation {
651 assert("FunctionTypeAnnotation", node, opts);
652 }
653 export function assertFunctionTypeParam(
654 node: object | null | undefined,
655 opts?: object | null,
656 ): asserts node is t.FunctionTypeParam {
657 assert("FunctionTypeParam", node, opts);
658 }
659 export function assertGenericTypeAnnotation(
660 node: object | null | undefined,
661 opts?: object | null,
662 ): asserts node is t.GenericTypeAnnotation {
663 assert("GenericTypeAnnotation", node, opts);
664 }
665 export function assertInferredPredicate(
666 node: object | null | undefined,
667 opts?: object | null,
668 ): asserts node is t.InferredPredicate {
669 assert("InferredPredicate", node, opts);
670 }
671 export function assertInterfaceExtends(
672 node: object | null | undefined,
673 opts?: object | null,
674 ): asserts node is t.InterfaceExtends {
675 assert("InterfaceExtends", node, opts);
676 }
677 export function assertInterfaceDeclaration(
678 node: object | null | undefined,
679 opts?: object | null,
680 ): asserts node is t.InterfaceDeclaration {
681 assert("InterfaceDeclaration", node, opts);
682 }
683 export function assertInterfaceTypeAnnotation(
684 node: object | null | undefined,
685 opts?: object | null,
686 ): asserts node is t.InterfaceTypeAnnotation {
687 assert("InterfaceTypeAnnotation", node, opts);
688 }
689 export function assertIntersectionTypeAnnotation(
690 node: object | null | undefined,
691 opts?: object | null,
692 ): asserts node is t.IntersectionTypeAnnotation {
693 assert("IntersectionTypeAnnotation", node, opts);
694 }
695 export function assertMixedTypeAnnotation(
696 node: object | null | undefined,
697 opts?: object | null,
698 ): asserts node is t.MixedTypeAnnotation {
699 assert("MixedTypeAnnotation", node, opts);
700 }
701 export function assertEmptyTypeAnnotation(
702 node: object | null | undefined,
703 opts?: object | null,
704 ): asserts node is t.EmptyTypeAnnotation {
705 assert("EmptyTypeAnnotation", node, opts);
706 }
707 export function assertNullableTypeAnnotation(
708 node: object | null | undefined,
709 opts?: object | null,
710 ): asserts node is t.NullableTypeAnnotation {
711 assert("NullableTypeAnnotation", node, opts);
712 }
713 export function assertNumberLiteralTypeAnnotation(
714 node: object | null | undefined,
715 opts?: object | null,
716 ): asserts node is t.NumberLiteralTypeAnnotation {
717 assert("NumberLiteralTypeAnnotation", node, opts);
718 }
719 export function assertNumberTypeAnnotation(
720 node: object | null | undefined,
721 opts?: object | null,
722 ): asserts node is t.NumberTypeAnnotation {
723 assert("NumberTypeAnnotation", node, opts);
724 }
725 export function assertObjectTypeAnnotation(
726 node: object | null | undefined,
727 opts?: object | null,
728 ): asserts node is t.ObjectTypeAnnotation {
729 assert("ObjectTypeAnnotation", node, opts);
730 }
731 export function assertObjectTypeInternalSlot(
732 node: object | null | undefined,
733 opts?: object | null,
734 ): asserts node is t.ObjectTypeInternalSlot {
735 assert("ObjectTypeInternalSlot", node, opts);
736 }
737 export function assertObjectTypeCallProperty(
738 node: object | null | undefined,
739 opts?: object | null,
740 ): asserts node is t.ObjectTypeCallProperty {
741 assert("ObjectTypeCallProperty", node, opts);
742 }
743 export function assertObjectTypeIndexer(
744 node: object | null | undefined,
745 opts?: object | null,
746 ): asserts node is t.ObjectTypeIndexer {
747 assert("ObjectTypeIndexer", node, opts);
748 }
749 export function assertObjectTypeProperty(
750 node: object | null | undefined,
751 opts?: object | null,
752 ): asserts node is t.ObjectTypeProperty {
753 assert("ObjectTypeProperty", node, opts);
754 }
755 export function assertObjectTypeSpreadProperty(
756 node: object | null | undefined,
757 opts?: object | null,
758 ): asserts node is t.ObjectTypeSpreadProperty {
759 assert("ObjectTypeSpreadProperty", node, opts);
760 }
761 export function assertOpaqueType(
762 node: object | null | undefined,
763 opts?: object | null,
764 ): asserts node is t.OpaqueType {
765 assert("OpaqueType", node, opts);
766 }
767 export function assertQualifiedTypeIdentifier(
768 node: object | null | undefined,
769 opts?: object | null,
770 ): asserts node is t.QualifiedTypeIdentifier {
771 assert("QualifiedTypeIdentifier", node, opts);
772 }
773 export function assertStringLiteralTypeAnnotation(
774 node: object | null | undefined,
775 opts?: object | null,
776 ): asserts node is t.StringLiteralTypeAnnotation {
777 assert("StringLiteralTypeAnnotation", node, opts);
778 }
779 export function assertStringTypeAnnotation(
780 node: object | null | undefined,
781 opts?: object | null,
782 ): asserts node is t.StringTypeAnnotation {
783 assert("StringTypeAnnotation", node, opts);
784 }
785 export function assertSymbolTypeAnnotation(
786 node: object | null | undefined,
787 opts?: object | null,
788 ): asserts node is t.SymbolTypeAnnotation {
789 assert("SymbolTypeAnnotation", node, opts);
790 }
791 export function assertThisTypeAnnotation(
792 node: object | null | undefined,
793 opts?: object | null,
794 ): asserts node is t.ThisTypeAnnotation {
795 assert("ThisTypeAnnotation", node, opts);
796 }
797 export function assertTupleTypeAnnotation(
798 node: object | null | undefined,
799 opts?: object | null,
800 ): asserts node is t.TupleTypeAnnotation {
801 assert("TupleTypeAnnotation", node, opts);
802 }
803 export function assertTypeofTypeAnnotation(
804 node: object | null | undefined,
805 opts?: object | null,
806 ): asserts node is t.TypeofTypeAnnotation {
807 assert("TypeofTypeAnnotation", node, opts);
808 }
809 export function assertTypeAlias(
810 node: object | null | undefined,
811 opts?: object | null,
812 ): asserts node is t.TypeAlias {
813 assert("TypeAlias", node, opts);
814 }
815 export function assertTypeAnnotation(
816 node: object | null | undefined,
817 opts?: object | null,
818 ): asserts node is t.TypeAnnotation {
819 assert("TypeAnnotation", node, opts);
820 }
821 export function assertTypeCastExpression(
822 node: object | null | undefined,
823 opts?: object | null,
824 ): asserts node is t.TypeCastExpression {
825 assert("TypeCastExpression", node, opts);
826 }
827 export function assertTypeParameter(
828 node: object | null | undefined,
829 opts?: object | null,
830 ): asserts node is t.TypeParameter {
831 assert("TypeParameter", node, opts);
832 }
833 export function assertTypeParameterDeclaration(
834 node: object | null | undefined,
835 opts?: object | null,
836 ): asserts node is t.TypeParameterDeclaration {
837 assert("TypeParameterDeclaration", node, opts);
838 }
839 export function assertTypeParameterInstantiation(
840 node: object | null | undefined,
841 opts?: object | null,
842 ): asserts node is t.TypeParameterInstantiation {
843 assert("TypeParameterInstantiation", node, opts);
844 }
845 export function assertUnionTypeAnnotation(
846 node: object | null | undefined,
847 opts?: object | null,
848 ): asserts node is t.UnionTypeAnnotation {
849 assert("UnionTypeAnnotation", node, opts);
850 }
851 export function assertVariance(
852 node: object | null | undefined,
853 opts?: object | null,
854 ): asserts node is t.Variance {
855 assert("Variance", node, opts);
856 }
857 export function assertVoidTypeAnnotation(
858 node: object | null | undefined,
859 opts?: object | null,
860 ): asserts node is t.VoidTypeAnnotation {
861 assert("VoidTypeAnnotation", node, opts);
862 }
863 export function assertEnumDeclaration(
864 node: object | null | undefined,
865 opts?: object | null,
866 ): asserts node is t.EnumDeclaration {
867 assert("EnumDeclaration", node, opts);
868 }
869 export function assertEnumBooleanBody(
870 node: object | null | undefined,
871 opts?: object | null,
872 ): asserts node is t.EnumBooleanBody {
873 assert("EnumBooleanBody", node, opts);
874 }
875 export function assertEnumNumberBody(
876 node: object | null | undefined,
877 opts?: object | null,
878 ): asserts node is t.EnumNumberBody {
879 assert("EnumNumberBody", node, opts);
880 }
881 export function assertEnumStringBody(
882 node: object | null | undefined,
883 opts?: object | null,
884 ): asserts node is t.EnumStringBody {
885 assert("EnumStringBody", node, opts);
886 }
887 export function assertEnumSymbolBody(
888 node: object | null | undefined,
889 opts?: object | null,
890 ): asserts node is t.EnumSymbolBody {
891 assert("EnumSymbolBody", node, opts);
892 }
893 export function assertEnumBooleanMember(
894 node: object | null | undefined,
895 opts?: object | null,
896 ): asserts node is t.EnumBooleanMember {
897 assert("EnumBooleanMember", node, opts);
898 }
899 export function assertEnumNumberMember(
900 node: object | null | undefined,
901 opts?: object | null,
902 ): asserts node is t.EnumNumberMember {
903 assert("EnumNumberMember", node, opts);
904 }
905 export function assertEnumStringMember(
906 node: object | null | undefined,
907 opts?: object | null,
908 ): asserts node is t.EnumStringMember {
909 assert("EnumStringMember", node, opts);
910 }
911 export function assertEnumDefaultedMember(
912 node: object | null | undefined,
913 opts?: object | null,
914 ): asserts node is t.EnumDefaultedMember {
915 assert("EnumDefaultedMember", node, opts);
916 }
917 export function assertIndexedAccessType(
918 node: object | null | undefined,
919 opts?: object | null,
920 ): asserts node is t.IndexedAccessType {
921 assert("IndexedAccessType", node, opts);
922 }
923 export function assertOptionalIndexedAccessType(
924 node: object | null | undefined,
925 opts?: object | null,
926 ): asserts node is t.OptionalIndexedAccessType {
927 assert("OptionalIndexedAccessType", node, opts);
928 }
929 export function assertJSXAttribute(
930 node: object | null | undefined,
931 opts?: object | null,
932 ): asserts node is t.JSXAttribute {
933 assert("JSXAttribute", node, opts);
934 }
935 export function assertJSXClosingElement(
936 node: object | null | undefined,
937 opts?: object | null,
938 ): asserts node is t.JSXClosingElement {
939 assert("JSXClosingElement", node, opts);
940 }
941 export function assertJSXElement(
942 node: object | null | undefined,
943 opts?: object | null,
944 ): asserts node is t.JSXElement {
945 assert("JSXElement", node, opts);
946 }
947 export function assertJSXEmptyExpression(
948 node: object | null | undefined,
949 opts?: object | null,
950 ): asserts node is t.JSXEmptyExpression {
951 assert("JSXEmptyExpression", node, opts);
952 }
953 export function assertJSXExpressionContainer(
954 node: object | null | undefined,
955 opts?: object | null,
956 ): asserts node is t.JSXExpressionContainer {
957 assert("JSXExpressionContainer", node, opts);
958 }
959 export function assertJSXSpreadChild(
960 node: object | null | undefined,
961 opts?: object | null,
962 ): asserts node is t.JSXSpreadChild {
963 assert("JSXSpreadChild", node, opts);
964 }
965 export function assertJSXIdentifier(
966 node: object | null | undefined,
967 opts?: object | null,
968 ): asserts node is t.JSXIdentifier {
969 assert("JSXIdentifier", node, opts);
970 }
971 export function assertJSXMemberExpression(
972 node: object | null | undefined,
973 opts?: object | null,
974 ): asserts node is t.JSXMemberExpression {
975 assert("JSXMemberExpression", node, opts);
976 }
977 export function assertJSXNamespacedName(
978 node: object | null | undefined,
979 opts?: object | null,
980 ): asserts node is t.JSXNamespacedName {
981 assert("JSXNamespacedName", node, opts);
982 }
983 export function assertJSXOpeningElement(
984 node: object | null | undefined,
985 opts?: object | null,
986 ): asserts node is t.JSXOpeningElement {
987 assert("JSXOpeningElement", node, opts);
988 }
989 export function assertJSXSpreadAttribute(
990 node: object | null | undefined,
991 opts?: object | null,
992 ): asserts node is t.JSXSpreadAttribute {
993 assert("JSXSpreadAttribute", node, opts);
994 }
995 export function assertJSXText(
996 node: object | null | undefined,
997 opts?: object | null,
998 ): asserts node is t.JSXText {
999 assert("JSXText", node, opts);
1000 }
1001 export function assertJSXFragment(
1002 node: object | null | undefined,
1003 opts?: object | null,
1004 ): asserts node is t.JSXFragment {
1005 assert("JSXFragment", node, opts);
1006 }
1007 export function assertJSXOpeningFragment(
1008 node: object | null | undefined,
1009 opts?: object | null,
1010 ): asserts node is t.JSXOpeningFragment {
1011 assert("JSXOpeningFragment", node, opts);
1012 }
1013 export function assertJSXClosingFragment(
1014 node: object | null | undefined,
1015 opts?: object | null,
1016 ): asserts node is t.JSXClosingFragment {
1017 assert("JSXClosingFragment", node, opts);
1018 }
1019 export function assertNoop(
1020 node: object | null | undefined,
1021 opts?: object | null,
1022 ): asserts node is t.Noop {
1023 assert("Noop", node, opts);
1024 }
1025 export function assertPlaceholder(
1026 node: object | null | undefined,
1027 opts?: object | null,
1028 ): asserts node is t.Placeholder {
1029 assert("Placeholder", node, opts);
1030 }
1031 export function assertV8IntrinsicIdentifier(
1032 node: object | null | undefined,
1033 opts?: object | null,
1034 ): asserts node is t.V8IntrinsicIdentifier {
1035 assert("V8IntrinsicIdentifier", node, opts);
1036 }
1037 export function assertArgumentPlaceholder(
1038 node: object | null | undefined,
1039 opts?: object | null,
1040 ): asserts node is t.ArgumentPlaceholder {
1041 assert("ArgumentPlaceholder", node, opts);
1042 }
1043 export function assertBindExpression(
1044 node: object | null | undefined,
1045 opts?: object | null,
1046 ): asserts node is t.BindExpression {
1047 assert("BindExpression", node, opts);
1048 }
1049 export function assertImportAttribute(
1050 node: object | null | undefined,
1051 opts?: object | null,
1052 ): asserts node is t.ImportAttribute {
1053 assert("ImportAttribute", node, opts);
1054 }
1055 export function assertDecorator(
1056 node: object | null | undefined,
1057 opts?: object | null,
1058 ): asserts node is t.Decorator {
1059 assert("Decorator", node, opts);
1060 }
1061 export function assertDoExpression(
1062 node: object | null | undefined,
1063 opts?: object | null,
1064 ): asserts node is t.DoExpression {
1065 assert("DoExpression", node, opts);
1066 }
1067 export function assertExportDefaultSpecifier(
1068 node: object | null | undefined,
1069 opts?: object | null,
1070 ): asserts node is t.ExportDefaultSpecifier {
1071 assert("ExportDefaultSpecifier", node, opts);
1072 }
1073 export function assertRecordExpression(
1074 node: object | null | undefined,
1075 opts?: object | null,
1076 ): asserts node is t.RecordExpression {
1077 assert("RecordExpression", node, opts);
1078 }
1079 export function assertTupleExpression(
1080 node: object | null | undefined,
1081 opts?: object | null,
1082 ): asserts node is t.TupleExpression {
1083 assert("TupleExpression", node, opts);
1084 }
1085 export function assertDecimalLiteral(
1086 node: object | null | undefined,
1087 opts?: object | null,
1088 ): asserts node is t.DecimalLiteral {
1089 assert("DecimalLiteral", node, opts);
1090 }
1091 export function assertModuleExpression(
1092 node: object | null | undefined,
1093 opts?: object | null,
1094 ): asserts node is t.ModuleExpression {
1095 assert("ModuleExpression", node, opts);
1096 }
1097 export function assertTopicReference(
1098 node: object | null | undefined,
1099 opts?: object | null,
1100 ): asserts node is t.TopicReference {
1101 assert("TopicReference", node, opts);
1102 }
1103 export function assertPipelineTopicExpression(
1104 node: object | null | undefined,
1105 opts?: object | null,
1106 ): asserts node is t.PipelineTopicExpression {
1107 assert("PipelineTopicExpression", node, opts);
1108 }
1109 export function assertPipelineBareFunction(
1110 node: object | null | undefined,
1111 opts?: object | null,
1112 ): asserts node is t.PipelineBareFunction {
1113 assert("PipelineBareFunction", node, opts);
1114 }
1115 export function assertPipelinePrimaryTopicReference(
1116 node: object | null | undefined,
1117 opts?: object | null,
1118 ): asserts node is t.PipelinePrimaryTopicReference {
1119 assert("PipelinePrimaryTopicReference", node, opts);
1120 }
1121 export function assertTSParameterProperty(
1122 node: object | null | undefined,
1123 opts?: object | null,
1124 ): asserts node is t.TSParameterProperty {
1125 assert("TSParameterProperty", node, opts);
1126 }
1127 export function assertTSDeclareFunction(
1128 node: object | null | undefined,
1129 opts?: object | null,
1130 ): asserts node is t.TSDeclareFunction {
1131 assert("TSDeclareFunction", node, opts);
1132 }
1133 export function assertTSDeclareMethod(
1134 node: object | null | undefined,
1135 opts?: object | null,
1136 ): asserts node is t.TSDeclareMethod {
1137 assert("TSDeclareMethod", node, opts);
1138 }
1139 export function assertTSQualifiedName(
1140 node: object | null | undefined,
1141 opts?: object | null,
1142 ): asserts node is t.TSQualifiedName {
1143 assert("TSQualifiedName", node, opts);
1144 }
1145 export function assertTSCallSignatureDeclaration(
1146 node: object | null | undefined,
1147 opts?: object | null,
1148 ): asserts node is t.TSCallSignatureDeclaration {
1149 assert("TSCallSignatureDeclaration", node, opts);
1150 }
1151 export function assertTSConstructSignatureDeclaration(
1152 node: object | null | undefined,
1153 opts?: object | null,
1154 ): asserts node is t.TSConstructSignatureDeclaration {
1155 assert("TSConstructSignatureDeclaration", node, opts);
1156 }
1157 export function assertTSPropertySignature(
1158 node: object | null | undefined,
1159 opts?: object | null,
1160 ): asserts node is t.TSPropertySignature {
1161 assert("TSPropertySignature", node, opts);
1162 }
1163 export function assertTSMethodSignature(
1164 node: object | null | undefined,
1165 opts?: object | null,
1166 ): asserts node is t.TSMethodSignature {
1167 assert("TSMethodSignature", node, opts);
1168 }
1169 export function assertTSIndexSignature(
1170 node: object | null | undefined,
1171 opts?: object | null,
1172 ): asserts node is t.TSIndexSignature {
1173 assert("TSIndexSignature", node, opts);
1174 }
1175 export function assertTSAnyKeyword(
1176 node: object | null | undefined,
1177 opts?: object | null,
1178 ): asserts node is t.TSAnyKeyword {
1179 assert("TSAnyKeyword", node, opts);
1180 }
1181 export function assertTSBooleanKeyword(
1182 node: object | null | undefined,
1183 opts?: object | null,
1184 ): asserts node is t.TSBooleanKeyword {
1185 assert("TSBooleanKeyword", node, opts);
1186 }
1187 export function assertTSBigIntKeyword(
1188 node: object | null | undefined,
1189 opts?: object | null,
1190 ): asserts node is t.TSBigIntKeyword {
1191 assert("TSBigIntKeyword", node, opts);
1192 }
1193 export function assertTSIntrinsicKeyword(
1194 node: object | null | undefined,
1195 opts?: object | null,
1196 ): asserts node is t.TSIntrinsicKeyword {
1197 assert("TSIntrinsicKeyword", node, opts);
1198 }
1199 export function assertTSNeverKeyword(
1200 node: object | null | undefined,
1201 opts?: object | null,
1202 ): asserts node is t.TSNeverKeyword {
1203 assert("TSNeverKeyword", node, opts);
1204 }
1205 export function assertTSNullKeyword(
1206 node: object | null | undefined,
1207 opts?: object | null,
1208 ): asserts node is t.TSNullKeyword {
1209 assert("TSNullKeyword", node, opts);
1210 }
1211 export function assertTSNumberKeyword(
1212 node: object | null | undefined,
1213 opts?: object | null,
1214 ): asserts node is t.TSNumberKeyword {
1215 assert("TSNumberKeyword", node, opts);
1216 }
1217 export function assertTSObjectKeyword(
1218 node: object | null | undefined,
1219 opts?: object | null,
1220 ): asserts node is t.TSObjectKeyword {
1221 assert("TSObjectKeyword", node, opts);
1222 }
1223 export function assertTSStringKeyword(
1224 node: object | null | undefined,
1225 opts?: object | null,
1226 ): asserts node is t.TSStringKeyword {
1227 assert("TSStringKeyword", node, opts);
1228 }
1229 export function assertTSSymbolKeyword(
1230 node: object | null | undefined,
1231 opts?: object | null,
1232 ): asserts node is t.TSSymbolKeyword {
1233 assert("TSSymbolKeyword", node, opts);
1234 }
1235 export function assertTSUndefinedKeyword(
1236 node: object | null | undefined,
1237 opts?: object | null,
1238 ): asserts node is t.TSUndefinedKeyword {
1239 assert("TSUndefinedKeyword", node, opts);
1240 }
1241 export function assertTSUnknownKeyword(
1242 node: object | null | undefined,
1243 opts?: object | null,
1244 ): asserts node is t.TSUnknownKeyword {
1245 assert("TSUnknownKeyword", node, opts);
1246 }
1247 export function assertTSVoidKeyword(
1248 node: object | null | undefined,
1249 opts?: object | null,
1250 ): asserts node is t.TSVoidKeyword {
1251 assert("TSVoidKeyword", node, opts);
1252 }
1253 export function assertTSThisType(
1254 node: object | null | undefined,
1255 opts?: object | null,
1256 ): asserts node is t.TSThisType {
1257 assert("TSThisType", node, opts);
1258 }
1259 export function assertTSFunctionType(
1260 node: object | null | undefined,
1261 opts?: object | null,
1262 ): asserts node is t.TSFunctionType {
1263 assert("TSFunctionType", node, opts);
1264 }
1265 export function assertTSConstructorType(
1266 node: object | null | undefined,
1267 opts?: object | null,
1268 ): asserts node is t.TSConstructorType {
1269 assert("TSConstructorType", node, opts);
1270 }
1271 export function assertTSTypeReference(
1272 node: object | null | undefined,
1273 opts?: object | null,
1274 ): asserts node is t.TSTypeReference {
1275 assert("TSTypeReference", node, opts);
1276 }
1277 export function assertTSTypePredicate(
1278 node: object | null | undefined,
1279 opts?: object | null,
1280 ): asserts node is t.TSTypePredicate {
1281 assert("TSTypePredicate", node, opts);
1282 }
1283 export function assertTSTypeQuery(
1284 node: object | null | undefined,
1285 opts?: object | null,
1286 ): asserts node is t.TSTypeQuery {
1287 assert("TSTypeQuery", node, opts);
1288 }
1289 export function assertTSTypeLiteral(
1290 node: object | null | undefined,
1291 opts?: object | null,
1292 ): asserts node is t.TSTypeLiteral {
1293 assert("TSTypeLiteral", node, opts);
1294 }
1295 export function assertTSArrayType(
1296 node: object | null | undefined,
1297 opts?: object | null,
1298 ): asserts node is t.TSArrayType {
1299 assert("TSArrayType", node, opts);
1300 }
1301 export function assertTSTupleType(
1302 node: object | null | undefined,
1303 opts?: object | null,
1304 ): asserts node is t.TSTupleType {
1305 assert("TSTupleType", node, opts);
1306 }
1307 export function assertTSOptionalType(
1308 node: object | null | undefined,
1309 opts?: object | null,
1310 ): asserts node is t.TSOptionalType {
1311 assert("TSOptionalType", node, opts);
1312 }
1313 export function assertTSRestType(
1314 node: object | null | undefined,
1315 opts?: object | null,
1316 ): asserts node is t.TSRestType {
1317 assert("TSRestType", node, opts);
1318 }
1319 export function assertTSNamedTupleMember(
1320 node: object | null | undefined,
1321 opts?: object | null,
1322 ): asserts node is t.TSNamedTupleMember {
1323 assert("TSNamedTupleMember", node, opts);
1324 }
1325 export function assertTSUnionType(
1326 node: object | null | undefined,
1327 opts?: object | null,
1328 ): asserts node is t.TSUnionType {
1329 assert("TSUnionType", node, opts);
1330 }
1331 export function assertTSIntersectionType(
1332 node: object | null | undefined,
1333 opts?: object | null,
1334 ): asserts node is t.TSIntersectionType {
1335 assert("TSIntersectionType", node, opts);
1336 }
1337 export function assertTSConditionalType(
1338 node: object | null | undefined,
1339 opts?: object | null,
1340 ): asserts node is t.TSConditionalType {
1341 assert("TSConditionalType", node, opts);
1342 }
1343 export function assertTSInferType(
1344 node: object | null | undefined,
1345 opts?: object | null,
1346 ): asserts node is t.TSInferType {
1347 assert("TSInferType", node, opts);
1348 }
1349 export function assertTSParenthesizedType(
1350 node: object | null | undefined,
1351 opts?: object | null,
1352 ): asserts node is t.TSParenthesizedType {
1353 assert("TSParenthesizedType", node, opts);
1354 }
1355 export function assertTSTypeOperator(
1356 node: object | null | undefined,
1357 opts?: object | null,
1358 ): asserts node is t.TSTypeOperator {
1359 assert("TSTypeOperator", node, opts);
1360 }
1361 export function assertTSIndexedAccessType(
1362 node: object | null | undefined,
1363 opts?: object | null,
1364 ): asserts node is t.TSIndexedAccessType {
1365 assert("TSIndexedAccessType", node, opts);
1366 }
1367 export function assertTSMappedType(
1368 node: object | null | undefined,
1369 opts?: object | null,
1370 ): asserts node is t.TSMappedType {
1371 assert("TSMappedType", node, opts);
1372 }
1373 export function assertTSLiteralType(
1374 node: object | null | undefined,
1375 opts?: object | null,
1376 ): asserts node is t.TSLiteralType {
1377 assert("TSLiteralType", node, opts);
1378 }
1379 export function assertTSExpressionWithTypeArguments(
1380 node: object | null | undefined,
1381 opts?: object | null,
1382 ): asserts node is t.TSExpressionWithTypeArguments {
1383 assert("TSExpressionWithTypeArguments", node, opts);
1384 }
1385 export function assertTSInterfaceDeclaration(
1386 node: object | null | undefined,
1387 opts?: object | null,
1388 ): asserts node is t.TSInterfaceDeclaration {
1389 assert("TSInterfaceDeclaration", node, opts);
1390 }
1391 export function assertTSInterfaceBody(
1392 node: object | null | undefined,
1393 opts?: object | null,
1394 ): asserts node is t.TSInterfaceBody {
1395 assert("TSInterfaceBody", node, opts);
1396 }
1397 export function assertTSTypeAliasDeclaration(
1398 node: object | null | undefined,
1399 opts?: object | null,
1400 ): asserts node is t.TSTypeAliasDeclaration {
1401 assert("TSTypeAliasDeclaration", node, opts);
1402 }
1403 export function assertTSInstantiationExpression(
1404 node: object | null | undefined,
1405 opts?: object | null,
1406 ): asserts node is t.TSInstantiationExpression {
1407 assert("TSInstantiationExpression", node, opts);
1408 }
1409 export function assertTSAsExpression(
1410 node: object | null | undefined,
1411 opts?: object | null,
1412 ): asserts node is t.TSAsExpression {
1413 assert("TSAsExpression", node, opts);
1414 }
1415 export function assertTSSatisfiesExpression(
1416 node: object | null | undefined,
1417 opts?: object | null,
1418 ): asserts node is t.TSSatisfiesExpression {
1419 assert("TSSatisfiesExpression", node, opts);
1420 }
1421 export function assertTSTypeAssertion(
1422 node: object | null | undefined,
1423 opts?: object | null,
1424 ): asserts node is t.TSTypeAssertion {
1425 assert("TSTypeAssertion", node, opts);
1426 }
1427 export function assertTSEnumDeclaration(
1428 node: object | null | undefined,
1429 opts?: object | null,
1430 ): asserts node is t.TSEnumDeclaration {
1431 assert("TSEnumDeclaration", node, opts);
1432 }
1433 export function assertTSEnumMember(
1434 node: object | null | undefined,
1435 opts?: object | null,
1436 ): asserts node is t.TSEnumMember {
1437 assert("TSEnumMember", node, opts);
1438 }
1439 export function assertTSModuleDeclaration(
1440 node: object | null | undefined,
1441 opts?: object | null,
1442 ): asserts node is t.TSModuleDeclaration {
1443 assert("TSModuleDeclaration", node, opts);
1444 }
1445 export function assertTSModuleBlock(
1446 node: object | null | undefined,
1447 opts?: object | null,
1448 ): asserts node is t.TSModuleBlock {
1449 assert("TSModuleBlock", node, opts);
1450 }
1451 export function assertTSImportType(
1452 node: object | null | undefined,
1453 opts?: object | null,
1454 ): asserts node is t.TSImportType {
1455 assert("TSImportType", node, opts);
1456 }
1457 export function assertTSImportEqualsDeclaration(
1458 node: object | null | undefined,
1459 opts?: object | null,
1460 ): asserts node is t.TSImportEqualsDeclaration {
1461 assert("TSImportEqualsDeclaration", node, opts);
1462 }
1463 export function assertTSExternalModuleReference(
1464 node: object | null | undefined,
1465 opts?: object | null,
1466 ): asserts node is t.TSExternalModuleReference {
1467 assert("TSExternalModuleReference", node, opts);
1468 }
1469 export function assertTSNonNullExpression(
1470 node: object | null | undefined,
1471 opts?: object | null,
1472 ): asserts node is t.TSNonNullExpression {
1473 assert("TSNonNullExpression", node, opts);
1474 }
1475 export function assertTSExportAssignment(
1476 node: object | null | undefined,
1477 opts?: object | null,
1478 ): asserts node is t.TSExportAssignment {
1479 assert("TSExportAssignment", node, opts);
1480 }
1481 export function assertTSNamespaceExportDeclaration(
1482 node: object | null | undefined,
1483 opts?: object | null,
1484 ): asserts node is t.TSNamespaceExportDeclaration {
1485 assert("TSNamespaceExportDeclaration", node, opts);
1486 }
1487 export function assertTSTypeAnnotation(
1488 node: object | null | undefined,
1489 opts?: object | null,
1490 ): asserts node is t.TSTypeAnnotation {
1491 assert("TSTypeAnnotation", node, opts);
1492 }
1493 export function assertTSTypeParameterInstantiation(
1494 node: object | null | undefined,
1495 opts?: object | null,
1496 ): asserts node is t.TSTypeParameterInstantiation {
1497 assert("TSTypeParameterInstantiation", node, opts);
1498 }
1499 export function assertTSTypeParameterDeclaration(
1500 node: object | null | undefined,
1501 opts?: object | null,
1502 ): asserts node is t.TSTypeParameterDeclaration {
1503 assert("TSTypeParameterDeclaration", node, opts);
1504 }
1505 export function assertTSTypeParameter(
1506 node: object | null | undefined,
1507 opts?: object | null,
1508 ): asserts node is t.TSTypeParameter {
1509 assert("TSTypeParameter", node, opts);
1510 }
1511 export function assertStandardized(
1512 node: object | null | undefined,
1513 opts?: object | null,
1514 ): asserts node is t.Standardized {
1515 assert("Standardized", node, opts);
1516 }
1517 export function assertExpression(
1518 node: object | null | undefined,
1519 opts?: object | null,
1520 ): asserts node is t.Expression {
1521 assert("Expression", node, opts);
1522 }
1523 export function assertBinary(
1524 node: object | null | undefined,
1525 opts?: object | null,
1526 ): asserts node is t.Binary {
1527 assert("Binary", node, opts);
1528 }
1529 export function assertScopable(
1530 node: object | null | undefined,
1531 opts?: object | null,
1532 ): asserts node is t.Scopable {
1533 assert("Scopable", node, opts);
1534 }
1535 export function assertBlockParent(
1536 node: object | null | undefined,
1537 opts?: object | null,
1538 ): asserts node is t.BlockParent {
1539 assert("BlockParent", node, opts);
1540 }
1541 export function assertBlock(
1542 node: object | null | undefined,
1543 opts?: object | null,
1544 ): asserts node is t.Block {
1545 assert("Block", node, opts);
1546 }
1547 export function assertStatement(
1548 node: object | null | undefined,
1549 opts?: object | null,
1550 ): asserts node is t.Statement {
1551 assert("Statement", node, opts);
1552 }
1553 export function assertTerminatorless(
1554 node: object | null | undefined,
1555 opts?: object | null,
1556 ): asserts node is t.Terminatorless {
1557 assert("Terminatorless", node, opts);
1558 }
1559 export function assertCompletionStatement(
1560 node: object | null | undefined,
1561 opts?: object | null,
1562 ): asserts node is t.CompletionStatement {
1563 assert("CompletionStatement", node, opts);
1564 }
1565 export function assertConditional(
1566 node: object | null | undefined,
1567 opts?: object | null,
1568 ): asserts node is t.Conditional {
1569 assert("Conditional", node, opts);
1570 }
1571 export function assertLoop(
1572 node: object | null | undefined,
1573 opts?: object | null,
1574 ): asserts node is t.Loop {
1575 assert("Loop", node, opts);
1576 }
1577 export function assertWhile(
1578 node: object | null | undefined,
1579 opts?: object | null,
1580 ): asserts node is t.While {
1581 assert("While", node, opts);
1582 }
1583 export function assertExpressionWrapper(
1584 node: object | null | undefined,
1585 opts?: object | null,
1586 ): asserts node is t.ExpressionWrapper {
1587 assert("ExpressionWrapper", node, opts);
1588 }
1589 export function assertFor(
1590 node: object | null | undefined,
1591 opts?: object | null,
1592 ): asserts node is t.For {
1593 assert("For", node, opts);
1594 }
1595 export function assertForXStatement(
1596 node: object | null | undefined,
1597 opts?: object | null,
1598 ): asserts node is t.ForXStatement {
1599 assert("ForXStatement", node, opts);
1600 }
1601 export function assertFunction(
1602 node: object | null | undefined,
1603 opts?: object | null,
1604 ): asserts node is t.Function {
1605 assert("Function", node, opts);
1606 }
1607 export function assertFunctionParent(
1608 node: object | null | undefined,
1609 opts?: object | null,
1610 ): asserts node is t.FunctionParent {
1611 assert("FunctionParent", node, opts);
1612 }
1613 export function assertPureish(
1614 node: object | null | undefined,
1615 opts?: object | null,
1616 ): asserts node is t.Pureish {
1617 assert("Pureish", node, opts);
1618 }
1619 export function assertDeclaration(
1620 node: object | null | undefined,
1621 opts?: object | null,
1622 ): asserts node is t.Declaration {
1623 assert("Declaration", node, opts);
1624 }
1625 export function assertPatternLike(
1626 node: object | null | undefined,
1627 opts?: object | null,
1628 ): asserts node is t.PatternLike {
1629 assert("PatternLike", node, opts);
1630 }
1631 export function assertLVal(
1632 node: object | null | undefined,
1633 opts?: object | null,
1634 ): asserts node is t.LVal {
1635 assert("LVal", node, opts);
1636 }
1637 export function assertTSEntityName(
1638 node: object | null | undefined,
1639 opts?: object | null,
1640 ): asserts node is t.TSEntityName {
1641 assert("TSEntityName", node, opts);
1642 }
1643 export function assertLiteral(
1644 node: object | null | undefined,
1645 opts?: object | null,
1646 ): asserts node is t.Literal {
1647 assert("Literal", node, opts);
1648 }
1649 export function assertImmutable(
1650 node: object | null | undefined,
1651 opts?: object | null,
1652 ): asserts node is t.Immutable {
1653 assert("Immutable", node, opts);
1654 }
1655 export function assertUserWhitespacable(
1656 node: object | null | undefined,
1657 opts?: object | null,
1658 ): asserts node is t.UserWhitespacable {
1659 assert("UserWhitespacable", node, opts);
1660 }
1661 export function assertMethod(
1662 node: object | null | undefined,
1663 opts?: object | null,
1664 ): asserts node is t.Method {
1665 assert("Method", node, opts);
1666 }
1667 export function assertObjectMember(
1668 node: object | null | undefined,
1669 opts?: object | null,
1670 ): asserts node is t.ObjectMember {
1671 assert("ObjectMember", node, opts);
1672 }
1673 export function assertProperty(
1674 node: object | null | undefined,
1675 opts?: object | null,
1676 ): asserts node is t.Property {
1677 assert("Property", node, opts);
1678 }
1679 export function assertUnaryLike(
1680 node: object | null | undefined,
1681 opts?: object | null,
1682 ): asserts node is t.UnaryLike {
1683 assert("UnaryLike", node, opts);
1684 }
1685 export function assertPattern(
1686 node: object | null | undefined,
1687 opts?: object | null,
1688 ): asserts node is t.Pattern {
1689 assert("Pattern", node, opts);
1690 }
1691 export function assertClass(
1692 node: object | null | undefined,
1693 opts?: object | null,
1694 ): asserts node is t.Class {
1695 assert("Class", node, opts);
1696 }
1697 export function assertModuleDeclaration(
1698 node: object | null | undefined,
1699 opts?: object | null,
1700 ): asserts node is t.ModuleDeclaration {
1701 assert("ModuleDeclaration", node, opts);
1702 }
1703 export function assertExportDeclaration(
1704 node: object | null | undefined,
1705 opts?: object | null,
1706 ): asserts node is t.ExportDeclaration {
1707 assert("ExportDeclaration", node, opts);
1708 }
1709 export function assertModuleSpecifier(
1710 node: object | null | undefined,
1711 opts?: object | null,
1712 ): asserts node is t.ModuleSpecifier {
1713 assert("ModuleSpecifier", node, opts);
1714 }
1715 export function assertAccessor(
1716 node: object | null | undefined,
1717 opts?: object | null,
1718 ): asserts node is t.Accessor {
1719 assert("Accessor", node, opts);
1720 }
1721 export function assertPrivate(
1722 node: object | null | undefined,
1723 opts?: object | null,
1724 ): asserts node is t.Private {
1725 assert("Private", node, opts);
1726 }
1727 export function assertFlow(
1728 node: object | null | undefined,
1729 opts?: object | null,
1730 ): asserts node is t.Flow {
1731 assert("Flow", node, opts);
1732 }
1733 export function assertFlowType(
1734 node: object | null | undefined,
1735 opts?: object | null,
1736 ): asserts node is t.FlowType {
1737 assert("FlowType", node, opts);
1738 }
1739 export function assertFlowBaseAnnotation(
1740 node: object | null | undefined,
1741 opts?: object | null,
1742 ): asserts node is t.FlowBaseAnnotation {
1743 assert("FlowBaseAnnotation", node, opts);
1744 }
1745 export function assertFlowDeclaration(
1746 node: object | null | undefined,
1747 opts?: object | null,
1748 ): asserts node is t.FlowDeclaration {
1749 assert("FlowDeclaration", node, opts);
1750 }
1751 export function assertFlowPredicate(
1752 node: object | null | undefined,
1753 opts?: object | null,
1754 ): asserts node is t.FlowPredicate {
1755 assert("FlowPredicate", node, opts);
1756 }
1757 export function assertEnumBody(
1758 node: object | null | undefined,
1759 opts?: object | null,
1760 ): asserts node is t.EnumBody {
1761 assert("EnumBody", node, opts);
1762 }
1763 export function assertEnumMember(
1764 node: object | null | undefined,
1765 opts?: object | null,
1766 ): asserts node is t.EnumMember {
1767 assert("EnumMember", node, opts);
1768 }
1769 export function assertJSX(
1770 node: object | null | undefined,
1771 opts?: object | null,
1772 ): asserts node is t.JSX {
1773 assert("JSX", node, opts);
1774 }
1775 export function assertMiscellaneous(
1776 node: object | null | undefined,
1777 opts?: object | null,
1778 ): asserts node is t.Miscellaneous {
1779 assert("Miscellaneous", node, opts);
1780 }
1781 export function assertTypeScript(
1782 node: object | null | undefined,
1783 opts?: object | null,
1784 ): asserts node is t.TypeScript {
1785 assert("TypeScript", node, opts);
1786 }
1787 export function assertTSTypeElement(
1788 node: object | null | undefined,
1789 opts?: object | null,
1790 ): asserts node is t.TSTypeElement {
1791 assert("TSTypeElement", node, opts);
1792 }
1793 export function assertTSType(
1794 node: object | null | undefined,
1795 opts?: object | null,
1796 ): asserts node is t.TSType {
1797 assert("TSType", node, opts);
1798 }
1799 export function assertTSBaseType(
1800 node: object | null | undefined,
1801 opts?: object | null,
1802 ): asserts node is t.TSBaseType {
1803 assert("TSBaseType", node, opts);
1804 }
1805 export function assertNumberLiteral(node: any, opts: any): void {
1806 console.trace(
1807 "The node type NumberLiteral has been renamed to NumericLiteral",
1808 );
1809 assert("NumberLiteral", node, opts);
1810 }
1811 export function assertRegexLiteral(node: any, opts: any): void {
1812 console.trace("The node type RegexLiteral has been renamed to RegExpLiteral");
1813 assert("RegexLiteral", node, opts);
1814 }
1815 export function assertRestProperty(node: any, opts: any): void {
1816 console.trace("The node type RestProperty has been renamed to RestElement");
1817 assert("RestProperty", node, opts);
1818 }
1819 export function assertSpreadProperty(node: any, opts: any): void {
1820 console.trace(
1821 "The node type SpreadProperty has been renamed to SpreadElement",
1822 );
1823 assert("SpreadProperty", node, opts);
1824 }