ast-types 0.13.3 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/dependabot.yml +9 -0
- package/.github/workflows/main.yml +29 -0
- package/README.md +1 -1
- package/def/babel-core.js +5 -61
- package/def/babel.js +3 -5
- package/def/core-operators.d.ts +3 -0
- package/def/core-operators.js +20 -0
- package/def/core.js +8 -11
- package/def/es-proposals.js +28 -23
- package/def/{es7.d.ts → es2016.d.ts} +0 -0
- package/def/es2016.js +20 -0
- package/def/{esNext.d.ts → es2017.d.ts} +0 -0
- package/def/es2017.js +20 -0
- package/def/es2018.d.ts +2 -0
- package/def/es2018.js +34 -0
- package/def/es2019.d.ts +2 -0
- package/def/es2019.js +17 -0
- package/def/es2020.js +38 -6
- package/def/es6.js +49 -25
- package/def/esprima.js +5 -7
- package/def/flow.js +75 -20
- package/def/jsx.js +28 -25
- package/def/type-annotations.js +3 -5
- package/def/typescript.js +16 -11
- package/fork.d.ts +1 -1
- package/fork.js +6 -8
- package/gen/builders.d.ts +360 -226
- package/gen/kinds.d.ts +48 -33
- package/gen/namedTypes.d.ts +257 -152
- package/gen/namedTypes.js +1 -0
- package/gen/visitor.d.ts +36 -21
- package/lib/equiv.js +2 -4
- package/lib/node-path.js +4 -6
- package/lib/path-visitor.js +3 -5
- package/lib/path.js +2 -4
- package/lib/scope.js +8 -5
- package/lib/shared.d.ts +7 -7
- package/lib/shared.js +2 -4
- package/lib/types.d.ts +1 -1
- package/lib/types.js +31 -32
- package/main.js +21 -16
- package/package.json +15 -13
- package/tsconfig.json +1 -0
- package/.travis.yml +0 -11
- package/def/es7.js +0 -36
- package/def/esNext.js +0 -57
- package/gen/nodes.d.ts +0 -1265
- package/gen/nodes.js +0 -2
package/gen/builders.d.ts
CHANGED
|
@@ -210,7 +210,7 @@ export interface DebuggerStatementBuilder {
|
|
|
210
210
|
}): namedTypes.DebuggerStatement;
|
|
211
211
|
}
|
|
212
212
|
export interface FunctionDeclarationBuilder {
|
|
213
|
-
(id: K.IdentifierKind, params: K.PatternKind[], body: K.BlockStatementKind, generator?: boolean, expression?: boolean): namedTypes.FunctionDeclaration;
|
|
213
|
+
(id: K.IdentifierKind | null, params: K.PatternKind[], body: K.BlockStatementKind, generator?: boolean, expression?: boolean): namedTypes.FunctionDeclaration;
|
|
214
214
|
from(params: {
|
|
215
215
|
async?: boolean;
|
|
216
216
|
body: K.BlockStatementKind;
|
|
@@ -218,9 +218,10 @@ export interface FunctionDeclarationBuilder {
|
|
|
218
218
|
defaults?: (K.ExpressionKind | null)[];
|
|
219
219
|
expression?: boolean;
|
|
220
220
|
generator?: boolean;
|
|
221
|
-
id: K.IdentifierKind;
|
|
221
|
+
id: K.IdentifierKind | null;
|
|
222
222
|
loc?: K.SourceLocationKind | null;
|
|
223
223
|
params: K.PatternKind[];
|
|
224
|
+
predicate?: K.FlowPredicateKind | null;
|
|
224
225
|
rest?: K.IdentifierKind | null;
|
|
225
226
|
returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
226
227
|
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
@@ -238,6 +239,7 @@ export interface FunctionExpressionBuilder {
|
|
|
238
239
|
id?: K.IdentifierKind | null;
|
|
239
240
|
loc?: K.SourceLocationKind | null;
|
|
240
241
|
params: K.PatternKind[];
|
|
242
|
+
predicate?: K.FlowPredicateKind | null;
|
|
241
243
|
rest?: K.IdentifierKind | null;
|
|
242
244
|
returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
243
245
|
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
@@ -320,22 +322,22 @@ export interface UnaryExpressionBuilder {
|
|
|
320
322
|
}): namedTypes.UnaryExpression;
|
|
321
323
|
}
|
|
322
324
|
export interface BinaryExpressionBuilder {
|
|
323
|
-
(operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "
|
|
325
|
+
(operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "&" | "|" | "^" | "in" | "instanceof" | "**", left: K.ExpressionKind, right: K.ExpressionKind): namedTypes.BinaryExpression;
|
|
324
326
|
from(params: {
|
|
325
327
|
comments?: K.CommentKind[] | null;
|
|
326
328
|
left: K.ExpressionKind;
|
|
327
329
|
loc?: K.SourceLocationKind | null;
|
|
328
|
-
operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "
|
|
330
|
+
operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "&" | "|" | "^" | "in" | "instanceof" | "**";
|
|
329
331
|
right: K.ExpressionKind;
|
|
330
332
|
}): namedTypes.BinaryExpression;
|
|
331
333
|
}
|
|
332
334
|
export interface AssignmentExpressionBuilder {
|
|
333
|
-
(operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=", left: K.PatternKind | K.MemberExpressionKind, right: K.ExpressionKind): namedTypes.AssignmentExpression;
|
|
335
|
+
(operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=", left: K.PatternKind | K.MemberExpressionKind, right: K.ExpressionKind): namedTypes.AssignmentExpression;
|
|
334
336
|
from(params: {
|
|
335
337
|
comments?: K.CommentKind[] | null;
|
|
336
338
|
left: K.PatternKind | K.MemberExpressionKind;
|
|
337
339
|
loc?: K.SourceLocationKind | null;
|
|
338
|
-
operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=";
|
|
340
|
+
operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=";
|
|
339
341
|
right: K.ExpressionKind;
|
|
340
342
|
}): namedTypes.AssignmentExpression;
|
|
341
343
|
}
|
|
@@ -346,6 +348,7 @@ export interface MemberExpressionBuilder {
|
|
|
346
348
|
computed?: boolean;
|
|
347
349
|
loc?: K.SourceLocationKind | null;
|
|
348
350
|
object: K.ExpressionKind;
|
|
351
|
+
optional?: boolean;
|
|
349
352
|
property: K.IdentifierKind | K.ExpressionKind;
|
|
350
353
|
}): namedTypes.MemberExpression;
|
|
351
354
|
}
|
|
@@ -396,6 +399,7 @@ export interface CallExpressionBuilder {
|
|
|
396
399
|
callee: K.ExpressionKind;
|
|
397
400
|
comments?: K.CommentKind[] | null;
|
|
398
401
|
loc?: K.SourceLocationKind | null;
|
|
402
|
+
optional?: boolean;
|
|
399
403
|
typeArguments?: null | K.TypeParameterInstantiationKind;
|
|
400
404
|
}): namedTypes.CallExpression;
|
|
401
405
|
}
|
|
@@ -444,6 +448,7 @@ export interface ArrowFunctionExpressionBuilder {
|
|
|
444
448
|
id?: null;
|
|
445
449
|
loc?: K.SourceLocationKind | null;
|
|
446
450
|
params: K.PatternKind[];
|
|
451
|
+
predicate?: K.FlowPredicateKind | null;
|
|
447
452
|
rest?: K.IdentifierKind | null;
|
|
448
453
|
returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
449
454
|
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
@@ -452,6 +457,7 @@ export interface ArrowFunctionExpressionBuilder {
|
|
|
452
457
|
export interface ForOfStatementBuilder {
|
|
453
458
|
(left: K.VariableDeclarationKind | K.PatternKind, right: K.ExpressionKind, body: K.StatementKind): namedTypes.ForOfStatement;
|
|
454
459
|
from(params: {
|
|
460
|
+
await?: boolean;
|
|
455
461
|
body: K.StatementKind;
|
|
456
462
|
comments?: K.CommentKind[] | null;
|
|
457
463
|
left: K.VariableDeclarationKind | K.PatternKind;
|
|
@@ -538,19 +544,6 @@ export interface ArrayPatternBuilder {
|
|
|
538
544
|
loc?: K.SourceLocationKind | null;
|
|
539
545
|
}): namedTypes.ArrayPattern;
|
|
540
546
|
}
|
|
541
|
-
export interface MethodDefinitionBuilder {
|
|
542
|
-
(kind: "constructor" | "method" | "get" | "set", key: K.ExpressionKind, value: K.FunctionKind, staticParam?: boolean): namedTypes.MethodDefinition;
|
|
543
|
-
from(params: {
|
|
544
|
-
comments?: K.CommentKind[] | null;
|
|
545
|
-
computed?: boolean;
|
|
546
|
-
decorators?: K.DecoratorKind[] | null;
|
|
547
|
-
key: K.ExpressionKind;
|
|
548
|
-
kind: "constructor" | "method" | "get" | "set";
|
|
549
|
-
loc?: K.SourceLocationKind | null;
|
|
550
|
-
static?: boolean;
|
|
551
|
-
value: K.FunctionKind;
|
|
552
|
-
}): namedTypes.MethodDefinition;
|
|
553
|
-
}
|
|
554
547
|
export interface SpreadElementBuilder {
|
|
555
548
|
(argument: K.ExpressionKind): namedTypes.SpreadElement;
|
|
556
549
|
from(params: {
|
|
@@ -568,6 +561,19 @@ export interface AssignmentPatternBuilder {
|
|
|
568
561
|
right: K.ExpressionKind;
|
|
569
562
|
}): namedTypes.AssignmentPattern;
|
|
570
563
|
}
|
|
564
|
+
export interface MethodDefinitionBuilder {
|
|
565
|
+
(kind: "constructor" | "method" | "get" | "set", key: K.ExpressionKind, value: K.FunctionKind, staticParam?: boolean): namedTypes.MethodDefinition;
|
|
566
|
+
from(params: {
|
|
567
|
+
comments?: K.CommentKind[] | null;
|
|
568
|
+
computed?: boolean;
|
|
569
|
+
decorators?: K.DecoratorKind[] | null;
|
|
570
|
+
key: K.ExpressionKind;
|
|
571
|
+
kind: "constructor" | "method" | "get" | "set";
|
|
572
|
+
loc?: K.SourceLocationKind | null;
|
|
573
|
+
static?: boolean;
|
|
574
|
+
value: K.FunctionKind;
|
|
575
|
+
}): namedTypes.MethodDefinition;
|
|
576
|
+
}
|
|
571
577
|
export interface ClassPropertyDefinitionBuilder {
|
|
572
578
|
(definition: K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind): namedTypes.ClassPropertyDefinition;
|
|
573
579
|
from(params: {
|
|
@@ -624,6 +630,13 @@ export interface ClassExpressionBuilder {
|
|
|
624
630
|
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
625
631
|
}): namedTypes.ClassExpression;
|
|
626
632
|
}
|
|
633
|
+
export interface SuperBuilder {
|
|
634
|
+
(): namedTypes.Super;
|
|
635
|
+
from(params: {
|
|
636
|
+
comments?: K.CommentKind[] | null;
|
|
637
|
+
loc?: K.SourceLocationKind | null;
|
|
638
|
+
}): namedTypes.Super;
|
|
639
|
+
}
|
|
627
640
|
export interface ImportSpecifierBuilder {
|
|
628
641
|
(imported: K.IdentifierKind, local?: K.IdentifierKind | null): namedTypes.ImportSpecifier;
|
|
629
642
|
from(params: {
|
|
@@ -635,36 +648,74 @@ export interface ImportSpecifierBuilder {
|
|
|
635
648
|
name?: K.IdentifierKind | null;
|
|
636
649
|
}): namedTypes.ImportSpecifier;
|
|
637
650
|
}
|
|
638
|
-
export interface
|
|
639
|
-
(local?: K.IdentifierKind | null): namedTypes.
|
|
651
|
+
export interface ImportDefaultSpecifierBuilder {
|
|
652
|
+
(local?: K.IdentifierKind | null): namedTypes.ImportDefaultSpecifier;
|
|
640
653
|
from(params: {
|
|
641
654
|
comments?: K.CommentKind[] | null;
|
|
642
655
|
id?: K.IdentifierKind | null;
|
|
643
656
|
loc?: K.SourceLocationKind | null;
|
|
644
657
|
local?: K.IdentifierKind | null;
|
|
645
658
|
name?: K.IdentifierKind | null;
|
|
646
|
-
}): namedTypes.
|
|
659
|
+
}): namedTypes.ImportDefaultSpecifier;
|
|
647
660
|
}
|
|
648
|
-
export interface
|
|
649
|
-
(local?: K.IdentifierKind | null): namedTypes.
|
|
661
|
+
export interface ImportNamespaceSpecifierBuilder {
|
|
662
|
+
(local?: K.IdentifierKind | null): namedTypes.ImportNamespaceSpecifier;
|
|
650
663
|
from(params: {
|
|
651
664
|
comments?: K.CommentKind[] | null;
|
|
652
665
|
id?: K.IdentifierKind | null;
|
|
653
666
|
loc?: K.SourceLocationKind | null;
|
|
654
667
|
local?: K.IdentifierKind | null;
|
|
655
668
|
name?: K.IdentifierKind | null;
|
|
656
|
-
}): namedTypes.
|
|
669
|
+
}): namedTypes.ImportNamespaceSpecifier;
|
|
657
670
|
}
|
|
658
671
|
export interface ImportDeclarationBuilder {
|
|
659
|
-
(specifiers: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[] | undefined, source: K.LiteralKind, importKind?: "value" | "type"): namedTypes.ImportDeclaration;
|
|
672
|
+
(specifiers: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[] | undefined, source: K.LiteralKind, importKind?: "value" | "type" | "typeof"): namedTypes.ImportDeclaration;
|
|
660
673
|
from(params: {
|
|
661
674
|
comments?: K.CommentKind[] | null;
|
|
662
|
-
importKind?: "value" | "type";
|
|
675
|
+
importKind?: "value" | "type" | "typeof";
|
|
663
676
|
loc?: K.SourceLocationKind | null;
|
|
664
677
|
source: K.LiteralKind;
|
|
665
678
|
specifiers?: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[];
|
|
666
679
|
}): namedTypes.ImportDeclaration;
|
|
667
680
|
}
|
|
681
|
+
export interface ExportNamedDeclarationBuilder {
|
|
682
|
+
(declaration: K.DeclarationKind | null, specifiers?: K.ExportSpecifierKind[], source?: K.LiteralKind | null): namedTypes.ExportNamedDeclaration;
|
|
683
|
+
from(params: {
|
|
684
|
+
comments?: K.CommentKind[] | null;
|
|
685
|
+
declaration: K.DeclarationKind | null;
|
|
686
|
+
loc?: K.SourceLocationKind | null;
|
|
687
|
+
source?: K.LiteralKind | null;
|
|
688
|
+
specifiers?: K.ExportSpecifierKind[];
|
|
689
|
+
}): namedTypes.ExportNamedDeclaration;
|
|
690
|
+
}
|
|
691
|
+
export interface ExportSpecifierBuilder {
|
|
692
|
+
(id?: K.IdentifierKind | null, name?: K.IdentifierKind | null): namedTypes.ExportSpecifier;
|
|
693
|
+
from(params: {
|
|
694
|
+
comments?: K.CommentKind[] | null;
|
|
695
|
+
exported: K.IdentifierKind;
|
|
696
|
+
id?: K.IdentifierKind | null;
|
|
697
|
+
loc?: K.SourceLocationKind | null;
|
|
698
|
+
local?: K.IdentifierKind | null;
|
|
699
|
+
name?: K.IdentifierKind | null;
|
|
700
|
+
}): namedTypes.ExportSpecifier;
|
|
701
|
+
}
|
|
702
|
+
export interface ExportDefaultDeclarationBuilder {
|
|
703
|
+
(declaration: K.DeclarationKind | K.ExpressionKind): namedTypes.ExportDefaultDeclaration;
|
|
704
|
+
from(params: {
|
|
705
|
+
comments?: K.CommentKind[] | null;
|
|
706
|
+
declaration: K.DeclarationKind | K.ExpressionKind;
|
|
707
|
+
loc?: K.SourceLocationKind | null;
|
|
708
|
+
}): namedTypes.ExportDefaultDeclaration;
|
|
709
|
+
}
|
|
710
|
+
export interface ExportAllDeclarationBuilder {
|
|
711
|
+
(source: K.LiteralKind, exported: K.IdentifierKind | null): namedTypes.ExportAllDeclaration;
|
|
712
|
+
from(params: {
|
|
713
|
+
comments?: K.CommentKind[] | null;
|
|
714
|
+
exported: K.IdentifierKind | null;
|
|
715
|
+
loc?: K.SourceLocationKind | null;
|
|
716
|
+
source: K.LiteralKind;
|
|
717
|
+
}): namedTypes.ExportAllDeclaration;
|
|
718
|
+
}
|
|
668
719
|
export interface TaggedTemplateExpressionBuilder {
|
|
669
720
|
(tag: K.ExpressionKind, quasi: K.TemplateLiteralKind): namedTypes.TaggedTemplateExpression;
|
|
670
721
|
from(params: {
|
|
@@ -685,7 +736,7 @@ export interface TemplateLiteralBuilder {
|
|
|
685
736
|
}
|
|
686
737
|
export interface TemplateElementBuilder {
|
|
687
738
|
(value: {
|
|
688
|
-
cooked: string;
|
|
739
|
+
cooked: string | null;
|
|
689
740
|
raw: string;
|
|
690
741
|
}, tail: boolean): namedTypes.TemplateElement;
|
|
691
742
|
from(params: {
|
|
@@ -693,11 +744,29 @@ export interface TemplateElementBuilder {
|
|
|
693
744
|
loc?: K.SourceLocationKind | null;
|
|
694
745
|
tail: boolean;
|
|
695
746
|
value: {
|
|
696
|
-
cooked: string;
|
|
747
|
+
cooked: string | null;
|
|
697
748
|
raw: string;
|
|
698
749
|
};
|
|
699
750
|
}): namedTypes.TemplateElement;
|
|
700
751
|
}
|
|
752
|
+
export interface MetaPropertyBuilder {
|
|
753
|
+
(meta: K.IdentifierKind, property: K.IdentifierKind): namedTypes.MetaProperty;
|
|
754
|
+
from(params: {
|
|
755
|
+
comments?: K.CommentKind[] | null;
|
|
756
|
+
loc?: K.SourceLocationKind | null;
|
|
757
|
+
meta: K.IdentifierKind;
|
|
758
|
+
property: K.IdentifierKind;
|
|
759
|
+
}): namedTypes.MetaProperty;
|
|
760
|
+
}
|
|
761
|
+
export interface AwaitExpressionBuilder {
|
|
762
|
+
(argument: K.ExpressionKind | null, all?: boolean): namedTypes.AwaitExpression;
|
|
763
|
+
from(params: {
|
|
764
|
+
all?: boolean;
|
|
765
|
+
argument: K.ExpressionKind | null;
|
|
766
|
+
comments?: K.CommentKind[] | null;
|
|
767
|
+
loc?: K.SourceLocationKind | null;
|
|
768
|
+
}): namedTypes.AwaitExpression;
|
|
769
|
+
}
|
|
701
770
|
export interface SpreadPropertyBuilder {
|
|
702
771
|
(argument: K.ExpressionKind): namedTypes.SpreadProperty;
|
|
703
772
|
from(params: {
|
|
@@ -714,15 +783,6 @@ export interface SpreadPropertyPatternBuilder {
|
|
|
714
783
|
loc?: K.SourceLocationKind | null;
|
|
715
784
|
}): namedTypes.SpreadPropertyPattern;
|
|
716
785
|
}
|
|
717
|
-
export interface AwaitExpressionBuilder {
|
|
718
|
-
(argument: K.ExpressionKind | null, all?: boolean): namedTypes.AwaitExpression;
|
|
719
|
-
from(params: {
|
|
720
|
-
all?: boolean;
|
|
721
|
-
argument: K.ExpressionKind | null;
|
|
722
|
-
comments?: K.CommentKind[] | null;
|
|
723
|
-
loc?: K.SourceLocationKind | null;
|
|
724
|
-
}): namedTypes.AwaitExpression;
|
|
725
|
-
}
|
|
726
786
|
export interface ImportExpressionBuilder {
|
|
727
787
|
(source: K.ExpressionKind): namedTypes.ImportExpression;
|
|
728
788
|
from(params: {
|
|
@@ -731,13 +791,43 @@ export interface ImportExpressionBuilder {
|
|
|
731
791
|
source: K.ExpressionKind;
|
|
732
792
|
}): namedTypes.ImportExpression;
|
|
733
793
|
}
|
|
794
|
+
export interface ChainExpressionBuilder {
|
|
795
|
+
(expression: K.ChainElementKind): namedTypes.ChainExpression;
|
|
796
|
+
from(params: {
|
|
797
|
+
comments?: K.CommentKind[] | null;
|
|
798
|
+
expression: K.ChainElementKind;
|
|
799
|
+
loc?: K.SourceLocationKind | null;
|
|
800
|
+
}): namedTypes.ChainExpression;
|
|
801
|
+
}
|
|
802
|
+
export interface OptionalCallExpressionBuilder {
|
|
803
|
+
(callee: K.ExpressionKind, argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[], optional?: boolean): namedTypes.OptionalCallExpression;
|
|
804
|
+
from(params: {
|
|
805
|
+
arguments: (K.ExpressionKind | K.SpreadElementKind)[];
|
|
806
|
+
callee: K.ExpressionKind;
|
|
807
|
+
comments?: K.CommentKind[] | null;
|
|
808
|
+
loc?: K.SourceLocationKind | null;
|
|
809
|
+
optional?: boolean;
|
|
810
|
+
typeArguments?: null | K.TypeParameterInstantiationKind;
|
|
811
|
+
}): namedTypes.OptionalCallExpression;
|
|
812
|
+
}
|
|
813
|
+
export interface OptionalMemberExpressionBuilder {
|
|
814
|
+
(object: K.ExpressionKind, property: K.IdentifierKind | K.ExpressionKind, computed?: boolean, optional?: boolean): namedTypes.OptionalMemberExpression;
|
|
815
|
+
from(params: {
|
|
816
|
+
comments?: K.CommentKind[] | null;
|
|
817
|
+
computed?: boolean;
|
|
818
|
+
loc?: K.SourceLocationKind | null;
|
|
819
|
+
object: K.ExpressionKind;
|
|
820
|
+
optional?: boolean;
|
|
821
|
+
property: K.IdentifierKind | K.ExpressionKind;
|
|
822
|
+
}): namedTypes.OptionalMemberExpression;
|
|
823
|
+
}
|
|
734
824
|
export interface JSXAttributeBuilder {
|
|
735
|
-
(name: K.JSXIdentifierKind | K.JSXNamespacedNameKind, value?: K.LiteralKind | K.JSXExpressionContainerKind | null): namedTypes.JSXAttribute;
|
|
825
|
+
(name: K.JSXIdentifierKind | K.JSXNamespacedNameKind, value?: K.LiteralKind | K.JSXExpressionContainerKind | K.JSXElementKind | K.JSXFragmentKind | null): namedTypes.JSXAttribute;
|
|
736
826
|
from(params: {
|
|
737
827
|
comments?: K.CommentKind[] | null;
|
|
738
828
|
loc?: K.SourceLocationKind | null;
|
|
739
829
|
name: K.JSXIdentifierKind | K.JSXNamespacedNameKind;
|
|
740
|
-
value?: K.LiteralKind | K.JSXExpressionContainerKind | null;
|
|
830
|
+
value?: K.LiteralKind | K.JSXExpressionContainerKind | K.JSXElementKind | K.JSXFragmentKind | null;
|
|
741
831
|
}): namedTypes.JSXAttribute;
|
|
742
832
|
}
|
|
743
833
|
export interface JSXIdentifierBuilder {
|
|
@@ -760,13 +850,36 @@ export interface JSXNamespacedNameBuilder {
|
|
|
760
850
|
}): namedTypes.JSXNamespacedName;
|
|
761
851
|
}
|
|
762
852
|
export interface JSXExpressionContainerBuilder {
|
|
763
|
-
(expression: K.ExpressionKind): namedTypes.JSXExpressionContainer;
|
|
853
|
+
(expression: K.ExpressionKind | K.JSXEmptyExpressionKind): namedTypes.JSXExpressionContainer;
|
|
764
854
|
from(params: {
|
|
765
855
|
comments?: K.CommentKind[] | null;
|
|
766
|
-
expression: K.ExpressionKind;
|
|
856
|
+
expression: K.ExpressionKind | K.JSXEmptyExpressionKind;
|
|
767
857
|
loc?: K.SourceLocationKind | null;
|
|
768
858
|
}): namedTypes.JSXExpressionContainer;
|
|
769
859
|
}
|
|
860
|
+
export interface JSXElementBuilder {
|
|
861
|
+
(openingElement: K.JSXOpeningElementKind, closingElement?: K.JSXClosingElementKind | null, children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[]): namedTypes.JSXElement;
|
|
862
|
+
from(params: {
|
|
863
|
+
attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[];
|
|
864
|
+
children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[];
|
|
865
|
+
closingElement?: K.JSXClosingElementKind | null;
|
|
866
|
+
comments?: K.CommentKind[] | null;
|
|
867
|
+
loc?: K.SourceLocationKind | null;
|
|
868
|
+
name?: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind;
|
|
869
|
+
openingElement: K.JSXOpeningElementKind;
|
|
870
|
+
selfClosing?: boolean;
|
|
871
|
+
}): namedTypes.JSXElement;
|
|
872
|
+
}
|
|
873
|
+
export interface JSXFragmentBuilder {
|
|
874
|
+
(openingFragment: K.JSXOpeningFragmentKind, closingFragment: K.JSXClosingFragmentKind, children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[]): namedTypes.JSXFragment;
|
|
875
|
+
from(params: {
|
|
876
|
+
children?: (K.JSXTextKind | K.JSXExpressionContainerKind | K.JSXSpreadChildKind | K.JSXElementKind | K.JSXFragmentKind | K.LiteralKind)[];
|
|
877
|
+
closingFragment: K.JSXClosingFragmentKind;
|
|
878
|
+
comments?: K.CommentKind[] | null;
|
|
879
|
+
loc?: K.SourceLocationKind | null;
|
|
880
|
+
openingFragment: K.JSXOpeningFragmentKind;
|
|
881
|
+
}): namedTypes.JSXFragment;
|
|
882
|
+
}
|
|
770
883
|
export interface JSXMemberExpressionBuilder {
|
|
771
884
|
(object: K.JSXIdentifierKind | K.JSXMemberExpressionKind, property: K.JSXIdentifierKind): namedTypes.JSXMemberExpression;
|
|
772
885
|
from(params: {
|
|
@@ -774,6 +887,7 @@ export interface JSXMemberExpressionBuilder {
|
|
|
774
887
|
computed?: boolean;
|
|
775
888
|
loc?: K.SourceLocationKind | null;
|
|
776
889
|
object: K.JSXIdentifierKind | K.JSXMemberExpressionKind;
|
|
890
|
+
optional?: boolean;
|
|
777
891
|
property: K.JSXIdentifierKind;
|
|
778
892
|
}): namedTypes.JSXMemberExpression;
|
|
779
893
|
}
|
|
@@ -785,18 +899,33 @@ export interface JSXSpreadAttributeBuilder {
|
|
|
785
899
|
loc?: K.SourceLocationKind | null;
|
|
786
900
|
}): namedTypes.JSXSpreadAttribute;
|
|
787
901
|
}
|
|
788
|
-
export interface
|
|
789
|
-
(
|
|
902
|
+
export interface JSXEmptyExpressionBuilder {
|
|
903
|
+
(): namedTypes.JSXEmptyExpression;
|
|
790
904
|
from(params: {
|
|
791
|
-
attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[];
|
|
792
|
-
children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[];
|
|
793
|
-
closingElement?: K.JSXClosingElementKind | null;
|
|
794
905
|
comments?: K.CommentKind[] | null;
|
|
795
906
|
loc?: K.SourceLocationKind | null;
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
907
|
+
}): namedTypes.JSXEmptyExpression;
|
|
908
|
+
}
|
|
909
|
+
export interface JSXTextBuilder {
|
|
910
|
+
(value: string, raw?: string): namedTypes.JSXText;
|
|
911
|
+
from(params: {
|
|
912
|
+
comments?: K.CommentKind[] | null;
|
|
913
|
+
loc?: K.SourceLocationKind | null;
|
|
914
|
+
raw?: string;
|
|
915
|
+
regex?: {
|
|
916
|
+
pattern: string;
|
|
917
|
+
flags: string;
|
|
918
|
+
} | null;
|
|
919
|
+
value: string;
|
|
920
|
+
}): namedTypes.JSXText;
|
|
921
|
+
}
|
|
922
|
+
export interface JSXSpreadChildBuilder {
|
|
923
|
+
(expression: K.ExpressionKind): namedTypes.JSXSpreadChild;
|
|
924
|
+
from(params: {
|
|
925
|
+
comments?: K.CommentKind[] | null;
|
|
926
|
+
expression: K.ExpressionKind;
|
|
927
|
+
loc?: K.SourceLocationKind | null;
|
|
928
|
+
}): namedTypes.JSXSpreadChild;
|
|
800
929
|
}
|
|
801
930
|
export interface JSXOpeningElementBuilder {
|
|
802
931
|
(name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind, attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[], selfClosing?: boolean): namedTypes.JSXOpeningElement;
|
|
@@ -816,28 +945,6 @@ export interface JSXClosingElementBuilder {
|
|
|
816
945
|
name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind;
|
|
817
946
|
}): namedTypes.JSXClosingElement;
|
|
818
947
|
}
|
|
819
|
-
export interface JSXFragmentBuilder {
|
|
820
|
-
(openingElement: K.JSXOpeningFragmentKind, closingElement: K.JSXClosingFragmentKind, children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]): namedTypes.JSXFragment;
|
|
821
|
-
from(params: {
|
|
822
|
-
children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[];
|
|
823
|
-
closingElement: K.JSXClosingFragmentKind;
|
|
824
|
-
comments?: K.CommentKind[] | null;
|
|
825
|
-
loc?: K.SourceLocationKind | null;
|
|
826
|
-
openingElement: K.JSXOpeningFragmentKind;
|
|
827
|
-
}): namedTypes.JSXFragment;
|
|
828
|
-
}
|
|
829
|
-
export interface JSXTextBuilder {
|
|
830
|
-
(value: string): namedTypes.JSXText;
|
|
831
|
-
from(params: {
|
|
832
|
-
comments?: K.CommentKind[] | null;
|
|
833
|
-
loc?: K.SourceLocationKind | null;
|
|
834
|
-
regex?: {
|
|
835
|
-
pattern: string;
|
|
836
|
-
flags: string;
|
|
837
|
-
} | null;
|
|
838
|
-
value: string;
|
|
839
|
-
}): namedTypes.JSXText;
|
|
840
|
-
}
|
|
841
948
|
export interface JSXOpeningFragmentBuilder {
|
|
842
949
|
(): namedTypes.JSXOpeningFragment;
|
|
843
950
|
from(params: {
|
|
@@ -852,20 +959,35 @@ export interface JSXClosingFragmentBuilder {
|
|
|
852
959
|
loc?: K.SourceLocationKind | null;
|
|
853
960
|
}): namedTypes.JSXClosingFragment;
|
|
854
961
|
}
|
|
855
|
-
export interface
|
|
856
|
-
(): namedTypes.
|
|
962
|
+
export interface DecoratorBuilder {
|
|
963
|
+
(expression: K.ExpressionKind): namedTypes.Decorator;
|
|
857
964
|
from(params: {
|
|
858
965
|
comments?: K.CommentKind[] | null;
|
|
966
|
+
expression: K.ExpressionKind;
|
|
859
967
|
loc?: K.SourceLocationKind | null;
|
|
860
|
-
}): namedTypes.
|
|
968
|
+
}): namedTypes.Decorator;
|
|
861
969
|
}
|
|
862
|
-
export interface
|
|
863
|
-
(
|
|
970
|
+
export interface PrivateNameBuilder {
|
|
971
|
+
(id: K.IdentifierKind): namedTypes.PrivateName;
|
|
864
972
|
from(params: {
|
|
865
973
|
comments?: K.CommentKind[] | null;
|
|
866
|
-
|
|
974
|
+
id: K.IdentifierKind;
|
|
867
975
|
loc?: K.SourceLocationKind | null;
|
|
868
|
-
}): namedTypes.
|
|
976
|
+
}): namedTypes.PrivateName;
|
|
977
|
+
}
|
|
978
|
+
export interface ClassPrivatePropertyBuilder {
|
|
979
|
+
(key: K.PrivateNameKind, value?: K.ExpressionKind | null): namedTypes.ClassPrivateProperty;
|
|
980
|
+
from(params: {
|
|
981
|
+
access?: "public" | "private" | "protected" | undefined;
|
|
982
|
+
comments?: K.CommentKind[] | null;
|
|
983
|
+
computed?: boolean;
|
|
984
|
+
key: K.PrivateNameKind;
|
|
985
|
+
loc?: K.SourceLocationKind | null;
|
|
986
|
+
static?: boolean;
|
|
987
|
+
typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
988
|
+
value?: K.ExpressionKind | null;
|
|
989
|
+
variance?: K.VarianceKind | "plus" | "minus" | null;
|
|
990
|
+
}): namedTypes.ClassPrivateProperty;
|
|
869
991
|
}
|
|
870
992
|
export interface TypeParameterDeclarationBuilder {
|
|
871
993
|
(params: K.TypeParameterKind[]): namedTypes.TypeParameterDeclaration;
|
|
@@ -946,6 +1068,13 @@ export interface VoidTypeAnnotationBuilder {
|
|
|
946
1068
|
loc?: K.SourceLocationKind | null;
|
|
947
1069
|
}): namedTypes.VoidTypeAnnotation;
|
|
948
1070
|
}
|
|
1071
|
+
export interface SymbolTypeAnnotationBuilder {
|
|
1072
|
+
(): namedTypes.SymbolTypeAnnotation;
|
|
1073
|
+
from(params: {
|
|
1074
|
+
comments?: K.CommentKind[] | null;
|
|
1075
|
+
loc?: K.SourceLocationKind | null;
|
|
1076
|
+
}): namedTypes.SymbolTypeAnnotation;
|
|
1077
|
+
}
|
|
949
1078
|
export interface NumberTypeAnnotationBuilder {
|
|
950
1079
|
(): namedTypes.NumberTypeAnnotation;
|
|
951
1080
|
from(params: {
|
|
@@ -953,6 +1082,13 @@ export interface NumberTypeAnnotationBuilder {
|
|
|
953
1082
|
loc?: K.SourceLocationKind | null;
|
|
954
1083
|
}): namedTypes.NumberTypeAnnotation;
|
|
955
1084
|
}
|
|
1085
|
+
export interface BigIntTypeAnnotationBuilder {
|
|
1086
|
+
(): namedTypes.BigIntTypeAnnotation;
|
|
1087
|
+
from(params: {
|
|
1088
|
+
comments?: K.CommentKind[] | null;
|
|
1089
|
+
loc?: K.SourceLocationKind | null;
|
|
1090
|
+
}): namedTypes.BigIntTypeAnnotation;
|
|
1091
|
+
}
|
|
956
1092
|
export interface NumberLiteralTypeAnnotationBuilder {
|
|
957
1093
|
(value: number, raw: string): namedTypes.NumberLiteralTypeAnnotation;
|
|
958
1094
|
from(params: {
|
|
@@ -971,6 +1107,15 @@ export interface NumericLiteralTypeAnnotationBuilder {
|
|
|
971
1107
|
value: number;
|
|
972
1108
|
}): namedTypes.NumericLiteralTypeAnnotation;
|
|
973
1109
|
}
|
|
1110
|
+
export interface BigIntLiteralTypeAnnotationBuilder {
|
|
1111
|
+
(value: null, raw: string): namedTypes.BigIntLiteralTypeAnnotation;
|
|
1112
|
+
from(params: {
|
|
1113
|
+
comments?: K.CommentKind[] | null;
|
|
1114
|
+
loc?: K.SourceLocationKind | null;
|
|
1115
|
+
raw: string;
|
|
1116
|
+
value: null;
|
|
1117
|
+
}): namedTypes.BigIntLiteralTypeAnnotation;
|
|
1118
|
+
}
|
|
974
1119
|
export interface StringTypeAnnotationBuilder {
|
|
975
1120
|
(): namedTypes.StringTypeAnnotation;
|
|
976
1121
|
from(params: {
|
|
@@ -1058,11 +1203,11 @@ export interface FunctionTypeAnnotationBuilder {
|
|
|
1058
1203
|
}): namedTypes.FunctionTypeAnnotation;
|
|
1059
1204
|
}
|
|
1060
1205
|
export interface FunctionTypeParamBuilder {
|
|
1061
|
-
(name: K.IdentifierKind, typeAnnotation: K.FlowTypeKind, optional: boolean): namedTypes.FunctionTypeParam;
|
|
1206
|
+
(name: K.IdentifierKind | null, typeAnnotation: K.FlowTypeKind, optional: boolean): namedTypes.FunctionTypeParam;
|
|
1062
1207
|
from(params: {
|
|
1063
1208
|
comments?: K.CommentKind[] | null;
|
|
1064
1209
|
loc?: K.SourceLocationKind | null;
|
|
1065
|
-
name: K.IdentifierKind;
|
|
1210
|
+
name: K.IdentifierKind | null;
|
|
1066
1211
|
optional: boolean;
|
|
1067
1212
|
typeAnnotation: K.FlowTypeKind;
|
|
1068
1213
|
}): namedTypes.FunctionTypeParam;
|
|
@@ -1114,6 +1259,7 @@ export interface ObjectTypeIndexerBuilder {
|
|
|
1114
1259
|
id: K.IdentifierKind;
|
|
1115
1260
|
key: K.FlowTypeKind;
|
|
1116
1261
|
loc?: K.SourceLocationKind | null;
|
|
1262
|
+
static?: boolean;
|
|
1117
1263
|
value: K.FlowTypeKind;
|
|
1118
1264
|
variance?: K.VarianceKind | "plus" | "minus" | null;
|
|
1119
1265
|
}): namedTypes.ObjectTypeIndexer;
|
|
@@ -1199,10 +1345,11 @@ export interface TypeofTypeAnnotationBuilder {
|
|
|
1199
1345
|
}): namedTypes.TypeofTypeAnnotation;
|
|
1200
1346
|
}
|
|
1201
1347
|
export interface TypeParameterBuilder {
|
|
1202
|
-
(name: string, variance?: K.VarianceKind | "plus" | "minus" | null, bound?: K.TypeAnnotationKind | null): namedTypes.TypeParameter;
|
|
1348
|
+
(name: string, variance?: K.VarianceKind | "plus" | "minus" | null, bound?: K.TypeAnnotationKind | null, defaultParam?: K.FlowTypeKind | null): namedTypes.TypeParameter;
|
|
1203
1349
|
from(params: {
|
|
1204
1350
|
bound?: K.TypeAnnotationKind | null;
|
|
1205
1351
|
comments?: K.CommentKind[] | null;
|
|
1352
|
+
default?: K.FlowTypeKind | null;
|
|
1206
1353
|
loc?: K.SourceLocationKind | null;
|
|
1207
1354
|
name: string;
|
|
1208
1355
|
variance?: K.VarianceKind | "plus" | "minus" | null;
|
|
@@ -1258,34 +1405,35 @@ export interface TypeAliasBuilder {
|
|
|
1258
1405
|
typeParameters: K.TypeParameterDeclarationKind | null;
|
|
1259
1406
|
}): namedTypes.TypeAlias;
|
|
1260
1407
|
}
|
|
1261
|
-
export interface
|
|
1262
|
-
(id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null,
|
|
1408
|
+
export interface DeclareTypeAliasBuilder {
|
|
1409
|
+
(id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, right: K.FlowTypeKind): namedTypes.DeclareTypeAlias;
|
|
1263
1410
|
from(params: {
|
|
1264
1411
|
comments?: K.CommentKind[] | null;
|
|
1265
1412
|
id: K.IdentifierKind;
|
|
1266
|
-
impltype: K.FlowTypeKind;
|
|
1267
1413
|
loc?: K.SourceLocationKind | null;
|
|
1268
|
-
|
|
1414
|
+
right: K.FlowTypeKind;
|
|
1269
1415
|
typeParameters: K.TypeParameterDeclarationKind | null;
|
|
1270
|
-
}): namedTypes.
|
|
1416
|
+
}): namedTypes.DeclareTypeAlias;
|
|
1271
1417
|
}
|
|
1272
|
-
export interface
|
|
1273
|
-
(id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null,
|
|
1418
|
+
export interface OpaqueTypeBuilder {
|
|
1419
|
+
(id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, impltype: K.FlowTypeKind, supertype: K.FlowTypeKind | null): namedTypes.OpaqueType;
|
|
1274
1420
|
from(params: {
|
|
1275
1421
|
comments?: K.CommentKind[] | null;
|
|
1276
1422
|
id: K.IdentifierKind;
|
|
1423
|
+
impltype: K.FlowTypeKind;
|
|
1277
1424
|
loc?: K.SourceLocationKind | null;
|
|
1278
|
-
|
|
1425
|
+
supertype: K.FlowTypeKind | null;
|
|
1279
1426
|
typeParameters: K.TypeParameterDeclarationKind | null;
|
|
1280
|
-
}): namedTypes.
|
|
1427
|
+
}): namedTypes.OpaqueType;
|
|
1281
1428
|
}
|
|
1282
1429
|
export interface DeclareOpaqueTypeBuilder {
|
|
1283
|
-
(id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null): namedTypes.DeclareOpaqueType;
|
|
1430
|
+
(id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, supertype: K.FlowTypeKind | null): namedTypes.DeclareOpaqueType;
|
|
1284
1431
|
from(params: {
|
|
1285
1432
|
comments?: K.CommentKind[] | null;
|
|
1286
1433
|
id: K.IdentifierKind;
|
|
1434
|
+
impltype: K.FlowTypeKind | null;
|
|
1287
1435
|
loc?: K.SourceLocationKind | null;
|
|
1288
|
-
|
|
1436
|
+
supertype: K.FlowTypeKind | null;
|
|
1289
1437
|
typeParameters: K.TypeParameterDeclarationKind | null;
|
|
1290
1438
|
}): namedTypes.DeclareOpaqueType;
|
|
1291
1439
|
}
|
|
@@ -1320,6 +1468,7 @@ export interface DeclareFunctionBuilder {
|
|
|
1320
1468
|
comments?: K.CommentKind[] | null;
|
|
1321
1469
|
id: K.IdentifierKind;
|
|
1322
1470
|
loc?: K.SourceLocationKind | null;
|
|
1471
|
+
predicate?: K.FlowPredicateKind | null;
|
|
1323
1472
|
}): namedTypes.DeclareFunction;
|
|
1324
1473
|
}
|
|
1325
1474
|
export interface DeclareClassBuilder {
|
|
@@ -1351,27 +1500,16 @@ export interface DeclareModuleExportsBuilder {
|
|
|
1351
1500
|
}): namedTypes.DeclareModuleExports;
|
|
1352
1501
|
}
|
|
1353
1502
|
export interface DeclareExportDeclarationBuilder {
|
|
1354
|
-
(defaultParam: boolean, declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | null, specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[], source?: K.LiteralKind | null): namedTypes.DeclareExportDeclaration;
|
|
1503
|
+
(defaultParam: boolean, declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | K.TypeAliasKind | K.DeclareOpaqueTypeKind | K.InterfaceDeclarationKind | null, specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[], source?: K.LiteralKind | null): namedTypes.DeclareExportDeclaration;
|
|
1355
1504
|
from(params: {
|
|
1356
1505
|
comments?: K.CommentKind[] | null;
|
|
1357
|
-
declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | null;
|
|
1506
|
+
declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | K.TypeAliasKind | K.DeclareOpaqueTypeKind | K.InterfaceDeclarationKind | null;
|
|
1358
1507
|
default: boolean;
|
|
1359
1508
|
loc?: K.SourceLocationKind | null;
|
|
1360
1509
|
source?: K.LiteralKind | null;
|
|
1361
1510
|
specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[];
|
|
1362
1511
|
}): namedTypes.DeclareExportDeclaration;
|
|
1363
1512
|
}
|
|
1364
|
-
export interface ExportSpecifierBuilder {
|
|
1365
|
-
(local: K.IdentifierKind | null | undefined, exported: K.IdentifierKind): namedTypes.ExportSpecifier;
|
|
1366
|
-
from(params: {
|
|
1367
|
-
comments?: K.CommentKind[] | null;
|
|
1368
|
-
exported: K.IdentifierKind;
|
|
1369
|
-
id?: K.IdentifierKind | null;
|
|
1370
|
-
loc?: K.SourceLocationKind | null;
|
|
1371
|
-
local?: K.IdentifierKind | null;
|
|
1372
|
-
name?: K.IdentifierKind | null;
|
|
1373
|
-
}): namedTypes.ExportSpecifier;
|
|
1374
|
-
}
|
|
1375
1513
|
export interface ExportBatchSpecifierBuilder {
|
|
1376
1514
|
(): namedTypes.ExportBatchSpecifier;
|
|
1377
1515
|
from(params: {
|
|
@@ -1402,6 +1540,69 @@ export interface DeclaredPredicateBuilder {
|
|
|
1402
1540
|
value: K.ExpressionKind;
|
|
1403
1541
|
}): namedTypes.DeclaredPredicate;
|
|
1404
1542
|
}
|
|
1543
|
+
export interface EnumDeclarationBuilder {
|
|
1544
|
+
(id: K.IdentifierKind, body: K.EnumBooleanBodyKind | K.EnumNumberBodyKind | K.EnumStringBodyKind | K.EnumSymbolBodyKind): namedTypes.EnumDeclaration;
|
|
1545
|
+
from(params: {
|
|
1546
|
+
body: K.EnumBooleanBodyKind | K.EnumNumberBodyKind | K.EnumStringBodyKind | K.EnumSymbolBodyKind;
|
|
1547
|
+
comments?: K.CommentKind[] | null;
|
|
1548
|
+
id: K.IdentifierKind;
|
|
1549
|
+
loc?: K.SourceLocationKind | null;
|
|
1550
|
+
}): namedTypes.EnumDeclaration;
|
|
1551
|
+
}
|
|
1552
|
+
export interface EnumBooleanBodyBuilder {
|
|
1553
|
+
(members: K.EnumBooleanMemberKind[], explicitType: boolean): namedTypes.EnumBooleanBody;
|
|
1554
|
+
from(params: {
|
|
1555
|
+
explicitType: boolean;
|
|
1556
|
+
members: K.EnumBooleanMemberKind[];
|
|
1557
|
+
}): namedTypes.EnumBooleanBody;
|
|
1558
|
+
}
|
|
1559
|
+
export interface EnumNumberBodyBuilder {
|
|
1560
|
+
(members: K.EnumNumberMemberKind[], explicitType: boolean): namedTypes.EnumNumberBody;
|
|
1561
|
+
from(params: {
|
|
1562
|
+
explicitType: boolean;
|
|
1563
|
+
members: K.EnumNumberMemberKind[];
|
|
1564
|
+
}): namedTypes.EnumNumberBody;
|
|
1565
|
+
}
|
|
1566
|
+
export interface EnumStringBodyBuilder {
|
|
1567
|
+
(members: K.EnumStringMemberKind[] | K.EnumDefaultedMemberKind[], explicitType: boolean): namedTypes.EnumStringBody;
|
|
1568
|
+
from(params: {
|
|
1569
|
+
explicitType: boolean;
|
|
1570
|
+
members: K.EnumStringMemberKind[] | K.EnumDefaultedMemberKind[];
|
|
1571
|
+
}): namedTypes.EnumStringBody;
|
|
1572
|
+
}
|
|
1573
|
+
export interface EnumSymbolBodyBuilder {
|
|
1574
|
+
(members: K.EnumDefaultedMemberKind[]): namedTypes.EnumSymbolBody;
|
|
1575
|
+
from(params: {
|
|
1576
|
+
members: K.EnumDefaultedMemberKind[];
|
|
1577
|
+
}): namedTypes.EnumSymbolBody;
|
|
1578
|
+
}
|
|
1579
|
+
export interface EnumBooleanMemberBuilder {
|
|
1580
|
+
(id: K.IdentifierKind, init: K.LiteralKind | boolean): namedTypes.EnumBooleanMember;
|
|
1581
|
+
from(params: {
|
|
1582
|
+
id: K.IdentifierKind;
|
|
1583
|
+
init: K.LiteralKind | boolean;
|
|
1584
|
+
}): namedTypes.EnumBooleanMember;
|
|
1585
|
+
}
|
|
1586
|
+
export interface EnumNumberMemberBuilder {
|
|
1587
|
+
(id: K.IdentifierKind, init: K.LiteralKind): namedTypes.EnumNumberMember;
|
|
1588
|
+
from(params: {
|
|
1589
|
+
id: K.IdentifierKind;
|
|
1590
|
+
init: K.LiteralKind;
|
|
1591
|
+
}): namedTypes.EnumNumberMember;
|
|
1592
|
+
}
|
|
1593
|
+
export interface EnumStringMemberBuilder {
|
|
1594
|
+
(id: K.IdentifierKind, init: K.LiteralKind): namedTypes.EnumStringMember;
|
|
1595
|
+
from(params: {
|
|
1596
|
+
id: K.IdentifierKind;
|
|
1597
|
+
init: K.LiteralKind;
|
|
1598
|
+
}): namedTypes.EnumStringMember;
|
|
1599
|
+
}
|
|
1600
|
+
export interface EnumDefaultedMemberBuilder {
|
|
1601
|
+
(id: K.IdentifierKind): namedTypes.EnumDefaultedMember;
|
|
1602
|
+
from(params: {
|
|
1603
|
+
id: K.IdentifierKind;
|
|
1604
|
+
}): namedTypes.EnumDefaultedMember;
|
|
1605
|
+
}
|
|
1405
1606
|
export interface ExportDeclarationBuilder {
|
|
1406
1607
|
(defaultParam: boolean, declaration: K.DeclarationKind | K.ExpressionKind | null, specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[], source?: K.LiteralKind | null): namedTypes.ExportDeclaration;
|
|
1407
1608
|
from(params: {
|
|
@@ -1446,13 +1647,6 @@ export interface DoExpressionBuilder {
|
|
|
1446
1647
|
loc?: K.SourceLocationKind | null;
|
|
1447
1648
|
}): namedTypes.DoExpression;
|
|
1448
1649
|
}
|
|
1449
|
-
export interface SuperBuilder {
|
|
1450
|
-
(): namedTypes.Super;
|
|
1451
|
-
from(params: {
|
|
1452
|
-
comments?: K.CommentKind[] | null;
|
|
1453
|
-
loc?: K.SourceLocationKind | null;
|
|
1454
|
-
}): namedTypes.Super;
|
|
1455
|
-
}
|
|
1456
1650
|
export interface BindExpressionBuilder {
|
|
1457
1651
|
(object: K.ExpressionKind | null, callee: K.ExpressionKind): namedTypes.BindExpression;
|
|
1458
1652
|
from(params: {
|
|
@@ -1462,23 +1656,6 @@ export interface BindExpressionBuilder {
|
|
|
1462
1656
|
object: K.ExpressionKind | null;
|
|
1463
1657
|
}): namedTypes.BindExpression;
|
|
1464
1658
|
}
|
|
1465
|
-
export interface DecoratorBuilder {
|
|
1466
|
-
(expression: K.ExpressionKind): namedTypes.Decorator;
|
|
1467
|
-
from(params: {
|
|
1468
|
-
comments?: K.CommentKind[] | null;
|
|
1469
|
-
expression: K.ExpressionKind;
|
|
1470
|
-
loc?: K.SourceLocationKind | null;
|
|
1471
|
-
}): namedTypes.Decorator;
|
|
1472
|
-
}
|
|
1473
|
-
export interface MetaPropertyBuilder {
|
|
1474
|
-
(meta: K.IdentifierKind, property: K.IdentifierKind): namedTypes.MetaProperty;
|
|
1475
|
-
from(params: {
|
|
1476
|
-
comments?: K.CommentKind[] | null;
|
|
1477
|
-
loc?: K.SourceLocationKind | null;
|
|
1478
|
-
meta: K.IdentifierKind;
|
|
1479
|
-
property: K.IdentifierKind;
|
|
1480
|
-
}): namedTypes.MetaProperty;
|
|
1481
|
-
}
|
|
1482
1659
|
export interface ParenthesizedExpressionBuilder {
|
|
1483
1660
|
(expression: K.ExpressionKind): namedTypes.ParenthesizedExpression;
|
|
1484
1661
|
from(params: {
|
|
@@ -1487,24 +1664,6 @@ export interface ParenthesizedExpressionBuilder {
|
|
|
1487
1664
|
loc?: K.SourceLocationKind | null;
|
|
1488
1665
|
}): namedTypes.ParenthesizedExpression;
|
|
1489
1666
|
}
|
|
1490
|
-
export interface ExportDefaultDeclarationBuilder {
|
|
1491
|
-
(declaration: K.DeclarationKind | K.ExpressionKind): namedTypes.ExportDefaultDeclaration;
|
|
1492
|
-
from(params: {
|
|
1493
|
-
comments?: K.CommentKind[] | null;
|
|
1494
|
-
declaration: K.DeclarationKind | K.ExpressionKind;
|
|
1495
|
-
loc?: K.SourceLocationKind | null;
|
|
1496
|
-
}): namedTypes.ExportDefaultDeclaration;
|
|
1497
|
-
}
|
|
1498
|
-
export interface ExportNamedDeclarationBuilder {
|
|
1499
|
-
(declaration: K.DeclarationKind | null, specifiers?: K.ExportSpecifierKind[], source?: K.LiteralKind | null): namedTypes.ExportNamedDeclaration;
|
|
1500
|
-
from(params: {
|
|
1501
|
-
comments?: K.CommentKind[] | null;
|
|
1502
|
-
declaration: K.DeclarationKind | null;
|
|
1503
|
-
loc?: K.SourceLocationKind | null;
|
|
1504
|
-
source?: K.LiteralKind | null;
|
|
1505
|
-
specifiers?: K.ExportSpecifierKind[];
|
|
1506
|
-
}): namedTypes.ExportNamedDeclaration;
|
|
1507
|
-
}
|
|
1508
1667
|
export interface ExportNamespaceSpecifierBuilder {
|
|
1509
1668
|
(exported: K.IdentifierKind): namedTypes.ExportNamespaceSpecifier;
|
|
1510
1669
|
from(params: {
|
|
@@ -1521,15 +1680,6 @@ export interface ExportDefaultSpecifierBuilder {
|
|
|
1521
1680
|
loc?: K.SourceLocationKind | null;
|
|
1522
1681
|
}): namedTypes.ExportDefaultSpecifier;
|
|
1523
1682
|
}
|
|
1524
|
-
export interface ExportAllDeclarationBuilder {
|
|
1525
|
-
(exported: K.IdentifierKind | null, source: K.LiteralKind): namedTypes.ExportAllDeclaration;
|
|
1526
|
-
from(params: {
|
|
1527
|
-
comments?: K.CommentKind[] | null;
|
|
1528
|
-
exported: K.IdentifierKind | null;
|
|
1529
|
-
loc?: K.SourceLocationKind | null;
|
|
1530
|
-
source: K.LiteralKind;
|
|
1531
|
-
}): namedTypes.ExportAllDeclaration;
|
|
1532
|
-
}
|
|
1533
1683
|
export interface CommentBlockBuilder {
|
|
1534
1684
|
(value: string, leading?: boolean, trailing?: boolean): namedTypes.CommentBlock;
|
|
1535
1685
|
from(params: {
|
|
@@ -1672,25 +1822,12 @@ export interface ObjectMethodBuilder {
|
|
|
1672
1822
|
kind: "method" | "get" | "set";
|
|
1673
1823
|
loc?: K.SourceLocationKind | null;
|
|
1674
1824
|
params: K.PatternKind[];
|
|
1825
|
+
predicate?: K.FlowPredicateKind | null;
|
|
1675
1826
|
rest?: K.IdentifierKind | null;
|
|
1676
1827
|
returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
1677
1828
|
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
1678
1829
|
}): namedTypes.ObjectMethod;
|
|
1679
1830
|
}
|
|
1680
|
-
export interface ClassPrivatePropertyBuilder {
|
|
1681
|
-
(key: K.PrivateNameKind, value?: K.ExpressionKind | null): namedTypes.ClassPrivateProperty;
|
|
1682
|
-
from(params: {
|
|
1683
|
-
access?: "public" | "private" | "protected" | undefined;
|
|
1684
|
-
comments?: K.CommentKind[] | null;
|
|
1685
|
-
computed?: boolean;
|
|
1686
|
-
key: K.PrivateNameKind;
|
|
1687
|
-
loc?: K.SourceLocationKind | null;
|
|
1688
|
-
static?: boolean;
|
|
1689
|
-
typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
1690
|
-
value?: K.ExpressionKind | null;
|
|
1691
|
-
variance?: K.VarianceKind | "plus" | "minus" | null;
|
|
1692
|
-
}): namedTypes.ClassPrivateProperty;
|
|
1693
|
-
}
|
|
1694
1831
|
export interface ClassMethodBuilder {
|
|
1695
1832
|
(kind: "get" | "set" | "method" | "constructor" | undefined, key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, params: K.PatternKind[], body: K.BlockStatementKind, computed?: boolean, staticParam?: boolean | null): namedTypes.ClassMethod;
|
|
1696
1833
|
from(params: {
|
|
@@ -1711,6 +1848,7 @@ export interface ClassMethodBuilder {
|
|
|
1711
1848
|
loc?: K.SourceLocationKind | null;
|
|
1712
1849
|
optional?: boolean | null;
|
|
1713
1850
|
params: K.PatternKind[];
|
|
1851
|
+
predicate?: K.FlowPredicateKind | null;
|
|
1714
1852
|
rest?: K.IdentifierKind | null;
|
|
1715
1853
|
returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
1716
1854
|
static?: boolean | null;
|
|
@@ -1737,20 +1875,13 @@ export interface ClassPrivateMethodBuilder {
|
|
|
1737
1875
|
loc?: K.SourceLocationKind | null;
|
|
1738
1876
|
optional?: boolean | null;
|
|
1739
1877
|
params: K.PatternKind[];
|
|
1878
|
+
predicate?: K.FlowPredicateKind | null;
|
|
1740
1879
|
rest?: K.IdentifierKind | null;
|
|
1741
1880
|
returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
1742
1881
|
static?: boolean | null;
|
|
1743
1882
|
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
1744
1883
|
}): namedTypes.ClassPrivateMethod;
|
|
1745
1884
|
}
|
|
1746
|
-
export interface PrivateNameBuilder {
|
|
1747
|
-
(id: K.IdentifierKind): namedTypes.PrivateName;
|
|
1748
|
-
from(params: {
|
|
1749
|
-
comments?: K.CommentKind[] | null;
|
|
1750
|
-
id: K.IdentifierKind;
|
|
1751
|
-
loc?: K.SourceLocationKind | null;
|
|
1752
|
-
}): namedTypes.PrivateName;
|
|
1753
|
-
}
|
|
1754
1885
|
export interface RestPropertyBuilder {
|
|
1755
1886
|
(argument: K.ExpressionKind): namedTypes.RestProperty;
|
|
1756
1887
|
from(params: {
|
|
@@ -2043,13 +2174,23 @@ export interface TSMappedTypeBuilder {
|
|
|
2043
2174
|
}): namedTypes.TSMappedType;
|
|
2044
2175
|
}
|
|
2045
2176
|
export interface TSTupleTypeBuilder {
|
|
2046
|
-
(elementTypes: K.TSTypeKind[]): namedTypes.TSTupleType;
|
|
2177
|
+
(elementTypes: (K.TSTypeKind | K.TSNamedTupleMemberKind)[]): namedTypes.TSTupleType;
|
|
2047
2178
|
from(params: {
|
|
2048
2179
|
comments?: K.CommentKind[] | null;
|
|
2049
|
-
elementTypes: K.TSTypeKind[];
|
|
2180
|
+
elementTypes: (K.TSTypeKind | K.TSNamedTupleMemberKind)[];
|
|
2050
2181
|
loc?: K.SourceLocationKind | null;
|
|
2051
2182
|
}): namedTypes.TSTupleType;
|
|
2052
2183
|
}
|
|
2184
|
+
export interface TSNamedTupleMemberBuilder {
|
|
2185
|
+
(label: K.IdentifierKind, elementType: K.TSTypeKind, optional?: boolean): namedTypes.TSNamedTupleMember;
|
|
2186
|
+
from(params: {
|
|
2187
|
+
comments?: K.CommentKind[] | null;
|
|
2188
|
+
elementType: K.TSTypeKind;
|
|
2189
|
+
label: K.IdentifierKind;
|
|
2190
|
+
loc?: K.SourceLocationKind | null;
|
|
2191
|
+
optional?: boolean;
|
|
2192
|
+
}): namedTypes.TSNamedTupleMember;
|
|
2193
|
+
}
|
|
2053
2194
|
export interface TSRestTypeBuilder {
|
|
2054
2195
|
(typeAnnotation: K.TSTypeKind): namedTypes.TSRestType;
|
|
2055
2196
|
from(params: {
|
|
@@ -2121,12 +2262,13 @@ export interface TSMethodSignatureBuilder {
|
|
|
2121
2262
|
}): namedTypes.TSMethodSignature;
|
|
2122
2263
|
}
|
|
2123
2264
|
export interface TSTypePredicateBuilder {
|
|
2124
|
-
(parameterName: K.IdentifierKind | K.TSThisTypeKind, typeAnnotation
|
|
2265
|
+
(parameterName: K.IdentifierKind | K.TSThisTypeKind, typeAnnotation?: K.TSTypeAnnotationKind | null, asserts?: boolean): namedTypes.TSTypePredicate;
|
|
2125
2266
|
from(params: {
|
|
2267
|
+
asserts?: boolean;
|
|
2126
2268
|
comments?: K.CommentKind[] | null;
|
|
2127
2269
|
loc?: K.SourceLocationKind | null;
|
|
2128
2270
|
parameterName: K.IdentifierKind | K.TSThisTypeKind;
|
|
2129
|
-
typeAnnotation
|
|
2271
|
+
typeAnnotation?: K.TSTypeAnnotationKind | null;
|
|
2130
2272
|
}): namedTypes.TSTypePredicate;
|
|
2131
2273
|
}
|
|
2132
2274
|
export interface TSCallSignatureDeclarationBuilder {
|
|
@@ -2302,28 +2444,6 @@ export interface TSParameterPropertyBuilder {
|
|
|
2302
2444
|
readonly?: boolean;
|
|
2303
2445
|
}): namedTypes.TSParameterProperty;
|
|
2304
2446
|
}
|
|
2305
|
-
export interface OptionalMemberExpressionBuilder {
|
|
2306
|
-
(object: K.ExpressionKind, property: K.IdentifierKind | K.ExpressionKind, computed?: boolean, optional?: boolean): namedTypes.OptionalMemberExpression;
|
|
2307
|
-
from(params: {
|
|
2308
|
-
comments?: K.CommentKind[] | null;
|
|
2309
|
-
computed?: boolean;
|
|
2310
|
-
loc?: K.SourceLocationKind | null;
|
|
2311
|
-
object: K.ExpressionKind;
|
|
2312
|
-
optional?: boolean;
|
|
2313
|
-
property: K.IdentifierKind | K.ExpressionKind;
|
|
2314
|
-
}): namedTypes.OptionalMemberExpression;
|
|
2315
|
-
}
|
|
2316
|
-
export interface OptionalCallExpressionBuilder {
|
|
2317
|
-
(callee: K.ExpressionKind, argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[], optional?: boolean): namedTypes.OptionalCallExpression;
|
|
2318
|
-
from(params: {
|
|
2319
|
-
arguments: (K.ExpressionKind | K.SpreadElementKind)[];
|
|
2320
|
-
callee: K.ExpressionKind;
|
|
2321
|
-
comments?: K.CommentKind[] | null;
|
|
2322
|
-
loc?: K.SourceLocationKind | null;
|
|
2323
|
-
optional?: boolean;
|
|
2324
|
-
typeArguments?: null | K.TypeParameterInstantiationKind;
|
|
2325
|
-
}): namedTypes.OptionalCallExpression;
|
|
2326
|
-
}
|
|
2327
2447
|
export interface builders {
|
|
2328
2448
|
file: FileBuilder;
|
|
2329
2449
|
program: ProgramBuilder;
|
|
@@ -2380,40 +2500,52 @@ export interface builders {
|
|
|
2380
2500
|
propertyPattern: PropertyPatternBuilder;
|
|
2381
2501
|
objectPattern: ObjectPatternBuilder;
|
|
2382
2502
|
arrayPattern: ArrayPatternBuilder;
|
|
2383
|
-
methodDefinition: MethodDefinitionBuilder;
|
|
2384
2503
|
spreadElement: SpreadElementBuilder;
|
|
2385
2504
|
assignmentPattern: AssignmentPatternBuilder;
|
|
2505
|
+
methodDefinition: MethodDefinitionBuilder;
|
|
2386
2506
|
classPropertyDefinition: ClassPropertyDefinitionBuilder;
|
|
2387
2507
|
classProperty: ClassPropertyBuilder;
|
|
2388
2508
|
classBody: ClassBodyBuilder;
|
|
2389
2509
|
classDeclaration: ClassDeclarationBuilder;
|
|
2390
2510
|
classExpression: ClassExpressionBuilder;
|
|
2511
|
+
super: SuperBuilder;
|
|
2391
2512
|
importSpecifier: ImportSpecifierBuilder;
|
|
2392
|
-
importNamespaceSpecifier: ImportNamespaceSpecifierBuilder;
|
|
2393
2513
|
importDefaultSpecifier: ImportDefaultSpecifierBuilder;
|
|
2514
|
+
importNamespaceSpecifier: ImportNamespaceSpecifierBuilder;
|
|
2394
2515
|
importDeclaration: ImportDeclarationBuilder;
|
|
2516
|
+
exportNamedDeclaration: ExportNamedDeclarationBuilder;
|
|
2517
|
+
exportSpecifier: ExportSpecifierBuilder;
|
|
2518
|
+
exportDefaultDeclaration: ExportDefaultDeclarationBuilder;
|
|
2519
|
+
exportAllDeclaration: ExportAllDeclarationBuilder;
|
|
2395
2520
|
taggedTemplateExpression: TaggedTemplateExpressionBuilder;
|
|
2396
2521
|
templateLiteral: TemplateLiteralBuilder;
|
|
2397
2522
|
templateElement: TemplateElementBuilder;
|
|
2523
|
+
metaProperty: MetaPropertyBuilder;
|
|
2524
|
+
awaitExpression: AwaitExpressionBuilder;
|
|
2398
2525
|
spreadProperty: SpreadPropertyBuilder;
|
|
2399
2526
|
spreadPropertyPattern: SpreadPropertyPatternBuilder;
|
|
2400
|
-
awaitExpression: AwaitExpressionBuilder;
|
|
2401
2527
|
importExpression: ImportExpressionBuilder;
|
|
2528
|
+
chainExpression: ChainExpressionBuilder;
|
|
2529
|
+
optionalCallExpression: OptionalCallExpressionBuilder;
|
|
2530
|
+
optionalMemberExpression: OptionalMemberExpressionBuilder;
|
|
2402
2531
|
jsxAttribute: JSXAttributeBuilder;
|
|
2403
2532
|
jsxIdentifier: JSXIdentifierBuilder;
|
|
2404
2533
|
jsxNamespacedName: JSXNamespacedNameBuilder;
|
|
2405
2534
|
jsxExpressionContainer: JSXExpressionContainerBuilder;
|
|
2535
|
+
jsxElement: JSXElementBuilder;
|
|
2536
|
+
jsxFragment: JSXFragmentBuilder;
|
|
2406
2537
|
jsxMemberExpression: JSXMemberExpressionBuilder;
|
|
2407
2538
|
jsxSpreadAttribute: JSXSpreadAttributeBuilder;
|
|
2408
|
-
|
|
2539
|
+
jsxEmptyExpression: JSXEmptyExpressionBuilder;
|
|
2540
|
+
jsxText: JSXTextBuilder;
|
|
2541
|
+
jsxSpreadChild: JSXSpreadChildBuilder;
|
|
2409
2542
|
jsxOpeningElement: JSXOpeningElementBuilder;
|
|
2410
2543
|
jsxClosingElement: JSXClosingElementBuilder;
|
|
2411
|
-
jsxFragment: JSXFragmentBuilder;
|
|
2412
|
-
jsxText: JSXTextBuilder;
|
|
2413
2544
|
jsxOpeningFragment: JSXOpeningFragmentBuilder;
|
|
2414
2545
|
jsxClosingFragment: JSXClosingFragmentBuilder;
|
|
2415
|
-
|
|
2416
|
-
|
|
2546
|
+
decorator: DecoratorBuilder;
|
|
2547
|
+
privateName: PrivateNameBuilder;
|
|
2548
|
+
classPrivateProperty: ClassPrivatePropertyBuilder;
|
|
2417
2549
|
typeParameterDeclaration: TypeParameterDeclarationBuilder;
|
|
2418
2550
|
tsTypeParameterDeclaration: TSTypeParameterDeclarationBuilder;
|
|
2419
2551
|
typeParameterInstantiation: TypeParameterInstantiationBuilder;
|
|
@@ -2424,9 +2556,12 @@ export interface builders {
|
|
|
2424
2556
|
emptyTypeAnnotation: EmptyTypeAnnotationBuilder;
|
|
2425
2557
|
mixedTypeAnnotation: MixedTypeAnnotationBuilder;
|
|
2426
2558
|
voidTypeAnnotation: VoidTypeAnnotationBuilder;
|
|
2559
|
+
symbolTypeAnnotation: SymbolTypeAnnotationBuilder;
|
|
2427
2560
|
numberTypeAnnotation: NumberTypeAnnotationBuilder;
|
|
2561
|
+
bigIntTypeAnnotation: BigIntTypeAnnotationBuilder;
|
|
2428
2562
|
numberLiteralTypeAnnotation: NumberLiteralTypeAnnotationBuilder;
|
|
2429
2563
|
numericLiteralTypeAnnotation: NumericLiteralTypeAnnotationBuilder;
|
|
2564
|
+
bigIntLiteralTypeAnnotation: BigIntLiteralTypeAnnotationBuilder;
|
|
2430
2565
|
stringTypeAnnotation: StringTypeAnnotationBuilder;
|
|
2431
2566
|
stringLiteralTypeAnnotation: StringLiteralTypeAnnotationBuilder;
|
|
2432
2567
|
booleanTypeAnnotation: BooleanTypeAnnotationBuilder;
|
|
@@ -2459,8 +2594,8 @@ export interface builders {
|
|
|
2459
2594
|
interfaceDeclaration: InterfaceDeclarationBuilder;
|
|
2460
2595
|
declareInterface: DeclareInterfaceBuilder;
|
|
2461
2596
|
typeAlias: TypeAliasBuilder;
|
|
2462
|
-
opaqueType: OpaqueTypeBuilder;
|
|
2463
2597
|
declareTypeAlias: DeclareTypeAliasBuilder;
|
|
2598
|
+
opaqueType: OpaqueTypeBuilder;
|
|
2464
2599
|
declareOpaqueType: DeclareOpaqueTypeBuilder;
|
|
2465
2600
|
typeCastExpression: TypeCastExpressionBuilder;
|
|
2466
2601
|
tupleTypeAnnotation: TupleTypeAnnotationBuilder;
|
|
@@ -2470,26 +2605,28 @@ export interface builders {
|
|
|
2470
2605
|
declareModule: DeclareModuleBuilder;
|
|
2471
2606
|
declareModuleExports: DeclareModuleExportsBuilder;
|
|
2472
2607
|
declareExportDeclaration: DeclareExportDeclarationBuilder;
|
|
2473
|
-
exportSpecifier: ExportSpecifierBuilder;
|
|
2474
2608
|
exportBatchSpecifier: ExportBatchSpecifierBuilder;
|
|
2475
2609
|
declareExportAllDeclaration: DeclareExportAllDeclarationBuilder;
|
|
2476
2610
|
inferredPredicate: InferredPredicateBuilder;
|
|
2477
2611
|
declaredPredicate: DeclaredPredicateBuilder;
|
|
2612
|
+
enumDeclaration: EnumDeclarationBuilder;
|
|
2613
|
+
enumBooleanBody: EnumBooleanBodyBuilder;
|
|
2614
|
+
enumNumberBody: EnumNumberBodyBuilder;
|
|
2615
|
+
enumStringBody: EnumStringBodyBuilder;
|
|
2616
|
+
enumSymbolBody: EnumSymbolBodyBuilder;
|
|
2617
|
+
enumBooleanMember: EnumBooleanMemberBuilder;
|
|
2618
|
+
enumNumberMember: EnumNumberMemberBuilder;
|
|
2619
|
+
enumStringMember: EnumStringMemberBuilder;
|
|
2620
|
+
enumDefaultedMember: EnumDefaultedMemberBuilder;
|
|
2478
2621
|
exportDeclaration: ExportDeclarationBuilder;
|
|
2479
2622
|
block: BlockBuilder;
|
|
2480
2623
|
line: LineBuilder;
|
|
2481
2624
|
noop: NoopBuilder;
|
|
2482
2625
|
doExpression: DoExpressionBuilder;
|
|
2483
|
-
super: SuperBuilder;
|
|
2484
2626
|
bindExpression: BindExpressionBuilder;
|
|
2485
|
-
decorator: DecoratorBuilder;
|
|
2486
|
-
metaProperty: MetaPropertyBuilder;
|
|
2487
2627
|
parenthesizedExpression: ParenthesizedExpressionBuilder;
|
|
2488
|
-
exportDefaultDeclaration: ExportDefaultDeclarationBuilder;
|
|
2489
|
-
exportNamedDeclaration: ExportNamedDeclarationBuilder;
|
|
2490
2628
|
exportNamespaceSpecifier: ExportNamespaceSpecifierBuilder;
|
|
2491
2629
|
exportDefaultSpecifier: ExportDefaultSpecifierBuilder;
|
|
2492
|
-
exportAllDeclaration: ExportAllDeclarationBuilder;
|
|
2493
2630
|
commentBlock: CommentBlockBuilder;
|
|
2494
2631
|
commentLine: CommentLineBuilder;
|
|
2495
2632
|
directive: DirectiveBuilder;
|
|
@@ -2502,10 +2639,8 @@ export interface builders {
|
|
|
2502
2639
|
booleanLiteral: BooleanLiteralBuilder;
|
|
2503
2640
|
regExpLiteral: RegExpLiteralBuilder;
|
|
2504
2641
|
objectMethod: ObjectMethodBuilder;
|
|
2505
|
-
classPrivateProperty: ClassPrivatePropertyBuilder;
|
|
2506
2642
|
classMethod: ClassMethodBuilder;
|
|
2507
2643
|
classPrivateMethod: ClassPrivateMethodBuilder;
|
|
2508
|
-
privateName: PrivateNameBuilder;
|
|
2509
2644
|
restProperty: RestPropertyBuilder;
|
|
2510
2645
|
forAwaitStatement: ForAwaitStatementBuilder;
|
|
2511
2646
|
import: ImportBuilder;
|
|
@@ -2540,6 +2675,7 @@ export interface builders {
|
|
|
2540
2675
|
tsDeclareMethod: TSDeclareMethodBuilder;
|
|
2541
2676
|
tsMappedType: TSMappedTypeBuilder;
|
|
2542
2677
|
tsTupleType: TSTupleTypeBuilder;
|
|
2678
|
+
tsNamedTupleMember: TSNamedTupleMemberBuilder;
|
|
2543
2679
|
tsRestType: TSRestTypeBuilder;
|
|
2544
2680
|
tsOptionalType: TSOptionalTypeBuilder;
|
|
2545
2681
|
tsIndexedAccessType: TSIndexedAccessTypeBuilder;
|
|
@@ -2566,7 +2702,5 @@ export interface builders {
|
|
|
2566
2702
|
tsInterfaceBody: TSInterfaceBodyBuilder;
|
|
2567
2703
|
tsInterfaceDeclaration: TSInterfaceDeclarationBuilder;
|
|
2568
2704
|
tsParameterProperty: TSParameterPropertyBuilder;
|
|
2569
|
-
optionalMemberExpression: OptionalMemberExpressionBuilder;
|
|
2570
|
-
optionalCallExpression: OptionalCallExpressionBuilder;
|
|
2571
2705
|
[builderName: string]: any;
|
|
2572
2706
|
}
|