ast-types 0.14.0 → 0.15.1
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/workflows/main.yml +1 -1
- package/README.md +1 -1
- package/def/babel-core.js +19 -4
- package/def/babel.js +15 -2
- package/def/core.js +7 -6
- package/def/es-proposals.js +32 -4
- package/def/es2016.js +6 -12
- package/def/es2017.js +3 -3
- package/def/es2018.js +3 -3
- package/def/es2019.js +3 -3
- package/def/es2020.js +23 -12
- package/def/{es7.d.ts → es2021.d.ts} +0 -0
- package/def/es2021.js +13 -0
- package/def/es2022.d.ts +2 -0
- package/def/es2022.js +16 -0
- package/def/es6.js +3 -3
- package/def/esprima.js +4 -4
- package/def/flow.js +17 -8
- package/def/jsx.js +4 -4
- package/def/operators/core.d.ts +5 -0
- package/def/operators/core.js +25 -0
- package/def/operators/es2016.d.ts +5 -0
- package/def/operators/es2016.js +19 -0
- package/def/operators/es2020.d.ts +5 -0
- package/def/operators/es2020.js +15 -0
- package/def/operators/es2021.d.ts +5 -0
- package/def/operators/es2021.js +18 -0
- package/def/type-annotations.js +2 -2
- package/def/typescript.js +11 -4
- package/fork.js +5 -5
- package/gen/builders.d.ts +194 -70
- package/gen/kinds.d.ts +28 -15
- package/gen/namedTypes.d.ts +132 -46
- package/gen/visitor.d.ts +18 -5
- package/lib/equiv.js +1 -1
- package/lib/node-path.js +3 -3
- package/lib/path-visitor.js +2 -2
- package/lib/path.d.ts +3 -3
- package/lib/path.js +1 -1
- package/lib/scope.d.ts +3 -2
- package/lib/scope.js +63 -26
- package/lib/shared.js +1 -1
- package/lib/types.js +6 -6
- package/main.js +9 -25
- package/package.json +15 -15
- package/def/core-operators.d.ts +0 -3
- package/def/core-operators.js +0 -20
- package/def/es7.js +0 -34
package/gen/builders.d.ts
CHANGED
|
@@ -332,12 +332,12 @@ export interface BinaryExpressionBuilder {
|
|
|
332
332
|
}): namedTypes.BinaryExpression;
|
|
333
333
|
}
|
|
334
334
|
export interface AssignmentExpressionBuilder {
|
|
335
|
-
(operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=", left: K.PatternKind | K.MemberExpressionKind, right: K.ExpressionKind): namedTypes.AssignmentExpression;
|
|
335
|
+
(operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=" | "||=" | "&&=" | "??=", left: K.PatternKind | K.MemberExpressionKind, right: K.ExpressionKind): namedTypes.AssignmentExpression;
|
|
336
336
|
from(params: {
|
|
337
337
|
comments?: K.CommentKind[] | null;
|
|
338
338
|
left: K.PatternKind | K.MemberExpressionKind;
|
|
339
339
|
loc?: K.SourceLocationKind | null;
|
|
340
|
-
operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=";
|
|
340
|
+
operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=" | "||=" | "&&=" | "??=";
|
|
341
341
|
right: K.ExpressionKind;
|
|
342
342
|
}): namedTypes.AssignmentExpression;
|
|
343
343
|
}
|
|
@@ -348,6 +348,7 @@ export interface MemberExpressionBuilder {
|
|
|
348
348
|
computed?: boolean;
|
|
349
349
|
loc?: K.SourceLocationKind | null;
|
|
350
350
|
object: K.ExpressionKind;
|
|
351
|
+
optional?: boolean;
|
|
351
352
|
property: K.IdentifierKind | K.ExpressionKind;
|
|
352
353
|
}): namedTypes.MemberExpression;
|
|
353
354
|
}
|
|
@@ -398,6 +399,7 @@ export interface CallExpressionBuilder {
|
|
|
398
399
|
callee: K.ExpressionKind;
|
|
399
400
|
comments?: K.CommentKind[] | null;
|
|
400
401
|
loc?: K.SourceLocationKind | null;
|
|
402
|
+
optional?: boolean;
|
|
401
403
|
typeArguments?: null | K.TypeParameterInstantiationKind;
|
|
402
404
|
}): namedTypes.CallExpression;
|
|
403
405
|
}
|
|
@@ -669,6 +671,7 @@ export interface ImportNamespaceSpecifierBuilder {
|
|
|
669
671
|
export interface ImportDeclarationBuilder {
|
|
670
672
|
(specifiers: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[] | undefined, source: K.LiteralKind, importKind?: "value" | "type" | "typeof"): namedTypes.ImportDeclaration;
|
|
671
673
|
from(params: {
|
|
674
|
+
assertions?: K.ImportAttributeKind[];
|
|
672
675
|
comments?: K.CommentKind[] | null;
|
|
673
676
|
importKind?: "value" | "type" | "typeof";
|
|
674
677
|
loc?: K.SourceLocationKind | null;
|
|
@@ -679,6 +682,7 @@ export interface ImportDeclarationBuilder {
|
|
|
679
682
|
export interface ExportNamedDeclarationBuilder {
|
|
680
683
|
(declaration: K.DeclarationKind | null, specifiers?: K.ExportSpecifierKind[], source?: K.LiteralKind | null): namedTypes.ExportNamedDeclaration;
|
|
681
684
|
from(params: {
|
|
685
|
+
assertions?: K.ImportAttributeKind[];
|
|
682
686
|
comments?: K.CommentKind[] | null;
|
|
683
687
|
declaration: K.DeclarationKind | null;
|
|
684
688
|
loc?: K.SourceLocationKind | null;
|
|
@@ -708,6 +712,7 @@ export interface ExportDefaultDeclarationBuilder {
|
|
|
708
712
|
export interface ExportAllDeclarationBuilder {
|
|
709
713
|
(source: K.LiteralKind, exported: K.IdentifierKind | null): namedTypes.ExportAllDeclaration;
|
|
710
714
|
from(params: {
|
|
715
|
+
assertions?: K.ImportAttributeKind[];
|
|
711
716
|
comments?: K.CommentKind[] | null;
|
|
712
717
|
exported: K.IdentifierKind | null;
|
|
713
718
|
loc?: K.SourceLocationKind | null;
|
|
@@ -724,10 +729,10 @@ export interface TaggedTemplateExpressionBuilder {
|
|
|
724
729
|
}): namedTypes.TaggedTemplateExpression;
|
|
725
730
|
}
|
|
726
731
|
export interface TemplateLiteralBuilder {
|
|
727
|
-
(quasis: K.TemplateElementKind[], expressions: K.ExpressionKind[]): namedTypes.TemplateLiteral;
|
|
732
|
+
(quasis: K.TemplateElementKind[], expressions: K.ExpressionKind[] | K.TSTypeKind[]): namedTypes.TemplateLiteral;
|
|
728
733
|
from(params: {
|
|
729
734
|
comments?: K.CommentKind[] | null;
|
|
730
|
-
expressions: K.ExpressionKind[];
|
|
735
|
+
expressions: K.ExpressionKind[] | K.TSTypeKind[];
|
|
731
736
|
loc?: K.SourceLocationKind | null;
|
|
732
737
|
quasis: K.TemplateElementKind[];
|
|
733
738
|
}): namedTypes.TemplateLiteral;
|
|
@@ -789,16 +794,13 @@ export interface ImportExpressionBuilder {
|
|
|
789
794
|
source: K.ExpressionKind;
|
|
790
795
|
}): namedTypes.ImportExpression;
|
|
791
796
|
}
|
|
792
|
-
export interface
|
|
793
|
-
(
|
|
797
|
+
export interface ChainExpressionBuilder {
|
|
798
|
+
(expression: K.ChainElementKind): namedTypes.ChainExpression;
|
|
794
799
|
from(params: {
|
|
795
800
|
comments?: K.CommentKind[] | null;
|
|
796
|
-
|
|
801
|
+
expression: K.ChainElementKind;
|
|
797
802
|
loc?: K.SourceLocationKind | null;
|
|
798
|
-
|
|
799
|
-
optional?: boolean;
|
|
800
|
-
property: K.IdentifierKind | K.ExpressionKind;
|
|
801
|
-
}): namedTypes.OptionalMemberExpression;
|
|
803
|
+
}): namedTypes.ChainExpression;
|
|
802
804
|
}
|
|
803
805
|
export interface OptionalCallExpressionBuilder {
|
|
804
806
|
(callee: K.ExpressionKind, argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[], optional?: boolean): namedTypes.OptionalCallExpression;
|
|
@@ -811,6 +813,111 @@ export interface OptionalCallExpressionBuilder {
|
|
|
811
813
|
typeArguments?: null | K.TypeParameterInstantiationKind;
|
|
812
814
|
}): namedTypes.OptionalCallExpression;
|
|
813
815
|
}
|
|
816
|
+
export interface OptionalMemberExpressionBuilder {
|
|
817
|
+
(object: K.ExpressionKind, property: K.IdentifierKind | K.ExpressionKind, computed?: boolean, optional?: boolean): namedTypes.OptionalMemberExpression;
|
|
818
|
+
from(params: {
|
|
819
|
+
comments?: K.CommentKind[] | null;
|
|
820
|
+
computed?: boolean;
|
|
821
|
+
loc?: K.SourceLocationKind | null;
|
|
822
|
+
object: K.ExpressionKind;
|
|
823
|
+
optional?: boolean;
|
|
824
|
+
property: K.IdentifierKind | K.ExpressionKind;
|
|
825
|
+
}): namedTypes.OptionalMemberExpression;
|
|
826
|
+
}
|
|
827
|
+
export interface StaticBlockBuilder {
|
|
828
|
+
(body: K.StatementKind[]): namedTypes.StaticBlock;
|
|
829
|
+
from(params: {
|
|
830
|
+
body: K.StatementKind[];
|
|
831
|
+
comments?: K.CommentKind[] | null;
|
|
832
|
+
loc?: K.SourceLocationKind | null;
|
|
833
|
+
}): namedTypes.StaticBlock;
|
|
834
|
+
}
|
|
835
|
+
export interface DecoratorBuilder {
|
|
836
|
+
(expression: K.ExpressionKind): namedTypes.Decorator;
|
|
837
|
+
from(params: {
|
|
838
|
+
comments?: K.CommentKind[] | null;
|
|
839
|
+
expression: K.ExpressionKind;
|
|
840
|
+
loc?: K.SourceLocationKind | null;
|
|
841
|
+
}): namedTypes.Decorator;
|
|
842
|
+
}
|
|
843
|
+
export interface PrivateNameBuilder {
|
|
844
|
+
(id: K.IdentifierKind): namedTypes.PrivateName;
|
|
845
|
+
from(params: {
|
|
846
|
+
comments?: K.CommentKind[] | null;
|
|
847
|
+
id: K.IdentifierKind;
|
|
848
|
+
loc?: K.SourceLocationKind | null;
|
|
849
|
+
}): namedTypes.PrivateName;
|
|
850
|
+
}
|
|
851
|
+
export interface ClassPrivatePropertyBuilder {
|
|
852
|
+
(key: K.PrivateNameKind, value?: K.ExpressionKind | null): namedTypes.ClassPrivateProperty;
|
|
853
|
+
from(params: {
|
|
854
|
+
access?: "public" | "private" | "protected" | undefined;
|
|
855
|
+
comments?: K.CommentKind[] | null;
|
|
856
|
+
computed?: boolean;
|
|
857
|
+
key: K.PrivateNameKind;
|
|
858
|
+
loc?: K.SourceLocationKind | null;
|
|
859
|
+
static?: boolean;
|
|
860
|
+
typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
861
|
+
value?: K.ExpressionKind | null;
|
|
862
|
+
variance?: K.VarianceKind | "plus" | "minus" | null;
|
|
863
|
+
}): namedTypes.ClassPrivateProperty;
|
|
864
|
+
}
|
|
865
|
+
export interface ImportAttributeBuilder {
|
|
866
|
+
(key: K.IdentifierKind | K.LiteralKind, value: K.ExpressionKind): namedTypes.ImportAttribute;
|
|
867
|
+
from(params: {
|
|
868
|
+
comments?: K.CommentKind[] | null;
|
|
869
|
+
key: K.IdentifierKind | K.LiteralKind;
|
|
870
|
+
loc?: K.SourceLocationKind | null;
|
|
871
|
+
value: K.ExpressionKind;
|
|
872
|
+
}): namedTypes.ImportAttribute;
|
|
873
|
+
}
|
|
874
|
+
export interface RecordExpressionBuilder {
|
|
875
|
+
(properties: (K.ObjectPropertyKind | K.ObjectMethodKind | K.SpreadElementKind)[]): namedTypes.RecordExpression;
|
|
876
|
+
from(params: {
|
|
877
|
+
comments?: K.CommentKind[] | null;
|
|
878
|
+
loc?: K.SourceLocationKind | null;
|
|
879
|
+
properties: (K.ObjectPropertyKind | K.ObjectMethodKind | K.SpreadElementKind)[];
|
|
880
|
+
}): namedTypes.RecordExpression;
|
|
881
|
+
}
|
|
882
|
+
export interface ObjectMethodBuilder {
|
|
883
|
+
(kind: "method" | "get" | "set", key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, params: K.PatternKind[], body: K.BlockStatementKind, computed?: boolean): namedTypes.ObjectMethod;
|
|
884
|
+
from(params: {
|
|
885
|
+
accessibility?: K.LiteralKind | null;
|
|
886
|
+
async?: boolean;
|
|
887
|
+
body: K.BlockStatementKind;
|
|
888
|
+
comments?: K.CommentKind[] | null;
|
|
889
|
+
computed?: boolean;
|
|
890
|
+
decorators?: K.DecoratorKind[] | null;
|
|
891
|
+
defaults?: (K.ExpressionKind | null)[];
|
|
892
|
+
expression?: boolean;
|
|
893
|
+
generator?: boolean;
|
|
894
|
+
id?: K.IdentifierKind | null;
|
|
895
|
+
key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind;
|
|
896
|
+
kind: "method" | "get" | "set";
|
|
897
|
+
loc?: K.SourceLocationKind | null;
|
|
898
|
+
params: K.PatternKind[];
|
|
899
|
+
predicate?: K.FlowPredicateKind | null;
|
|
900
|
+
rest?: K.IdentifierKind | null;
|
|
901
|
+
returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
902
|
+
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
903
|
+
}): namedTypes.ObjectMethod;
|
|
904
|
+
}
|
|
905
|
+
export interface TupleExpressionBuilder {
|
|
906
|
+
(elements: (K.ExpressionKind | K.SpreadElementKind | null)[]): namedTypes.TupleExpression;
|
|
907
|
+
from(params: {
|
|
908
|
+
comments?: K.CommentKind[] | null;
|
|
909
|
+
elements: (K.ExpressionKind | K.SpreadElementKind | null)[];
|
|
910
|
+
loc?: K.SourceLocationKind | null;
|
|
911
|
+
}): namedTypes.TupleExpression;
|
|
912
|
+
}
|
|
913
|
+
export interface ModuleExpressionBuilder {
|
|
914
|
+
(): namedTypes.ModuleExpression;
|
|
915
|
+
from(params: {
|
|
916
|
+
body: K.ProgramKind;
|
|
917
|
+
comments?: K.CommentKind[] | null;
|
|
918
|
+
loc?: K.SourceLocationKind | null;
|
|
919
|
+
}): namedTypes.ModuleExpression;
|
|
920
|
+
}
|
|
814
921
|
export interface JSXAttributeBuilder {
|
|
815
922
|
(name: K.JSXIdentifierKind | K.JSXNamespacedNameKind, value?: K.LiteralKind | K.JSXExpressionContainerKind | K.JSXElementKind | K.JSXFragmentKind | null): namedTypes.JSXAttribute;
|
|
816
923
|
from(params: {
|
|
@@ -877,6 +984,7 @@ export interface JSXMemberExpressionBuilder {
|
|
|
877
984
|
computed?: boolean;
|
|
878
985
|
loc?: K.SourceLocationKind | null;
|
|
879
986
|
object: K.JSXIdentifierKind | K.JSXMemberExpressionKind;
|
|
987
|
+
optional?: boolean;
|
|
880
988
|
property: K.JSXIdentifierKind;
|
|
881
989
|
}): namedTypes.JSXMemberExpression;
|
|
882
990
|
}
|
|
@@ -948,36 +1056,6 @@ export interface JSXClosingFragmentBuilder {
|
|
|
948
1056
|
loc?: K.SourceLocationKind | null;
|
|
949
1057
|
}): namedTypes.JSXClosingFragment;
|
|
950
1058
|
}
|
|
951
|
-
export interface DecoratorBuilder {
|
|
952
|
-
(expression: K.ExpressionKind): namedTypes.Decorator;
|
|
953
|
-
from(params: {
|
|
954
|
-
comments?: K.CommentKind[] | null;
|
|
955
|
-
expression: K.ExpressionKind;
|
|
956
|
-
loc?: K.SourceLocationKind | null;
|
|
957
|
-
}): namedTypes.Decorator;
|
|
958
|
-
}
|
|
959
|
-
export interface PrivateNameBuilder {
|
|
960
|
-
(id: K.IdentifierKind): namedTypes.PrivateName;
|
|
961
|
-
from(params: {
|
|
962
|
-
comments?: K.CommentKind[] | null;
|
|
963
|
-
id: K.IdentifierKind;
|
|
964
|
-
loc?: K.SourceLocationKind | null;
|
|
965
|
-
}): namedTypes.PrivateName;
|
|
966
|
-
}
|
|
967
|
-
export interface ClassPrivatePropertyBuilder {
|
|
968
|
-
(key: K.PrivateNameKind, value?: K.ExpressionKind | null): namedTypes.ClassPrivateProperty;
|
|
969
|
-
from(params: {
|
|
970
|
-
access?: "public" | "private" | "protected" | undefined;
|
|
971
|
-
comments?: K.CommentKind[] | null;
|
|
972
|
-
computed?: boolean;
|
|
973
|
-
key: K.PrivateNameKind;
|
|
974
|
-
loc?: K.SourceLocationKind | null;
|
|
975
|
-
static?: boolean;
|
|
976
|
-
typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
977
|
-
value?: K.ExpressionKind | null;
|
|
978
|
-
variance?: K.VarianceKind | "plus" | "minus" | null;
|
|
979
|
-
}): namedTypes.ClassPrivateProperty;
|
|
980
|
-
}
|
|
981
1059
|
export interface TypeParameterDeclarationBuilder {
|
|
982
1060
|
(params: K.TypeParameterKind[]): namedTypes.TypeParameterDeclaration;
|
|
983
1061
|
from(params: {
|
|
@@ -1248,7 +1326,7 @@ export interface ObjectTypeIndexerBuilder {
|
|
|
1248
1326
|
id: K.IdentifierKind;
|
|
1249
1327
|
key: K.FlowTypeKind;
|
|
1250
1328
|
loc?: K.SourceLocationKind | null;
|
|
1251
|
-
static
|
|
1329
|
+
static?: boolean;
|
|
1252
1330
|
value: K.FlowTypeKind;
|
|
1253
1331
|
variance?: K.VarianceKind | "plus" | "minus" | null;
|
|
1254
1332
|
}): namedTypes.ObjectTypeIndexer;
|
|
@@ -1309,6 +1387,25 @@ export interface MemberTypeAnnotationBuilder {
|
|
|
1309
1387
|
property: K.MemberTypeAnnotationKind | K.GenericTypeAnnotationKind;
|
|
1310
1388
|
}): namedTypes.MemberTypeAnnotation;
|
|
1311
1389
|
}
|
|
1390
|
+
export interface IndexedAccessTypeBuilder {
|
|
1391
|
+
(objectType: K.FlowTypeKind, indexType: K.FlowTypeKind): namedTypes.IndexedAccessType;
|
|
1392
|
+
from(params: {
|
|
1393
|
+
comments?: K.CommentKind[] | null;
|
|
1394
|
+
indexType: K.FlowTypeKind;
|
|
1395
|
+
loc?: K.SourceLocationKind | null;
|
|
1396
|
+
objectType: K.FlowTypeKind;
|
|
1397
|
+
}): namedTypes.IndexedAccessType;
|
|
1398
|
+
}
|
|
1399
|
+
export interface OptionalIndexedAccessTypeBuilder {
|
|
1400
|
+
(objectType: K.FlowTypeKind, indexType: K.FlowTypeKind, optional: boolean): namedTypes.OptionalIndexedAccessType;
|
|
1401
|
+
from(params: {
|
|
1402
|
+
comments?: K.CommentKind[] | null;
|
|
1403
|
+
indexType: K.FlowTypeKind;
|
|
1404
|
+
loc?: K.SourceLocationKind | null;
|
|
1405
|
+
objectType: K.FlowTypeKind;
|
|
1406
|
+
optional: boolean;
|
|
1407
|
+
}): namedTypes.OptionalIndexedAccessType;
|
|
1408
|
+
}
|
|
1312
1409
|
export interface UnionTypeAnnotationBuilder {
|
|
1313
1410
|
(types: K.FlowTypeKind[]): namedTypes.UnionTypeAnnotation;
|
|
1314
1411
|
from(params: {
|
|
@@ -1756,6 +1853,22 @@ export interface BigIntLiteralBuilder {
|
|
|
1756
1853
|
value: string | number;
|
|
1757
1854
|
}): namedTypes.BigIntLiteral;
|
|
1758
1855
|
}
|
|
1856
|
+
export interface DecimalLiteralBuilder {
|
|
1857
|
+
(value: string): namedTypes.DecimalLiteral;
|
|
1858
|
+
from(params: {
|
|
1859
|
+
comments?: K.CommentKind[] | null;
|
|
1860
|
+
extra?: {
|
|
1861
|
+
rawValue: string;
|
|
1862
|
+
raw: string;
|
|
1863
|
+
};
|
|
1864
|
+
loc?: K.SourceLocationKind | null;
|
|
1865
|
+
regex?: {
|
|
1866
|
+
pattern: string;
|
|
1867
|
+
flags: string;
|
|
1868
|
+
} | null;
|
|
1869
|
+
value: string;
|
|
1870
|
+
}): namedTypes.DecimalLiteral;
|
|
1871
|
+
}
|
|
1759
1872
|
export interface NullLiteralBuilder {
|
|
1760
1873
|
(): namedTypes.NullLiteral;
|
|
1761
1874
|
from(params: {
|
|
@@ -1794,29 +1907,6 @@ export interface RegExpLiteralBuilder {
|
|
|
1794
1907
|
value?: RegExp;
|
|
1795
1908
|
}): namedTypes.RegExpLiteral;
|
|
1796
1909
|
}
|
|
1797
|
-
export interface ObjectMethodBuilder {
|
|
1798
|
-
(kind: "method" | "get" | "set", key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, params: K.PatternKind[], body: K.BlockStatementKind, computed?: boolean): namedTypes.ObjectMethod;
|
|
1799
|
-
from(params: {
|
|
1800
|
-
accessibility?: K.LiteralKind | null;
|
|
1801
|
-
async?: boolean;
|
|
1802
|
-
body: K.BlockStatementKind;
|
|
1803
|
-
comments?: K.CommentKind[] | null;
|
|
1804
|
-
computed?: boolean;
|
|
1805
|
-
decorators?: K.DecoratorKind[] | null;
|
|
1806
|
-
defaults?: (K.ExpressionKind | null)[];
|
|
1807
|
-
expression?: boolean;
|
|
1808
|
-
generator?: boolean;
|
|
1809
|
-
id?: K.IdentifierKind | null;
|
|
1810
|
-
key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind;
|
|
1811
|
-
kind: "method" | "get" | "set";
|
|
1812
|
-
loc?: K.SourceLocationKind | null;
|
|
1813
|
-
params: K.PatternKind[];
|
|
1814
|
-
predicate?: K.FlowPredicateKind | null;
|
|
1815
|
-
rest?: K.IdentifierKind | null;
|
|
1816
|
-
returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
1817
|
-
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
1818
|
-
}): namedTypes.ObjectMethod;
|
|
1819
|
-
}
|
|
1820
1910
|
export interface ClassMethodBuilder {
|
|
1821
1911
|
(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;
|
|
1822
1912
|
from(params: {
|
|
@@ -1896,6 +1986,21 @@ export interface ImportBuilder {
|
|
|
1896
1986
|
loc?: K.SourceLocationKind | null;
|
|
1897
1987
|
}): namedTypes.Import;
|
|
1898
1988
|
}
|
|
1989
|
+
export interface V8IntrinsicIdentifierBuilder {
|
|
1990
|
+
(name: string): namedTypes.V8IntrinsicIdentifier;
|
|
1991
|
+
from(params: {
|
|
1992
|
+
comments?: K.CommentKind[] | null;
|
|
1993
|
+
loc?: K.SourceLocationKind | null;
|
|
1994
|
+
name: string;
|
|
1995
|
+
}): namedTypes.V8IntrinsicIdentifier;
|
|
1996
|
+
}
|
|
1997
|
+
export interface TopicReferenceBuilder {
|
|
1998
|
+
(): namedTypes.TopicReference;
|
|
1999
|
+
from(params: {
|
|
2000
|
+
comments?: K.CommentKind[] | null;
|
|
2001
|
+
loc?: K.SourceLocationKind | null;
|
|
2002
|
+
}): namedTypes.TopicReference;
|
|
2003
|
+
}
|
|
1899
2004
|
export interface TSQualifiedNameBuilder {
|
|
1900
2005
|
(left: K.IdentifierKind | K.TSQualifiedNameKind, right: K.IdentifierKind | K.TSQualifiedNameKind): namedTypes.TSQualifiedName;
|
|
1901
2006
|
from(params: {
|
|
@@ -2018,6 +2123,13 @@ export interface TSVoidKeywordBuilder {
|
|
|
2018
2123
|
loc?: K.SourceLocationKind | null;
|
|
2019
2124
|
}): namedTypes.TSVoidKeyword;
|
|
2020
2125
|
}
|
|
2126
|
+
export interface TSIntrinsicKeywordBuilder {
|
|
2127
|
+
(): namedTypes.TSIntrinsicKeyword;
|
|
2128
|
+
from(params: {
|
|
2129
|
+
comments?: K.CommentKind[] | null;
|
|
2130
|
+
loc?: K.SourceLocationKind | null;
|
|
2131
|
+
}): namedTypes.TSIntrinsicKeyword;
|
|
2132
|
+
}
|
|
2021
2133
|
export interface TSThisTypeBuilder {
|
|
2022
2134
|
(): namedTypes.TSThisType;
|
|
2023
2135
|
from(params: {
|
|
@@ -2514,8 +2626,18 @@ export interface builders {
|
|
|
2514
2626
|
spreadProperty: SpreadPropertyBuilder;
|
|
2515
2627
|
spreadPropertyPattern: SpreadPropertyPatternBuilder;
|
|
2516
2628
|
importExpression: ImportExpressionBuilder;
|
|
2517
|
-
|
|
2629
|
+
chainExpression: ChainExpressionBuilder;
|
|
2518
2630
|
optionalCallExpression: OptionalCallExpressionBuilder;
|
|
2631
|
+
optionalMemberExpression: OptionalMemberExpressionBuilder;
|
|
2632
|
+
staticBlock: StaticBlockBuilder;
|
|
2633
|
+
decorator: DecoratorBuilder;
|
|
2634
|
+
privateName: PrivateNameBuilder;
|
|
2635
|
+
classPrivateProperty: ClassPrivatePropertyBuilder;
|
|
2636
|
+
importAttribute: ImportAttributeBuilder;
|
|
2637
|
+
recordExpression: RecordExpressionBuilder;
|
|
2638
|
+
objectMethod: ObjectMethodBuilder;
|
|
2639
|
+
tupleExpression: TupleExpressionBuilder;
|
|
2640
|
+
moduleExpression: ModuleExpressionBuilder;
|
|
2519
2641
|
jsxAttribute: JSXAttributeBuilder;
|
|
2520
2642
|
jsxIdentifier: JSXIdentifierBuilder;
|
|
2521
2643
|
jsxNamespacedName: JSXNamespacedNameBuilder;
|
|
@@ -2531,9 +2653,6 @@ export interface builders {
|
|
|
2531
2653
|
jsxClosingElement: JSXClosingElementBuilder;
|
|
2532
2654
|
jsxOpeningFragment: JSXOpeningFragmentBuilder;
|
|
2533
2655
|
jsxClosingFragment: JSXClosingFragmentBuilder;
|
|
2534
|
-
decorator: DecoratorBuilder;
|
|
2535
|
-
privateName: PrivateNameBuilder;
|
|
2536
|
-
classPrivateProperty: ClassPrivatePropertyBuilder;
|
|
2537
2656
|
typeParameterDeclaration: TypeParameterDeclarationBuilder;
|
|
2538
2657
|
tsTypeParameterDeclaration: TSTypeParameterDeclarationBuilder;
|
|
2539
2658
|
typeParameterInstantiation: TypeParameterInstantiationBuilder;
|
|
@@ -2573,6 +2692,8 @@ export interface builders {
|
|
|
2573
2692
|
qualifiedTypeIdentifier: QualifiedTypeIdentifierBuilder;
|
|
2574
2693
|
genericTypeAnnotation: GenericTypeAnnotationBuilder;
|
|
2575
2694
|
memberTypeAnnotation: MemberTypeAnnotationBuilder;
|
|
2695
|
+
indexedAccessType: IndexedAccessTypeBuilder;
|
|
2696
|
+
optionalIndexedAccessType: OptionalIndexedAccessTypeBuilder;
|
|
2576
2697
|
unionTypeAnnotation: UnionTypeAnnotationBuilder;
|
|
2577
2698
|
intersectionTypeAnnotation: IntersectionTypeAnnotationBuilder;
|
|
2578
2699
|
typeofTypeAnnotation: TypeofTypeAnnotationBuilder;
|
|
@@ -2623,15 +2744,17 @@ export interface builders {
|
|
|
2623
2744
|
stringLiteral: StringLiteralBuilder;
|
|
2624
2745
|
numericLiteral: NumericLiteralBuilder;
|
|
2625
2746
|
bigIntLiteral: BigIntLiteralBuilder;
|
|
2747
|
+
decimalLiteral: DecimalLiteralBuilder;
|
|
2626
2748
|
nullLiteral: NullLiteralBuilder;
|
|
2627
2749
|
booleanLiteral: BooleanLiteralBuilder;
|
|
2628
2750
|
regExpLiteral: RegExpLiteralBuilder;
|
|
2629
|
-
objectMethod: ObjectMethodBuilder;
|
|
2630
2751
|
classMethod: ClassMethodBuilder;
|
|
2631
2752
|
classPrivateMethod: ClassPrivateMethodBuilder;
|
|
2632
2753
|
restProperty: RestPropertyBuilder;
|
|
2633
2754
|
forAwaitStatement: ForAwaitStatementBuilder;
|
|
2634
2755
|
import: ImportBuilder;
|
|
2756
|
+
v8IntrinsicIdentifier: V8IntrinsicIdentifierBuilder;
|
|
2757
|
+
topicReference: TopicReferenceBuilder;
|
|
2635
2758
|
tsQualifiedName: TSQualifiedNameBuilder;
|
|
2636
2759
|
tsTypeReference: TSTypeReferenceBuilder;
|
|
2637
2760
|
tsAsExpression: TSAsExpressionBuilder;
|
|
@@ -2648,6 +2771,7 @@ export interface builders {
|
|
|
2648
2771
|
tsUndefinedKeyword: TSUndefinedKeywordBuilder;
|
|
2649
2772
|
tsUnknownKeyword: TSUnknownKeywordBuilder;
|
|
2650
2773
|
tsVoidKeyword: TSVoidKeywordBuilder;
|
|
2774
|
+
tsIntrinsicKeyword: TSIntrinsicKeywordBuilder;
|
|
2651
2775
|
tsThisType: TSThisTypeBuilder;
|
|
2652
2776
|
tsArrayType: TSArrayTypeBuilder;
|
|
2653
2777
|
tsLiteralType: TSLiteralTypeBuilder;
|
package/gen/kinds.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { namedTypes } from "./namedTypes";
|
|
2
|
-
export declare type PrintableKind = namedTypes.File | namedTypes.Program | namedTypes.Identifier | namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.SwitchCase | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.CatchClause | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.FunctionExpression | namedTypes.VariableDeclarator | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Property | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.RestElement | namedTypes.TypeAnnotation | namedTypes.TSTypeAnnotation | namedTypes.SpreadElementPattern | namedTypes.ArrowFunctionExpression | namedTypes.ForOfStatement | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionBlock | namedTypes.ComprehensionExpression | namedTypes.ObjectProperty | namedTypes.PropertyPattern | namedTypes.ObjectPattern | namedTypes.ArrayPattern | namedTypes.SpreadElement | namedTypes.AssignmentPattern | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ClassExpression | namedTypes.Super | namedTypes.ImportSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ImportDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportSpecifier | namedTypes.ExportDefaultDeclaration | namedTypes.ExportAllDeclaration | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.TemplateElement | namedTypes.MetaProperty | namedTypes.AwaitExpression | namedTypes.SpreadProperty | namedTypes.SpreadPropertyPattern | namedTypes.ImportExpression | namedTypes.
|
|
2
|
+
export declare type PrintableKind = namedTypes.File | namedTypes.Program | namedTypes.Identifier | namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.SwitchCase | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.CatchClause | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.FunctionExpression | namedTypes.VariableDeclarator | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Property | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.RestElement | namedTypes.TypeAnnotation | namedTypes.TSTypeAnnotation | namedTypes.SpreadElementPattern | namedTypes.ArrowFunctionExpression | namedTypes.ForOfStatement | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionBlock | namedTypes.ComprehensionExpression | namedTypes.ObjectProperty | namedTypes.PropertyPattern | namedTypes.ObjectPattern | namedTypes.ArrayPattern | namedTypes.SpreadElement | namedTypes.AssignmentPattern | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ClassExpression | namedTypes.Super | namedTypes.ImportSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ImportDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportSpecifier | namedTypes.ExportDefaultDeclaration | namedTypes.ExportAllDeclaration | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.TemplateElement | namedTypes.MetaProperty | namedTypes.AwaitExpression | namedTypes.SpreadProperty | namedTypes.SpreadPropertyPattern | namedTypes.ImportExpression | namedTypes.ChainExpression | namedTypes.OptionalCallExpression | namedTypes.OptionalMemberExpression | namedTypes.StaticBlock | namedTypes.Decorator | namedTypes.PrivateName | namedTypes.ClassPrivateProperty | namedTypes.ImportAttribute | namedTypes.RecordExpression | namedTypes.ObjectMethod | namedTypes.TupleExpression | namedTypes.ModuleExpression | namedTypes.JSXAttribute | namedTypes.JSXIdentifier | namedTypes.JSXNamespacedName | namedTypes.JSXExpressionContainer | namedTypes.JSXElement | namedTypes.JSXFragment | namedTypes.JSXMemberExpression | namedTypes.JSXSpreadAttribute | namedTypes.JSXEmptyExpression | namedTypes.JSXText | namedTypes.JSXSpreadChild | namedTypes.JSXOpeningElement | namedTypes.JSXClosingElement | namedTypes.JSXOpeningFragment | namedTypes.JSXClosingFragment | namedTypes.TypeParameterDeclaration | namedTypes.TSTypeParameterDeclaration | namedTypes.TypeParameterInstantiation | namedTypes.TSTypeParameterInstantiation | namedTypes.ClassImplements | namedTypes.TSExpressionWithTypeArguments | namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.SymbolTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.BigIntTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.BigIntLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.FunctionTypeParam | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.ObjectTypeProperty | namedTypes.ObjectTypeSpreadProperty | namedTypes.ObjectTypeIndexer | namedTypes.ObjectTypeCallProperty | namedTypes.ObjectTypeInternalSlot | namedTypes.Variance | namedTypes.QualifiedTypeIdentifier | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.IndexedAccessType | namedTypes.OptionalIndexedAccessType | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.InterfaceExtends | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.DeclareTypeAlias | namedTypes.OpaqueType | namedTypes.DeclareOpaqueType | namedTypes.TypeCastExpression | namedTypes.TupleTypeAnnotation | namedTypes.DeclareVariable | namedTypes.DeclareFunction | namedTypes.DeclareClass | namedTypes.DeclareModule | namedTypes.DeclareModuleExports | namedTypes.DeclareExportDeclaration | namedTypes.ExportBatchSpecifier | namedTypes.DeclareExportAllDeclaration | namedTypes.InferredPredicate | namedTypes.DeclaredPredicate | namedTypes.EnumDeclaration | namedTypes.ExportDeclaration | namedTypes.Block | namedTypes.Line | namedTypes.Noop | namedTypes.DoExpression | namedTypes.BindExpression | namedTypes.ParenthesizedExpression | namedTypes.ExportNamespaceSpecifier | namedTypes.ExportDefaultSpecifier | namedTypes.CommentBlock | namedTypes.CommentLine | namedTypes.Directive | namedTypes.DirectiveLiteral | namedTypes.InterpreterDirective | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.DecimalLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.RestProperty | namedTypes.ForAwaitStatement | namedTypes.Import | namedTypes.V8IntrinsicIdentifier | namedTypes.TopicReference | namedTypes.TSQualifiedName | namedTypes.TSTypeReference | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSAnyKeyword | namedTypes.TSBigIntKeyword | namedTypes.TSBooleanKeyword | namedTypes.TSNeverKeyword | namedTypes.TSNullKeyword | namedTypes.TSNumberKeyword | namedTypes.TSObjectKeyword | namedTypes.TSStringKeyword | namedTypes.TSSymbolKeyword | namedTypes.TSUndefinedKeyword | namedTypes.TSUnknownKeyword | namedTypes.TSVoidKeyword | namedTypes.TSIntrinsicKeyword | namedTypes.TSThisType | namedTypes.TSArrayType | namedTypes.TSLiteralType | namedTypes.TSUnionType | namedTypes.TSIntersectionType | namedTypes.TSConditionalType | namedTypes.TSInferType | namedTypes.TSTypeParameter | namedTypes.TSParenthesizedType | namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSMappedType | namedTypes.TSTupleType | namedTypes.TSNamedTupleMember | namedTypes.TSRestType | namedTypes.TSOptionalType | namedTypes.TSIndexedAccessType | namedTypes.TSTypeOperator | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSTypePredicate | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumMember | namedTypes.TSTypeQuery | namedTypes.TSImportType | namedTypes.TSTypeLiteral | namedTypes.TSTypeAssertion | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleBlock | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceBody | namedTypes.TSInterfaceDeclaration | namedTypes.TSParameterProperty;
|
|
3
3
|
export declare type SourceLocationKind = namedTypes.SourceLocation;
|
|
4
|
-
export declare type NodeKind = namedTypes.File | namedTypes.Program | namedTypes.Identifier | namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.SwitchCase | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.CatchClause | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.FunctionExpression | namedTypes.VariableDeclarator | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Property | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.RestElement | namedTypes.TypeAnnotation | namedTypes.TSTypeAnnotation | namedTypes.SpreadElementPattern | namedTypes.ArrowFunctionExpression | namedTypes.ForOfStatement | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionBlock | namedTypes.ComprehensionExpression | namedTypes.ObjectProperty | namedTypes.PropertyPattern | namedTypes.ObjectPattern | namedTypes.ArrayPattern | namedTypes.SpreadElement | namedTypes.AssignmentPattern | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ClassExpression | namedTypes.Super | namedTypes.ImportSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ImportDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportSpecifier | namedTypes.ExportDefaultDeclaration | namedTypes.ExportAllDeclaration | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.TemplateElement | namedTypes.MetaProperty | namedTypes.AwaitExpression | namedTypes.SpreadProperty | namedTypes.SpreadPropertyPattern | namedTypes.ImportExpression | namedTypes.
|
|
4
|
+
export declare type NodeKind = namedTypes.File | namedTypes.Program | namedTypes.Identifier | namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.SwitchCase | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.CatchClause | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.FunctionExpression | namedTypes.VariableDeclarator | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Property | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.RestElement | namedTypes.TypeAnnotation | namedTypes.TSTypeAnnotation | namedTypes.SpreadElementPattern | namedTypes.ArrowFunctionExpression | namedTypes.ForOfStatement | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionBlock | namedTypes.ComprehensionExpression | namedTypes.ObjectProperty | namedTypes.PropertyPattern | namedTypes.ObjectPattern | namedTypes.ArrayPattern | namedTypes.SpreadElement | namedTypes.AssignmentPattern | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ClassExpression | namedTypes.Super | namedTypes.ImportSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ImportDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportSpecifier | namedTypes.ExportDefaultDeclaration | namedTypes.ExportAllDeclaration | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.TemplateElement | namedTypes.MetaProperty | namedTypes.AwaitExpression | namedTypes.SpreadProperty | namedTypes.SpreadPropertyPattern | namedTypes.ImportExpression | namedTypes.ChainExpression | namedTypes.OptionalCallExpression | namedTypes.OptionalMemberExpression | namedTypes.StaticBlock | namedTypes.Decorator | namedTypes.PrivateName | namedTypes.ClassPrivateProperty | namedTypes.ImportAttribute | namedTypes.RecordExpression | namedTypes.ObjectMethod | namedTypes.TupleExpression | namedTypes.ModuleExpression | namedTypes.JSXAttribute | namedTypes.JSXIdentifier | namedTypes.JSXNamespacedName | namedTypes.JSXExpressionContainer | namedTypes.JSXElement | namedTypes.JSXFragment | namedTypes.JSXMemberExpression | namedTypes.JSXSpreadAttribute | namedTypes.JSXEmptyExpression | namedTypes.JSXText | namedTypes.JSXSpreadChild | namedTypes.JSXOpeningElement | namedTypes.JSXClosingElement | namedTypes.JSXOpeningFragment | namedTypes.JSXClosingFragment | namedTypes.TypeParameterDeclaration | namedTypes.TSTypeParameterDeclaration | namedTypes.TypeParameterInstantiation | namedTypes.TSTypeParameterInstantiation | namedTypes.ClassImplements | namedTypes.TSExpressionWithTypeArguments | namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.SymbolTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.BigIntTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.BigIntLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.FunctionTypeParam | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.ObjectTypeProperty | namedTypes.ObjectTypeSpreadProperty | namedTypes.ObjectTypeIndexer | namedTypes.ObjectTypeCallProperty | namedTypes.ObjectTypeInternalSlot | namedTypes.Variance | namedTypes.QualifiedTypeIdentifier | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.IndexedAccessType | namedTypes.OptionalIndexedAccessType | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.InterfaceExtends | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.DeclareTypeAlias | namedTypes.OpaqueType | namedTypes.DeclareOpaqueType | namedTypes.TypeCastExpression | namedTypes.TupleTypeAnnotation | namedTypes.DeclareVariable | namedTypes.DeclareFunction | namedTypes.DeclareClass | namedTypes.DeclareModule | namedTypes.DeclareModuleExports | namedTypes.DeclareExportDeclaration | namedTypes.ExportBatchSpecifier | namedTypes.DeclareExportAllDeclaration | namedTypes.InferredPredicate | namedTypes.DeclaredPredicate | namedTypes.EnumDeclaration | namedTypes.ExportDeclaration | namedTypes.Noop | namedTypes.DoExpression | namedTypes.BindExpression | namedTypes.ParenthesizedExpression | namedTypes.ExportNamespaceSpecifier | namedTypes.ExportDefaultSpecifier | namedTypes.Directive | namedTypes.DirectiveLiteral | namedTypes.InterpreterDirective | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.DecimalLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.RestProperty | namedTypes.ForAwaitStatement | namedTypes.Import | namedTypes.V8IntrinsicIdentifier | namedTypes.TopicReference | namedTypes.TSQualifiedName | namedTypes.TSTypeReference | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSAnyKeyword | namedTypes.TSBigIntKeyword | namedTypes.TSBooleanKeyword | namedTypes.TSNeverKeyword | namedTypes.TSNullKeyword | namedTypes.TSNumberKeyword | namedTypes.TSObjectKeyword | namedTypes.TSStringKeyword | namedTypes.TSSymbolKeyword | namedTypes.TSUndefinedKeyword | namedTypes.TSUnknownKeyword | namedTypes.TSVoidKeyword | namedTypes.TSIntrinsicKeyword | namedTypes.TSThisType | namedTypes.TSArrayType | namedTypes.TSLiteralType | namedTypes.TSUnionType | namedTypes.TSIntersectionType | namedTypes.TSConditionalType | namedTypes.TSInferType | namedTypes.TSTypeParameter | namedTypes.TSParenthesizedType | namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSMappedType | namedTypes.TSTupleType | namedTypes.TSNamedTupleMember | namedTypes.TSRestType | namedTypes.TSOptionalType | namedTypes.TSIndexedAccessType | namedTypes.TSTypeOperator | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSTypePredicate | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumMember | namedTypes.TSTypeQuery | namedTypes.TSImportType | namedTypes.TSTypeLiteral | namedTypes.TSTypeAssertion | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleBlock | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceBody | namedTypes.TSInterfaceDeclaration | namedTypes.TSParameterProperty;
|
|
5
5
|
export declare type CommentKind = namedTypes.Block | namedTypes.Line | namedTypes.CommentBlock | namedTypes.CommentLine;
|
|
6
6
|
export declare type PositionKind = namedTypes.Position;
|
|
7
7
|
export declare type FileKind = namedTypes.File;
|
|
8
8
|
export declare type ProgramKind = namedTypes.Program;
|
|
9
|
-
export declare type StatementKind = namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.ForOfStatement | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ImportDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportDefaultDeclaration | namedTypes.ExportAllDeclaration | namedTypes.ClassPrivateProperty | namedTypes.TSTypeParameterDeclaration | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.DeclareTypeAlias | namedTypes.OpaqueType | namedTypes.DeclareOpaqueType | namedTypes.DeclareVariable | namedTypes.DeclareFunction | namedTypes.DeclareClass | namedTypes.DeclareModule | namedTypes.DeclareModuleExports | namedTypes.DeclareExportDeclaration | namedTypes.DeclareExportAllDeclaration | namedTypes.EnumDeclaration | namedTypes.ExportDeclaration | namedTypes.Noop | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.ForAwaitStatement | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceDeclaration;
|
|
9
|
+
export declare type StatementKind = namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.ForOfStatement | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ImportDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportDefaultDeclaration | namedTypes.ExportAllDeclaration | namedTypes.StaticBlock | namedTypes.ClassPrivateProperty | namedTypes.TSTypeParameterDeclaration | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.DeclareTypeAlias | namedTypes.OpaqueType | namedTypes.DeclareOpaqueType | namedTypes.DeclareVariable | namedTypes.DeclareFunction | namedTypes.DeclareClass | namedTypes.DeclareModule | namedTypes.DeclareModuleExports | namedTypes.DeclareExportDeclaration | namedTypes.DeclareExportAllDeclaration | namedTypes.EnumDeclaration | namedTypes.ExportDeclaration | namedTypes.Noop | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.ForAwaitStatement | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceDeclaration;
|
|
10
10
|
export declare type FunctionKind = namedTypes.FunctionDeclaration | namedTypes.FunctionExpression | namedTypes.ArrowFunctionExpression | namedTypes.ObjectMethod | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod;
|
|
11
|
-
export declare type ExpressionKind = namedTypes.Identifier | namedTypes.FunctionExpression | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.ArrowFunctionExpression | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionExpression | namedTypes.ClassExpression | namedTypes.Super | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.MetaProperty | namedTypes.AwaitExpression | namedTypes.ImportExpression | namedTypes.
|
|
12
|
-
export declare type PatternKind = namedTypes.Identifier | namedTypes.RestElement | namedTypes.SpreadElementPattern | namedTypes.PropertyPattern | namedTypes.ObjectPattern | namedTypes.ArrayPattern | namedTypes.AssignmentPattern | namedTypes.SpreadPropertyPattern | namedTypes.
|
|
11
|
+
export declare type ExpressionKind = namedTypes.Identifier | namedTypes.FunctionExpression | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.ArrowFunctionExpression | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionExpression | namedTypes.ClassExpression | namedTypes.Super | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.MetaProperty | namedTypes.AwaitExpression | namedTypes.ImportExpression | namedTypes.ChainExpression | namedTypes.OptionalCallExpression | namedTypes.OptionalMemberExpression | namedTypes.PrivateName | namedTypes.RecordExpression | namedTypes.TupleExpression | namedTypes.JSXIdentifier | namedTypes.JSXExpressionContainer | namedTypes.JSXElement | namedTypes.JSXFragment | namedTypes.JSXMemberExpression | namedTypes.JSXText | namedTypes.TypeCastExpression | namedTypes.DoExpression | namedTypes.BindExpression | namedTypes.ParenthesizedExpression | namedTypes.DirectiveLiteral | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.DecimalLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral | namedTypes.Import | namedTypes.V8IntrinsicIdentifier | namedTypes.TopicReference | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSTypeParameter | namedTypes.TSTypeAssertion;
|
|
12
|
+
export declare type PatternKind = namedTypes.Identifier | namedTypes.RestElement | namedTypes.SpreadElementPattern | namedTypes.PropertyPattern | namedTypes.ObjectPattern | namedTypes.ArrayPattern | namedTypes.AssignmentPattern | namedTypes.SpreadPropertyPattern | namedTypes.PrivateName | namedTypes.JSXIdentifier | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSTypeParameter | namedTypes.TSTypeAssertion | namedTypes.TSParameterProperty;
|
|
13
13
|
export declare type IdentifierKind = namedTypes.Identifier | namedTypes.JSXIdentifier | namedTypes.TSTypeParameter;
|
|
14
14
|
export declare type BlockStatementKind = namedTypes.BlockStatement;
|
|
15
15
|
export declare type EmptyStatementKind = namedTypes.EmptyStatement;
|
|
@@ -28,7 +28,7 @@ export declare type CatchClauseKind = namedTypes.CatchClause;
|
|
|
28
28
|
export declare type WhileStatementKind = namedTypes.WhileStatement;
|
|
29
29
|
export declare type DoWhileStatementKind = namedTypes.DoWhileStatement;
|
|
30
30
|
export declare type ForStatementKind = namedTypes.ForStatement;
|
|
31
|
-
export declare type DeclarationKind = namedTypes.VariableDeclaration | namedTypes.FunctionDeclaration | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ImportDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportDefaultDeclaration | namedTypes.ExportAllDeclaration | namedTypes.ClassPrivateProperty | namedTypes.TSTypeParameterDeclaration | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.DeclareTypeAlias | namedTypes.OpaqueType | namedTypes.DeclareOpaqueType | namedTypes.DeclareClass | namedTypes.DeclareExportDeclaration | namedTypes.DeclareExportAllDeclaration | namedTypes.EnumDeclaration | namedTypes.ExportDeclaration | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceDeclaration;
|
|
31
|
+
export declare type DeclarationKind = namedTypes.VariableDeclaration | namedTypes.FunctionDeclaration | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ImportDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportDefaultDeclaration | namedTypes.ExportAllDeclaration | namedTypes.StaticBlock | namedTypes.ClassPrivateProperty | namedTypes.TSTypeParameterDeclaration | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.DeclareTypeAlias | namedTypes.OpaqueType | namedTypes.DeclareOpaqueType | namedTypes.DeclareClass | namedTypes.DeclareExportDeclaration | namedTypes.DeclareExportAllDeclaration | namedTypes.EnumDeclaration | namedTypes.ExportDeclaration | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceDeclaration;
|
|
32
32
|
export declare type VariableDeclarationKind = namedTypes.VariableDeclaration;
|
|
33
33
|
export declare type ForInStatementKind = namedTypes.ForInStatement;
|
|
34
34
|
export declare type DebuggerStatementKind = namedTypes.DebuggerStatement;
|
|
@@ -39,11 +39,12 @@ export declare type ThisExpressionKind = namedTypes.ThisExpression;
|
|
|
39
39
|
export declare type ArrayExpressionKind = namedTypes.ArrayExpression;
|
|
40
40
|
export declare type ObjectExpressionKind = namedTypes.ObjectExpression;
|
|
41
41
|
export declare type PropertyKind = namedTypes.Property;
|
|
42
|
-
export declare type LiteralKind = namedTypes.Literal | namedTypes.JSXText | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral;
|
|
42
|
+
export declare type LiteralKind = namedTypes.Literal | namedTypes.JSXText | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.DecimalLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral;
|
|
43
43
|
export declare type SequenceExpressionKind = namedTypes.SequenceExpression;
|
|
44
44
|
export declare type UnaryExpressionKind = namedTypes.UnaryExpression;
|
|
45
45
|
export declare type BinaryExpressionKind = namedTypes.BinaryExpression;
|
|
46
46
|
export declare type AssignmentExpressionKind = namedTypes.AssignmentExpression;
|
|
47
|
+
export declare type ChainElementKind = namedTypes.MemberExpression | namedTypes.CallExpression | namedTypes.OptionalCallExpression | namedTypes.OptionalMemberExpression | namedTypes.JSXMemberExpression;
|
|
47
48
|
export declare type MemberExpressionKind = namedTypes.MemberExpression | namedTypes.OptionalMemberExpression | namedTypes.JSXMemberExpression;
|
|
48
49
|
export declare type UpdateExpressionKind = namedTypes.UpdateExpression;
|
|
49
50
|
export declare type LogicalExpressionKind = namedTypes.LogicalExpression;
|
|
@@ -91,8 +92,18 @@ export declare type AwaitExpressionKind = namedTypes.AwaitExpression;
|
|
|
91
92
|
export declare type SpreadPropertyKind = namedTypes.SpreadProperty;
|
|
92
93
|
export declare type SpreadPropertyPatternKind = namedTypes.SpreadPropertyPattern;
|
|
93
94
|
export declare type ImportExpressionKind = namedTypes.ImportExpression;
|
|
94
|
-
export declare type
|
|
95
|
+
export declare type ChainExpressionKind = namedTypes.ChainExpression;
|
|
95
96
|
export declare type OptionalCallExpressionKind = namedTypes.OptionalCallExpression;
|
|
97
|
+
export declare type OptionalMemberExpressionKind = namedTypes.OptionalMemberExpression;
|
|
98
|
+
export declare type StaticBlockKind = namedTypes.StaticBlock;
|
|
99
|
+
export declare type DecoratorKind = namedTypes.Decorator;
|
|
100
|
+
export declare type PrivateNameKind = namedTypes.PrivateName;
|
|
101
|
+
export declare type ClassPrivatePropertyKind = namedTypes.ClassPrivateProperty;
|
|
102
|
+
export declare type ImportAttributeKind = namedTypes.ImportAttribute;
|
|
103
|
+
export declare type RecordExpressionKind = namedTypes.RecordExpression;
|
|
104
|
+
export declare type ObjectMethodKind = namedTypes.ObjectMethod;
|
|
105
|
+
export declare type TupleExpressionKind = namedTypes.TupleExpression;
|
|
106
|
+
export declare type ModuleExpressionKind = namedTypes.ModuleExpression;
|
|
96
107
|
export declare type JSXAttributeKind = namedTypes.JSXAttribute;
|
|
97
108
|
export declare type JSXIdentifierKind = namedTypes.JSXIdentifier;
|
|
98
109
|
export declare type JSXNamespacedNameKind = namedTypes.JSXNamespacedName;
|
|
@@ -108,19 +119,16 @@ export declare type JSXOpeningElementKind = namedTypes.JSXOpeningElement;
|
|
|
108
119
|
export declare type JSXClosingElementKind = namedTypes.JSXClosingElement;
|
|
109
120
|
export declare type JSXOpeningFragmentKind = namedTypes.JSXOpeningFragment;
|
|
110
121
|
export declare type JSXClosingFragmentKind = namedTypes.JSXClosingFragment;
|
|
111
|
-
export declare type DecoratorKind = namedTypes.Decorator;
|
|
112
|
-
export declare type PrivateNameKind = namedTypes.PrivateName;
|
|
113
|
-
export declare type ClassPrivatePropertyKind = namedTypes.ClassPrivateProperty;
|
|
114
122
|
export declare type TypeParameterDeclarationKind = namedTypes.TypeParameterDeclaration;
|
|
115
123
|
export declare type TSTypeParameterDeclarationKind = namedTypes.TSTypeParameterDeclaration;
|
|
116
124
|
export declare type TypeParameterInstantiationKind = namedTypes.TypeParameterInstantiation;
|
|
117
125
|
export declare type TSTypeParameterInstantiationKind = namedTypes.TSTypeParameterInstantiation;
|
|
118
126
|
export declare type ClassImplementsKind = namedTypes.ClassImplements;
|
|
119
|
-
export declare type TSTypeKind = namedTypes.TSExpressionWithTypeArguments | namedTypes.TSTypeReference | namedTypes.TSAnyKeyword | namedTypes.TSBigIntKeyword | namedTypes.TSBooleanKeyword | namedTypes.TSNeverKeyword | namedTypes.TSNullKeyword | namedTypes.TSNumberKeyword | namedTypes.TSObjectKeyword | namedTypes.TSStringKeyword | namedTypes.TSSymbolKeyword | namedTypes.TSUndefinedKeyword | namedTypes.TSUnknownKeyword | namedTypes.TSVoidKeyword | namedTypes.TSThisType | namedTypes.TSArrayType | namedTypes.TSLiteralType | namedTypes.TSUnionType | namedTypes.TSIntersectionType | namedTypes.TSConditionalType | namedTypes.TSInferType | namedTypes.TSParenthesizedType | namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSMappedType | namedTypes.TSTupleType | namedTypes.TSNamedTupleMember | namedTypes.TSRestType | namedTypes.TSOptionalType | namedTypes.TSIndexedAccessType | namedTypes.TSTypeOperator | namedTypes.TSTypePredicate | namedTypes.TSTypeQuery | namedTypes.TSImportType | namedTypes.TSTypeLiteral;
|
|
127
|
+
export declare type TSTypeKind = namedTypes.TSExpressionWithTypeArguments | namedTypes.TSTypeReference | namedTypes.TSAnyKeyword | namedTypes.TSBigIntKeyword | namedTypes.TSBooleanKeyword | namedTypes.TSNeverKeyword | namedTypes.TSNullKeyword | namedTypes.TSNumberKeyword | namedTypes.TSObjectKeyword | namedTypes.TSStringKeyword | namedTypes.TSSymbolKeyword | namedTypes.TSUndefinedKeyword | namedTypes.TSUnknownKeyword | namedTypes.TSVoidKeyword | namedTypes.TSIntrinsicKeyword | namedTypes.TSThisType | namedTypes.TSArrayType | namedTypes.TSLiteralType | namedTypes.TSUnionType | namedTypes.TSIntersectionType | namedTypes.TSConditionalType | namedTypes.TSInferType | namedTypes.TSParenthesizedType | namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSMappedType | namedTypes.TSTupleType | namedTypes.TSNamedTupleMember | namedTypes.TSRestType | namedTypes.TSOptionalType | namedTypes.TSIndexedAccessType | namedTypes.TSTypeOperator | namedTypes.TSTypePredicate | namedTypes.TSTypeQuery | namedTypes.TSImportType | namedTypes.TSTypeLiteral;
|
|
120
128
|
export declare type TSHasOptionalTypeParameterInstantiationKind = namedTypes.TSExpressionWithTypeArguments | namedTypes.TSTypeReference | namedTypes.TSImportType;
|
|
121
129
|
export declare type TSExpressionWithTypeArgumentsKind = namedTypes.TSExpressionWithTypeArguments;
|
|
122
|
-
export declare type FlowKind = namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.SymbolTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.BigIntTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.BigIntLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.TupleTypeAnnotation | namedTypes.InferredPredicate | namedTypes.DeclaredPredicate;
|
|
123
|
-
export declare type FlowTypeKind = namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.SymbolTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.BigIntTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.BigIntLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.TupleTypeAnnotation;
|
|
130
|
+
export declare type FlowKind = namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.SymbolTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.BigIntTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.BigIntLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.IndexedAccessType | namedTypes.OptionalIndexedAccessType | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.TupleTypeAnnotation | namedTypes.InferredPredicate | namedTypes.DeclaredPredicate;
|
|
131
|
+
export declare type FlowTypeKind = namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.SymbolTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.BigIntTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.BigIntLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.IndexedAccessType | namedTypes.OptionalIndexedAccessType | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.TupleTypeAnnotation;
|
|
124
132
|
export declare type AnyTypeAnnotationKind = namedTypes.AnyTypeAnnotation;
|
|
125
133
|
export declare type EmptyTypeAnnotationKind = namedTypes.EmptyTypeAnnotation;
|
|
126
134
|
export declare type MixedTypeAnnotationKind = namedTypes.MixedTypeAnnotation;
|
|
@@ -154,6 +162,8 @@ export declare type VarianceKind = namedTypes.Variance;
|
|
|
154
162
|
export declare type QualifiedTypeIdentifierKind = namedTypes.QualifiedTypeIdentifier;
|
|
155
163
|
export declare type GenericTypeAnnotationKind = namedTypes.GenericTypeAnnotation;
|
|
156
164
|
export declare type MemberTypeAnnotationKind = namedTypes.MemberTypeAnnotation;
|
|
165
|
+
export declare type IndexedAccessTypeKind = namedTypes.IndexedAccessType;
|
|
166
|
+
export declare type OptionalIndexedAccessTypeKind = namedTypes.OptionalIndexedAccessType;
|
|
157
167
|
export declare type UnionTypeAnnotationKind = namedTypes.UnionTypeAnnotation;
|
|
158
168
|
export declare type IntersectionTypeAnnotationKind = namedTypes.IntersectionTypeAnnotation;
|
|
159
169
|
export declare type TypeofTypeAnnotationKind = namedTypes.TypeofTypeAnnotation;
|
|
@@ -205,15 +215,17 @@ export declare type InterpreterDirectiveKind = namedTypes.InterpreterDirective;
|
|
|
205
215
|
export declare type StringLiteralKind = namedTypes.StringLiteral;
|
|
206
216
|
export declare type NumericLiteralKind = namedTypes.NumericLiteral;
|
|
207
217
|
export declare type BigIntLiteralKind = namedTypes.BigIntLiteral;
|
|
218
|
+
export declare type DecimalLiteralKind = namedTypes.DecimalLiteral;
|
|
208
219
|
export declare type NullLiteralKind = namedTypes.NullLiteral;
|
|
209
220
|
export declare type BooleanLiteralKind = namedTypes.BooleanLiteral;
|
|
210
221
|
export declare type RegExpLiteralKind = namedTypes.RegExpLiteral;
|
|
211
|
-
export declare type ObjectMethodKind = namedTypes.ObjectMethod;
|
|
212
222
|
export declare type ClassMethodKind = namedTypes.ClassMethod;
|
|
213
223
|
export declare type ClassPrivateMethodKind = namedTypes.ClassPrivateMethod;
|
|
214
224
|
export declare type RestPropertyKind = namedTypes.RestProperty;
|
|
215
225
|
export declare type ForAwaitStatementKind = namedTypes.ForAwaitStatement;
|
|
216
226
|
export declare type ImportKind = namedTypes.Import;
|
|
227
|
+
export declare type V8IntrinsicIdentifierKind = namedTypes.V8IntrinsicIdentifier;
|
|
228
|
+
export declare type TopicReferenceKind = namedTypes.TopicReference;
|
|
217
229
|
export declare type TSQualifiedNameKind = namedTypes.TSQualifiedName;
|
|
218
230
|
export declare type TSTypeReferenceKind = namedTypes.TSTypeReference;
|
|
219
231
|
export declare type TSHasOptionalTypeParametersKind = namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSMethodSignature | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSInterfaceDeclaration;
|
|
@@ -232,6 +244,7 @@ export declare type TSSymbolKeywordKind = namedTypes.TSSymbolKeyword;
|
|
|
232
244
|
export declare type TSUndefinedKeywordKind = namedTypes.TSUndefinedKeyword;
|
|
233
245
|
export declare type TSUnknownKeywordKind = namedTypes.TSUnknownKeyword;
|
|
234
246
|
export declare type TSVoidKeywordKind = namedTypes.TSVoidKeyword;
|
|
247
|
+
export declare type TSIntrinsicKeywordKind = namedTypes.TSIntrinsicKeyword;
|
|
235
248
|
export declare type TSThisTypeKind = namedTypes.TSThisType;
|
|
236
249
|
export declare type TSArrayTypeKind = namedTypes.TSArrayType;
|
|
237
250
|
export declare type TSLiteralTypeKind = namedTypes.TSLiteralType;
|