ast-types 0.15.2 → 0.16.0
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/{def → lib/def}/babel-core.d.ts +0 -0
- package/{def → lib/def}/babel-core.js +29 -12
- package/lib/def/babel-core.js.map +1 -0
- package/{def → lib/def}/babel.d.ts +0 -0
- package/{def → lib/def}/babel.js +7 -5
- package/lib/def/babel.js.map +1 -0
- package/{def → lib/def}/core.d.ts +0 -0
- package/{def → lib/def}/core.js +7 -5
- package/lib/def/core.js.map +1 -0
- package/{def → lib/def}/es-proposals.d.ts +0 -0
- package/{def → lib/def}/es-proposals.js +7 -5
- package/lib/def/es-proposals.js.map +1 -0
- package/{def → lib/def}/es2016.d.ts +0 -0
- package/{def → lib/def}/es2016.js +7 -4
- package/lib/def/es2016.js.map +1 -0
- package/{def → lib/def}/es2017.d.ts +0 -0
- package/{def → lib/def}/es2017.js +7 -5
- package/lib/def/es2017.js.map +1 -0
- package/{def → lib/def}/es2018.d.ts +0 -0
- package/{def → lib/def}/es2018.js +7 -5
- package/lib/def/es2018.js.map +1 -0
- package/{def → lib/def}/es2019.d.ts +0 -0
- package/{def → lib/def}/es2019.js +7 -5
- package/lib/def/es2019.js.map +1 -0
- package/{def → lib/def}/es2020.d.ts +0 -0
- package/{def → lib/def}/es2020.js +10 -7
- package/lib/def/es2020.js.map +1 -0
- package/{def → lib/def}/es2021.d.ts +0 -0
- package/{def → lib/def}/es2021.js +6 -4
- package/lib/def/es2021.js.map +1 -0
- package/{def → lib/def}/es2022.d.ts +0 -0
- package/{def → lib/def}/es2022.js +6 -4
- package/lib/def/es2022.js.map +1 -0
- package/{def → lib/def}/es6.d.ts +0 -0
- package/{def → lib/def}/es6.js +8 -6
- package/lib/def/es6.js.map +1 -0
- package/{def → lib/def}/esprima.d.ts +0 -0
- package/{def → lib/def}/esprima.js +7 -5
- package/lib/def/esprima.js.map +1 -0
- package/{def → lib/def}/flow.d.ts +0 -0
- package/{def → lib/def}/flow.js +8 -6
- package/lib/def/flow.js.map +1 -0
- package/{def → lib/def}/jsx.d.ts +0 -0
- package/{def → lib/def}/jsx.js +7 -5
- package/lib/def/jsx.js.map +1 -0
- package/{def → lib/def}/operators/core.d.ts +0 -0
- package/{def → lib/def}/operators/core.js +4 -2
- package/lib/def/operators/core.js.map +1 -0
- package/{def → lib/def}/operators/es2016.d.ts +0 -0
- package/{def → lib/def}/operators/es2016.js +5 -3
- package/lib/def/operators/es2016.js.map +1 -0
- package/{def → lib/def}/operators/es2020.d.ts +0 -0
- package/{def → lib/def}/operators/es2020.js +5 -3
- package/lib/def/operators/es2020.js.map +1 -0
- package/{def → lib/def}/operators/es2021.d.ts +0 -0
- package/{def → lib/def}/operators/es2021.js +5 -3
- package/lib/def/operators/es2021.js.map +1 -0
- package/{def → lib/def}/type-annotations.d.ts +0 -0
- package/{def → lib/def}/type-annotations.js +6 -4
- package/lib/def/type-annotations.js.map +1 -0
- package/{def → lib/def}/typescript.d.ts +0 -0
- package/{def → lib/def}/typescript.js +27 -9
- package/lib/def/typescript.js.map +1 -0
- package/lib/equiv.d.ts +1 -1
- package/lib/equiv.js +6 -3
- package/lib/equiv.js.map +1 -0
- package/{fork.d.ts → lib/fork.d.ts} +18 -18
- package/{fork.js → lib/fork.js} +10 -7
- package/lib/fork.js.map +1 -0
- package/{gen → lib/gen}/builders.d.ts +79 -29
- package/{gen → lib/gen}/builders.js +1 -0
- package/lib/gen/builders.js.map +1 -0
- package/lib/gen/kinds.d.ts +293 -0
- package/{gen → lib/gen}/kinds.js +1 -0
- package/lib/gen/kinds.js.map +1 -0
- package/{gen → lib/gen}/namedTypes.d.ts +63 -28
- package/{gen → lib/gen}/namedTypes.js +1 -0
- package/lib/gen/namedTypes.js.map +1 -0
- package/{gen → lib/gen}/visitor.d.ts +8 -4
- package/{gen → lib/gen}/visitor.js +1 -0
- package/lib/gen/visitor.js.map +1 -0
- package/{main.d.ts → lib/main.d.ts} +4 -4
- package/{main.js → lib/main.js} +8 -7
- package/lib/main.js.map +1 -0
- package/lib/node-path.d.ts +1 -2
- package/lib/node-path.js +8 -5
- package/lib/node-path.js.map +1 -0
- package/lib/path-visitor.d.ts +2 -3
- package/lib/path-visitor.js +7 -4
- package/lib/path-visitor.js.map +1 -0
- package/lib/path.d.ts +1 -2
- package/lib/path.js +6 -3
- package/lib/path.js.map +1 -0
- package/lib/scope.d.ts +1 -1
- package/lib/scope.js +6 -3
- package/lib/scope.js.map +1 -0
- package/lib/shared.d.ts +9 -1
- package/lib/shared.js +47 -3
- package/lib/shared.js.map +1 -0
- package/lib/types.d.ts +12 -8
- package/lib/types.js +16 -9
- package/lib/types.js.map +1 -0
- package/package.json +24 -21
- package/.github/dependabot.yml +0 -9
- package/.github/workflows/main.yml +0 -29
- package/gen/kinds.d.ts +0 -289
- package/tsconfig.json +0 -21
- package/types.d.ts +0 -5
- package/types.js +0 -2
|
@@ -523,12 +523,12 @@ export interface PropertyPatternBuilder {
|
|
|
523
523
|
}): namedTypes.PropertyPattern;
|
|
524
524
|
}
|
|
525
525
|
export interface ObjectPatternBuilder {
|
|
526
|
-
(properties: (K.PropertyKind | K.PropertyPatternKind | K.SpreadPropertyPatternKind | K.SpreadPropertyKind | K.ObjectPropertyKind | K.RestPropertyKind)[]): namedTypes.ObjectPattern;
|
|
526
|
+
(properties: (K.PropertyKind | K.PropertyPatternKind | K.SpreadPropertyPatternKind | K.SpreadPropertyKind | K.ObjectPropertyKind | K.RestPropertyKind | K.RestElementKind)[]): namedTypes.ObjectPattern;
|
|
527
527
|
from(params: {
|
|
528
528
|
comments?: K.CommentKind[] | null;
|
|
529
529
|
decorators?: K.DecoratorKind[] | null;
|
|
530
530
|
loc?: K.SourceLocationKind | null;
|
|
531
|
-
properties: (K.PropertyKind | K.PropertyPatternKind | K.SpreadPropertyPatternKind | K.SpreadPropertyKind | K.ObjectPropertyKind | K.RestPropertyKind)[];
|
|
531
|
+
properties: (K.PropertyKind | K.PropertyPatternKind | K.SpreadPropertyPatternKind | K.SpreadPropertyKind | K.ObjectPropertyKind | K.RestPropertyKind | K.RestElementKind)[];
|
|
532
532
|
typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
533
533
|
}): namedTypes.ObjectPattern;
|
|
534
534
|
}
|
|
@@ -571,10 +571,10 @@ export interface MethodDefinitionBuilder {
|
|
|
571
571
|
}): namedTypes.MethodDefinition;
|
|
572
572
|
}
|
|
573
573
|
export interface ClassPropertyDefinitionBuilder {
|
|
574
|
-
(definition: K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind): namedTypes.ClassPropertyDefinition;
|
|
574
|
+
(definition: K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind | K.StaticBlockKind): namedTypes.ClassPropertyDefinition;
|
|
575
575
|
from(params: {
|
|
576
576
|
comments?: K.CommentKind[] | null;
|
|
577
|
-
definition: K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind;
|
|
577
|
+
definition: K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind | K.StaticBlockKind;
|
|
578
578
|
loc?: K.SourceLocationKind | null;
|
|
579
579
|
}): namedTypes.ClassPropertyDefinition;
|
|
580
580
|
}
|
|
@@ -592,10 +592,18 @@ export interface ClassPropertyBuilder {
|
|
|
592
592
|
variance?: K.VarianceKind | "plus" | "minus" | null;
|
|
593
593
|
}): namedTypes.ClassProperty;
|
|
594
594
|
}
|
|
595
|
+
export interface StaticBlockBuilder {
|
|
596
|
+
(body: K.StatementKind[]): namedTypes.StaticBlock;
|
|
597
|
+
from(params: {
|
|
598
|
+
body: K.StatementKind[];
|
|
599
|
+
comments?: K.CommentKind[] | null;
|
|
600
|
+
loc?: K.SourceLocationKind | null;
|
|
601
|
+
}): namedTypes.StaticBlock;
|
|
602
|
+
}
|
|
595
603
|
export interface ClassBodyBuilder {
|
|
596
|
-
(body: (K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind | K.ClassPrivatePropertyKind | K.ClassMethodKind | K.ClassPrivateMethodKind | K.TSDeclareMethodKind | K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]): namedTypes.ClassBody;
|
|
604
|
+
(body: (K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind | K.ClassPrivatePropertyKind | K.ClassAccessorPropertyKind | K.ClassMethodKind | K.ClassPrivateMethodKind | K.StaticBlockKind | K.TSDeclareMethodKind | K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]): namedTypes.ClassBody;
|
|
597
605
|
from(params: {
|
|
598
|
-
body: (K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind | K.ClassPrivatePropertyKind | K.ClassMethodKind | K.ClassPrivateMethodKind | K.TSDeclareMethodKind | K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[];
|
|
606
|
+
body: (K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind | K.ClassPrivatePropertyKind | K.ClassAccessorPropertyKind | K.ClassMethodKind | K.ClassPrivateMethodKind | K.StaticBlockKind | K.TSDeclareMethodKind | K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[];
|
|
599
607
|
comments?: K.CommentKind[] | null;
|
|
600
608
|
loc?: K.SourceLocationKind | null;
|
|
601
609
|
}): namedTypes.ClassBody;
|
|
@@ -706,11 +714,11 @@ export interface ExportDefaultDeclarationBuilder {
|
|
|
706
714
|
}): namedTypes.ExportDefaultDeclaration;
|
|
707
715
|
}
|
|
708
716
|
export interface ExportAllDeclarationBuilder {
|
|
709
|
-
(source: K.LiteralKind, exported
|
|
717
|
+
(source: K.LiteralKind, exported?: K.IdentifierKind | null | undefined): namedTypes.ExportAllDeclaration;
|
|
710
718
|
from(params: {
|
|
711
719
|
assertions?: K.ImportAttributeKind[];
|
|
712
720
|
comments?: K.CommentKind[] | null;
|
|
713
|
-
exported
|
|
721
|
+
exported?: K.IdentifierKind | null | undefined;
|
|
714
722
|
loc?: K.SourceLocationKind | null;
|
|
715
723
|
source: K.LiteralKind;
|
|
716
724
|
}): namedTypes.ExportAllDeclaration;
|
|
@@ -820,14 +828,6 @@ export interface OptionalMemberExpressionBuilder {
|
|
|
820
828
|
property: K.IdentifierKind | K.ExpressionKind;
|
|
821
829
|
}): namedTypes.OptionalMemberExpression;
|
|
822
830
|
}
|
|
823
|
-
export interface StaticBlockBuilder {
|
|
824
|
-
(body: K.StatementKind[]): namedTypes.StaticBlock;
|
|
825
|
-
from(params: {
|
|
826
|
-
body: K.StatementKind[];
|
|
827
|
-
comments?: K.CommentKind[] | null;
|
|
828
|
-
loc?: K.SourceLocationKind | null;
|
|
829
|
-
}): namedTypes.StaticBlock;
|
|
830
|
-
}
|
|
831
831
|
export interface DecoratorBuilder {
|
|
832
832
|
(expression: K.ExpressionKind): namedTypes.Decorator;
|
|
833
833
|
from(params: {
|
|
@@ -1884,9 +1884,9 @@ export interface RegExpLiteralBuilder {
|
|
|
1884
1884
|
}): namedTypes.RegExpLiteral;
|
|
1885
1885
|
}
|
|
1886
1886
|
export interface ClassMethodBuilder {
|
|
1887
|
-
(kind: "get" | "set" | "method" | "constructor" | undefined, key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, params: K.PatternKind[], body: K.BlockStatementKind, computed?: boolean, staticParam?: boolean
|
|
1887
|
+
(kind: "get" | "set" | "method" | "constructor" | undefined, key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, params: K.PatternKind[], body: K.BlockStatementKind, computed?: boolean, staticParam?: boolean): namedTypes.ClassMethod;
|
|
1888
1888
|
from(params: {
|
|
1889
|
-
abstract?: boolean
|
|
1889
|
+
abstract?: boolean;
|
|
1890
1890
|
access?: "public" | "private" | "protected" | null;
|
|
1891
1891
|
accessibility?: "public" | "private" | "protected" | null;
|
|
1892
1892
|
async?: boolean;
|
|
@@ -1901,19 +1901,20 @@ export interface ClassMethodBuilder {
|
|
|
1901
1901
|
key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind;
|
|
1902
1902
|
kind?: "get" | "set" | "method" | "constructor";
|
|
1903
1903
|
loc?: K.SourceLocationKind | null;
|
|
1904
|
-
optional?: boolean
|
|
1904
|
+
optional?: boolean;
|
|
1905
1905
|
params: K.PatternKind[];
|
|
1906
1906
|
predicate?: K.FlowPredicateKind | null;
|
|
1907
|
+
readonly?: boolean;
|
|
1907
1908
|
rest?: K.IdentifierKind | null;
|
|
1908
1909
|
returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
1909
|
-
static?: boolean
|
|
1910
|
+
static?: boolean;
|
|
1910
1911
|
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
1911
1912
|
}): namedTypes.ClassMethod;
|
|
1912
1913
|
}
|
|
1913
1914
|
export interface ClassPrivateMethodBuilder {
|
|
1914
|
-
(key: K.PrivateNameKind, params: K.PatternKind[], body: K.BlockStatementKind, kind?: "get" | "set" | "method" | "constructor", computed?: boolean, staticParam?: boolean
|
|
1915
|
+
(key: K.PrivateNameKind, params: K.PatternKind[], body: K.BlockStatementKind, kind?: "get" | "set" | "method" | "constructor", computed?: boolean, staticParam?: boolean): namedTypes.ClassPrivateMethod;
|
|
1915
1916
|
from(params: {
|
|
1916
|
-
abstract?: boolean
|
|
1917
|
+
abstract?: boolean;
|
|
1917
1918
|
access?: "public" | "private" | "protected" | null;
|
|
1918
1919
|
accessibility?: "public" | "private" | "protected" | null;
|
|
1919
1920
|
async?: boolean;
|
|
@@ -1928,15 +1929,33 @@ export interface ClassPrivateMethodBuilder {
|
|
|
1928
1929
|
key: K.PrivateNameKind;
|
|
1929
1930
|
kind?: "get" | "set" | "method" | "constructor";
|
|
1930
1931
|
loc?: K.SourceLocationKind | null;
|
|
1931
|
-
optional?: boolean
|
|
1932
|
+
optional?: boolean;
|
|
1932
1933
|
params: K.PatternKind[];
|
|
1933
1934
|
predicate?: K.FlowPredicateKind | null;
|
|
1935
|
+
readonly?: boolean;
|
|
1934
1936
|
rest?: K.IdentifierKind | null;
|
|
1935
1937
|
returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
1936
|
-
static?: boolean
|
|
1938
|
+
static?: boolean;
|
|
1937
1939
|
typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
|
|
1938
1940
|
}): namedTypes.ClassPrivateMethod;
|
|
1939
1941
|
}
|
|
1942
|
+
export interface ClassAccessorPropertyBuilder {
|
|
1943
|
+
(key: K.LiteralKind | K.IdentifierKind | K.PrivateNameKind | K.ExpressionKind, value: K.ExpressionKind, decorators?: K.DecoratorKind[] | null, computed?: boolean, staticParam?: boolean): namedTypes.ClassAccessorProperty;
|
|
1944
|
+
from(params: {
|
|
1945
|
+
abstract?: boolean;
|
|
1946
|
+
accessibility?: "public" | "private" | "protected" | null;
|
|
1947
|
+
comments?: K.CommentKind[] | null;
|
|
1948
|
+
computed?: boolean;
|
|
1949
|
+
decorators?: K.DecoratorKind[] | null;
|
|
1950
|
+
key: K.LiteralKind | K.IdentifierKind | K.PrivateNameKind | K.ExpressionKind;
|
|
1951
|
+
loc?: K.SourceLocationKind | null;
|
|
1952
|
+
optional?: boolean;
|
|
1953
|
+
readonly?: boolean;
|
|
1954
|
+
static?: boolean;
|
|
1955
|
+
typeAnnotation?: K.TSTypeAnnotationKind | null;
|
|
1956
|
+
value: K.ExpressionKind;
|
|
1957
|
+
}): namedTypes.ClassAccessorProperty;
|
|
1958
|
+
}
|
|
1940
1959
|
export interface RestPropertyBuilder {
|
|
1941
1960
|
(argument: K.ExpressionKind): namedTypes.RestProperty;
|
|
1942
1961
|
from(params: {
|
|
@@ -2007,6 +2026,24 @@ export interface TSAsExpressionBuilder {
|
|
|
2007
2026
|
typeAnnotation: K.TSTypeKind;
|
|
2008
2027
|
}): namedTypes.TSAsExpression;
|
|
2009
2028
|
}
|
|
2029
|
+
export interface TSTypeCastExpressionBuilder {
|
|
2030
|
+
(expression: K.ExpressionKind, typeAnnotation: K.TSTypeKind): namedTypes.TSTypeCastExpression;
|
|
2031
|
+
from(params: {
|
|
2032
|
+
comments?: K.CommentKind[] | null;
|
|
2033
|
+
expression: K.ExpressionKind;
|
|
2034
|
+
loc?: K.SourceLocationKind | null;
|
|
2035
|
+
typeAnnotation: K.TSTypeKind;
|
|
2036
|
+
}): namedTypes.TSTypeCastExpression;
|
|
2037
|
+
}
|
|
2038
|
+
export interface TSSatisfiesExpressionBuilder {
|
|
2039
|
+
(expression: K.ExpressionKind, typeAnnotation: K.TSTypeKind): namedTypes.TSSatisfiesExpression;
|
|
2040
|
+
from(params: {
|
|
2041
|
+
comments?: K.CommentKind[] | null;
|
|
2042
|
+
expression: K.ExpressionKind;
|
|
2043
|
+
loc?: K.SourceLocationKind | null;
|
|
2044
|
+
typeAnnotation: K.TSTypeKind;
|
|
2045
|
+
}): namedTypes.TSSatisfiesExpression;
|
|
2046
|
+
}
|
|
2010
2047
|
export interface TSNonNullExpressionBuilder {
|
|
2011
2048
|
(expression: K.ExpressionKind): namedTypes.TSNonNullExpression;
|
|
2012
2049
|
from(params: {
|
|
@@ -2122,10 +2159,10 @@ export interface TSArrayTypeBuilder {
|
|
|
2122
2159
|
}): namedTypes.TSArrayType;
|
|
2123
2160
|
}
|
|
2124
2161
|
export interface TSLiteralTypeBuilder {
|
|
2125
|
-
(literal: K.NumericLiteralKind | K.StringLiteralKind | K.BooleanLiteralKind | K.TemplateLiteralKind | K.UnaryExpressionKind): namedTypes.TSLiteralType;
|
|
2162
|
+
(literal: K.NumericLiteralKind | K.StringLiteralKind | K.BooleanLiteralKind | K.TemplateLiteralKind | K.UnaryExpressionKind | K.BigIntLiteralKind): namedTypes.TSLiteralType;
|
|
2126
2163
|
from(params: {
|
|
2127
2164
|
comments?: K.CommentKind[] | null;
|
|
2128
|
-
literal: K.NumericLiteralKind | K.StringLiteralKind | K.BooleanLiteralKind | K.TemplateLiteralKind | K.UnaryExpressionKind;
|
|
2165
|
+
literal: K.NumericLiteralKind | K.StringLiteralKind | K.BooleanLiteralKind | K.TemplateLiteralKind | K.UnaryExpressionKind | K.BigIntLiteralKind;
|
|
2129
2166
|
loc?: K.SourceLocationKind | null;
|
|
2130
2167
|
}): namedTypes.TSLiteralType;
|
|
2131
2168
|
}
|
|
@@ -2165,13 +2202,13 @@ export interface TSInferTypeBuilder {
|
|
|
2165
2202
|
}): namedTypes.TSInferType;
|
|
2166
2203
|
}
|
|
2167
2204
|
export interface TSTypeParameterBuilder {
|
|
2168
|
-
(name: string, constraint?: K.TSTypeKind | undefined, defaultParam?: K.TSTypeKind | undefined): namedTypes.TSTypeParameter;
|
|
2205
|
+
(name: K.IdentifierKind | string, constraint?: K.TSTypeKind | undefined, defaultParam?: K.TSTypeKind | undefined): namedTypes.TSTypeParameter;
|
|
2169
2206
|
from(params: {
|
|
2170
2207
|
comments?: K.CommentKind[] | null;
|
|
2171
2208
|
constraint?: K.TSTypeKind | undefined;
|
|
2172
2209
|
default?: K.TSTypeKind | undefined;
|
|
2173
2210
|
loc?: K.SourceLocationKind | null;
|
|
2174
|
-
name: string;
|
|
2211
|
+
name: K.IdentifierKind | string;
|
|
2175
2212
|
optional?: boolean;
|
|
2176
2213
|
typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
|
|
2177
2214
|
}): namedTypes.TSTypeParameter;
|
|
@@ -2415,6 +2452,15 @@ export interface TSTypeAssertionBuilder {
|
|
|
2415
2452
|
typeAnnotation: K.TSTypeKind;
|
|
2416
2453
|
}): namedTypes.TSTypeAssertion;
|
|
2417
2454
|
}
|
|
2455
|
+
export interface TSInstantiationExpressionBuilder {
|
|
2456
|
+
(expression: K.ExpressionKind, typeParameters?: K.TSTypeParameterInstantiationKind | null): namedTypes.TSInstantiationExpression;
|
|
2457
|
+
from(params: {
|
|
2458
|
+
comments?: K.CommentKind[] | null;
|
|
2459
|
+
expression: K.ExpressionKind;
|
|
2460
|
+
loc?: K.SourceLocationKind | null;
|
|
2461
|
+
typeParameters?: K.TSTypeParameterInstantiationKind | null;
|
|
2462
|
+
}): namedTypes.TSInstantiationExpression;
|
|
2463
|
+
}
|
|
2418
2464
|
export interface TSEnumDeclarationBuilder {
|
|
2419
2465
|
(id: K.IdentifierKind, members: K.TSEnumMemberKind[]): namedTypes.TSEnumDeclaration;
|
|
2420
2466
|
from(params: {
|
|
@@ -2582,6 +2628,7 @@ export interface builders {
|
|
|
2582
2628
|
methodDefinition: MethodDefinitionBuilder;
|
|
2583
2629
|
classPropertyDefinition: ClassPropertyDefinitionBuilder;
|
|
2584
2630
|
classProperty: ClassPropertyBuilder;
|
|
2631
|
+
staticBlock: StaticBlockBuilder;
|
|
2585
2632
|
classBody: ClassBodyBuilder;
|
|
2586
2633
|
classDeclaration: ClassDeclarationBuilder;
|
|
2587
2634
|
classExpression: ClassExpressionBuilder;
|
|
@@ -2605,7 +2652,6 @@ export interface builders {
|
|
|
2605
2652
|
chainExpression: ChainExpressionBuilder;
|
|
2606
2653
|
optionalCallExpression: OptionalCallExpressionBuilder;
|
|
2607
2654
|
optionalMemberExpression: OptionalMemberExpressionBuilder;
|
|
2608
|
-
staticBlock: StaticBlockBuilder;
|
|
2609
2655
|
decorator: DecoratorBuilder;
|
|
2610
2656
|
privateName: PrivateNameBuilder;
|
|
2611
2657
|
classPrivateProperty: ClassPrivatePropertyBuilder;
|
|
@@ -2726,6 +2772,7 @@ export interface builders {
|
|
|
2726
2772
|
regExpLiteral: RegExpLiteralBuilder;
|
|
2727
2773
|
classMethod: ClassMethodBuilder;
|
|
2728
2774
|
classPrivateMethod: ClassPrivateMethodBuilder;
|
|
2775
|
+
classAccessorProperty: ClassAccessorPropertyBuilder;
|
|
2729
2776
|
restProperty: RestPropertyBuilder;
|
|
2730
2777
|
forAwaitStatement: ForAwaitStatementBuilder;
|
|
2731
2778
|
import: ImportBuilder;
|
|
@@ -2734,6 +2781,8 @@ export interface builders {
|
|
|
2734
2781
|
tsQualifiedName: TSQualifiedNameBuilder;
|
|
2735
2782
|
tsTypeReference: TSTypeReferenceBuilder;
|
|
2736
2783
|
tsAsExpression: TSAsExpressionBuilder;
|
|
2784
|
+
tsTypeCastExpression: TSTypeCastExpressionBuilder;
|
|
2785
|
+
tsSatisfiesExpression: TSSatisfiesExpressionBuilder;
|
|
2737
2786
|
tsNonNullExpression: TSNonNullExpressionBuilder;
|
|
2738
2787
|
tsAnyKeyword: TSAnyKeywordBuilder;
|
|
2739
2788
|
tsBigIntKeyword: TSBigIntKeywordBuilder;
|
|
@@ -2779,6 +2828,7 @@ export interface builders {
|
|
|
2779
2828
|
tsImportType: TSImportTypeBuilder;
|
|
2780
2829
|
tsTypeLiteral: TSTypeLiteralBuilder;
|
|
2781
2830
|
tsTypeAssertion: TSTypeAssertionBuilder;
|
|
2831
|
+
tsInstantiationExpression: TSInstantiationExpressionBuilder;
|
|
2782
2832
|
tsEnumDeclaration: TSEnumDeclarationBuilder;
|
|
2783
2833
|
tsTypeAliasDeclaration: TSTypeAliasDeclarationBuilder;
|
|
2784
2834
|
tsModuleBlock: TSModuleBlockBuilder;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builders.js","sourceRoot":"","sources":["../../src/gen/builders.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import { namedTypes } from "./namedTypes";
|
|
2
|
+
export 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.StaticBlock | 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.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.ClassAccessorProperty | namedTypes.RestProperty | namedTypes.ForAwaitStatement | namedTypes.Import | namedTypes.V8IntrinsicIdentifier | namedTypes.TopicReference | namedTypes.TSQualifiedName | namedTypes.TSTypeReference | namedTypes.TSAsExpression | namedTypes.TSTypeCastExpression | namedTypes.TSSatisfiesExpression | 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.TSInstantiationExpression | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleBlock | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceBody | namedTypes.TSInterfaceDeclaration | namedTypes.TSParameterProperty;
|
|
3
|
+
export type SourceLocationKind = namedTypes.SourceLocation;
|
|
4
|
+
export 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.StaticBlock | 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.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.ClassAccessorProperty | namedTypes.RestProperty | namedTypes.ForAwaitStatement | namedTypes.Import | namedTypes.V8IntrinsicIdentifier | namedTypes.TopicReference | namedTypes.TSQualifiedName | namedTypes.TSTypeReference | namedTypes.TSAsExpression | namedTypes.TSTypeCastExpression | namedTypes.TSSatisfiesExpression | 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.TSInstantiationExpression | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleBlock | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceBody | namedTypes.TSInterfaceDeclaration | namedTypes.TSParameterProperty;
|
|
5
|
+
export type CommentKind = namedTypes.Block | namedTypes.Line | namedTypes.CommentBlock | namedTypes.CommentLine;
|
|
6
|
+
export type PositionKind = namedTypes.Position;
|
|
7
|
+
export type FileKind = namedTypes.File;
|
|
8
|
+
export type ProgramKind = namedTypes.Program;
|
|
9
|
+
export 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.StaticBlock | 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.ClassAccessorProperty | 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
|
+
export type FunctionKind = namedTypes.FunctionDeclaration | namedTypes.FunctionExpression | namedTypes.ArrowFunctionExpression | namedTypes.ObjectMethod | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod;
|
|
11
|
+
export 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.TSTypeCastExpression | namedTypes.TSSatisfiesExpression | namedTypes.TSNonNullExpression | namedTypes.TSTypeParameter | namedTypes.TSTypeAssertion | namedTypes.TSInstantiationExpression;
|
|
12
|
+
export 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.TSSatisfiesExpression | namedTypes.TSNonNullExpression | namedTypes.TSTypeParameter | namedTypes.TSTypeAssertion | namedTypes.TSParameterProperty;
|
|
13
|
+
export type IdentifierKind = namedTypes.Identifier | namedTypes.JSXIdentifier | namedTypes.TSTypeParameter;
|
|
14
|
+
export type BlockStatementKind = namedTypes.BlockStatement;
|
|
15
|
+
export type EmptyStatementKind = namedTypes.EmptyStatement;
|
|
16
|
+
export type ExpressionStatementKind = namedTypes.ExpressionStatement;
|
|
17
|
+
export type IfStatementKind = namedTypes.IfStatement;
|
|
18
|
+
export type LabeledStatementKind = namedTypes.LabeledStatement;
|
|
19
|
+
export type BreakStatementKind = namedTypes.BreakStatement;
|
|
20
|
+
export type ContinueStatementKind = namedTypes.ContinueStatement;
|
|
21
|
+
export type WithStatementKind = namedTypes.WithStatement;
|
|
22
|
+
export type SwitchStatementKind = namedTypes.SwitchStatement;
|
|
23
|
+
export type SwitchCaseKind = namedTypes.SwitchCase;
|
|
24
|
+
export type ReturnStatementKind = namedTypes.ReturnStatement;
|
|
25
|
+
export type ThrowStatementKind = namedTypes.ThrowStatement;
|
|
26
|
+
export type TryStatementKind = namedTypes.TryStatement;
|
|
27
|
+
export type CatchClauseKind = namedTypes.CatchClause;
|
|
28
|
+
export type WhileStatementKind = namedTypes.WhileStatement;
|
|
29
|
+
export type DoWhileStatementKind = namedTypes.DoWhileStatement;
|
|
30
|
+
export type ForStatementKind = namedTypes.ForStatement;
|
|
31
|
+
export type DeclarationKind = namedTypes.VariableDeclaration | namedTypes.FunctionDeclaration | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.StaticBlock | 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.ClassAccessorProperty | 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
|
+
export type VariableDeclarationKind = namedTypes.VariableDeclaration;
|
|
33
|
+
export type ForInStatementKind = namedTypes.ForInStatement;
|
|
34
|
+
export type DebuggerStatementKind = namedTypes.DebuggerStatement;
|
|
35
|
+
export type FunctionDeclarationKind = namedTypes.FunctionDeclaration;
|
|
36
|
+
export type FunctionExpressionKind = namedTypes.FunctionExpression;
|
|
37
|
+
export type VariableDeclaratorKind = namedTypes.VariableDeclarator;
|
|
38
|
+
export type ThisExpressionKind = namedTypes.ThisExpression;
|
|
39
|
+
export type ArrayExpressionKind = namedTypes.ArrayExpression;
|
|
40
|
+
export type ObjectExpressionKind = namedTypes.ObjectExpression;
|
|
41
|
+
export type PropertyKind = namedTypes.Property;
|
|
42
|
+
export type LiteralKind = namedTypes.Literal | namedTypes.JSXText | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.DecimalLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral;
|
|
43
|
+
export type SequenceExpressionKind = namedTypes.SequenceExpression;
|
|
44
|
+
export type UnaryExpressionKind = namedTypes.UnaryExpression;
|
|
45
|
+
export type BinaryExpressionKind = namedTypes.BinaryExpression;
|
|
46
|
+
export type AssignmentExpressionKind = namedTypes.AssignmentExpression;
|
|
47
|
+
export type ChainElementKind = namedTypes.MemberExpression | namedTypes.CallExpression | namedTypes.OptionalCallExpression | namedTypes.OptionalMemberExpression | namedTypes.JSXMemberExpression;
|
|
48
|
+
export type MemberExpressionKind = namedTypes.MemberExpression | namedTypes.OptionalMemberExpression | namedTypes.JSXMemberExpression;
|
|
49
|
+
export type UpdateExpressionKind = namedTypes.UpdateExpression;
|
|
50
|
+
export type LogicalExpressionKind = namedTypes.LogicalExpression;
|
|
51
|
+
export type ConditionalExpressionKind = namedTypes.ConditionalExpression;
|
|
52
|
+
export type NewExpressionKind = namedTypes.NewExpression;
|
|
53
|
+
export type CallExpressionKind = namedTypes.CallExpression | namedTypes.OptionalCallExpression;
|
|
54
|
+
export type RestElementKind = namedTypes.RestElement;
|
|
55
|
+
export type TypeAnnotationKind = namedTypes.TypeAnnotation;
|
|
56
|
+
export type TSTypeAnnotationKind = namedTypes.TSTypeAnnotation | namedTypes.TSTypePredicate;
|
|
57
|
+
export type SpreadElementPatternKind = namedTypes.SpreadElementPattern;
|
|
58
|
+
export type ArrowFunctionExpressionKind = namedTypes.ArrowFunctionExpression;
|
|
59
|
+
export type ForOfStatementKind = namedTypes.ForOfStatement;
|
|
60
|
+
export type YieldExpressionKind = namedTypes.YieldExpression;
|
|
61
|
+
export type GeneratorExpressionKind = namedTypes.GeneratorExpression;
|
|
62
|
+
export type ComprehensionBlockKind = namedTypes.ComprehensionBlock;
|
|
63
|
+
export type ComprehensionExpressionKind = namedTypes.ComprehensionExpression;
|
|
64
|
+
export type ObjectPropertyKind = namedTypes.ObjectProperty;
|
|
65
|
+
export type PropertyPatternKind = namedTypes.PropertyPattern;
|
|
66
|
+
export type ObjectPatternKind = namedTypes.ObjectPattern;
|
|
67
|
+
export type ArrayPatternKind = namedTypes.ArrayPattern;
|
|
68
|
+
export type SpreadElementKind = namedTypes.SpreadElement;
|
|
69
|
+
export type AssignmentPatternKind = namedTypes.AssignmentPattern;
|
|
70
|
+
export type MethodDefinitionKind = namedTypes.MethodDefinition;
|
|
71
|
+
export type ClassPropertyDefinitionKind = namedTypes.ClassPropertyDefinition;
|
|
72
|
+
export type ClassPropertyKind = namedTypes.ClassProperty | namedTypes.ClassPrivateProperty;
|
|
73
|
+
export type StaticBlockKind = namedTypes.StaticBlock;
|
|
74
|
+
export type ClassBodyKind = namedTypes.ClassBody;
|
|
75
|
+
export type ClassDeclarationKind = namedTypes.ClassDeclaration;
|
|
76
|
+
export type ClassExpressionKind = namedTypes.ClassExpression;
|
|
77
|
+
export type SuperKind = namedTypes.Super;
|
|
78
|
+
export type SpecifierKind = namedTypes.ImportSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ExportSpecifier | namedTypes.ExportBatchSpecifier | namedTypes.ExportNamespaceSpecifier | namedTypes.ExportDefaultSpecifier;
|
|
79
|
+
export type ModuleSpecifierKind = namedTypes.ImportSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ExportSpecifier;
|
|
80
|
+
export type ImportSpecifierKind = namedTypes.ImportSpecifier;
|
|
81
|
+
export type ImportDefaultSpecifierKind = namedTypes.ImportDefaultSpecifier;
|
|
82
|
+
export type ImportNamespaceSpecifierKind = namedTypes.ImportNamespaceSpecifier;
|
|
83
|
+
export type ImportDeclarationKind = namedTypes.ImportDeclaration;
|
|
84
|
+
export type ExportNamedDeclarationKind = namedTypes.ExportNamedDeclaration;
|
|
85
|
+
export type ExportSpecifierKind = namedTypes.ExportSpecifier;
|
|
86
|
+
export type ExportDefaultDeclarationKind = namedTypes.ExportDefaultDeclaration;
|
|
87
|
+
export type ExportAllDeclarationKind = namedTypes.ExportAllDeclaration;
|
|
88
|
+
export type TaggedTemplateExpressionKind = namedTypes.TaggedTemplateExpression;
|
|
89
|
+
export type TemplateLiteralKind = namedTypes.TemplateLiteral;
|
|
90
|
+
export type TemplateElementKind = namedTypes.TemplateElement;
|
|
91
|
+
export type MetaPropertyKind = namedTypes.MetaProperty;
|
|
92
|
+
export type AwaitExpressionKind = namedTypes.AwaitExpression;
|
|
93
|
+
export type SpreadPropertyKind = namedTypes.SpreadProperty;
|
|
94
|
+
export type SpreadPropertyPatternKind = namedTypes.SpreadPropertyPattern;
|
|
95
|
+
export type ImportExpressionKind = namedTypes.ImportExpression;
|
|
96
|
+
export type ChainExpressionKind = namedTypes.ChainExpression;
|
|
97
|
+
export type OptionalCallExpressionKind = namedTypes.OptionalCallExpression;
|
|
98
|
+
export type OptionalMemberExpressionKind = namedTypes.OptionalMemberExpression;
|
|
99
|
+
export type DecoratorKind = namedTypes.Decorator;
|
|
100
|
+
export type PrivateNameKind = namedTypes.PrivateName;
|
|
101
|
+
export type ClassPrivatePropertyKind = namedTypes.ClassPrivateProperty;
|
|
102
|
+
export type ImportAttributeKind = namedTypes.ImportAttribute;
|
|
103
|
+
export type RecordExpressionKind = namedTypes.RecordExpression;
|
|
104
|
+
export type ObjectMethodKind = namedTypes.ObjectMethod;
|
|
105
|
+
export type TupleExpressionKind = namedTypes.TupleExpression;
|
|
106
|
+
export type ModuleExpressionKind = namedTypes.ModuleExpression;
|
|
107
|
+
export type JSXAttributeKind = namedTypes.JSXAttribute;
|
|
108
|
+
export type JSXIdentifierKind = namedTypes.JSXIdentifier;
|
|
109
|
+
export type JSXNamespacedNameKind = namedTypes.JSXNamespacedName;
|
|
110
|
+
export type JSXExpressionContainerKind = namedTypes.JSXExpressionContainer;
|
|
111
|
+
export type JSXElementKind = namedTypes.JSXElement;
|
|
112
|
+
export type JSXFragmentKind = namedTypes.JSXFragment;
|
|
113
|
+
export type JSXMemberExpressionKind = namedTypes.JSXMemberExpression;
|
|
114
|
+
export type JSXSpreadAttributeKind = namedTypes.JSXSpreadAttribute;
|
|
115
|
+
export type JSXEmptyExpressionKind = namedTypes.JSXEmptyExpression;
|
|
116
|
+
export type JSXTextKind = namedTypes.JSXText;
|
|
117
|
+
export type JSXSpreadChildKind = namedTypes.JSXSpreadChild;
|
|
118
|
+
export type JSXOpeningElementKind = namedTypes.JSXOpeningElement;
|
|
119
|
+
export type JSXClosingElementKind = namedTypes.JSXClosingElement;
|
|
120
|
+
export type JSXOpeningFragmentKind = namedTypes.JSXOpeningFragment;
|
|
121
|
+
export type JSXClosingFragmentKind = namedTypes.JSXClosingFragment;
|
|
122
|
+
export type TypeParameterDeclarationKind = namedTypes.TypeParameterDeclaration;
|
|
123
|
+
export type TSTypeParameterDeclarationKind = namedTypes.TSTypeParameterDeclaration;
|
|
124
|
+
export type TypeParameterInstantiationKind = namedTypes.TypeParameterInstantiation;
|
|
125
|
+
export type TSTypeParameterInstantiationKind = namedTypes.TSTypeParameterInstantiation;
|
|
126
|
+
export type ClassImplementsKind = namedTypes.ClassImplements;
|
|
127
|
+
export 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;
|
|
128
|
+
export type TSHasOptionalTypeParameterInstantiationKind = namedTypes.TSExpressionWithTypeArguments | namedTypes.TSTypeReference | namedTypes.TSImportType | namedTypes.TSInstantiationExpression;
|
|
129
|
+
export type TSExpressionWithTypeArgumentsKind = namedTypes.TSExpressionWithTypeArguments;
|
|
130
|
+
export 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 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;
|
|
132
|
+
export type AnyTypeAnnotationKind = namedTypes.AnyTypeAnnotation;
|
|
133
|
+
export type EmptyTypeAnnotationKind = namedTypes.EmptyTypeAnnotation;
|
|
134
|
+
export type MixedTypeAnnotationKind = namedTypes.MixedTypeAnnotation;
|
|
135
|
+
export type VoidTypeAnnotationKind = namedTypes.VoidTypeAnnotation;
|
|
136
|
+
export type SymbolTypeAnnotationKind = namedTypes.SymbolTypeAnnotation;
|
|
137
|
+
export type NumberTypeAnnotationKind = namedTypes.NumberTypeAnnotation;
|
|
138
|
+
export type BigIntTypeAnnotationKind = namedTypes.BigIntTypeAnnotation;
|
|
139
|
+
export type NumberLiteralTypeAnnotationKind = namedTypes.NumberLiteralTypeAnnotation;
|
|
140
|
+
export type NumericLiteralTypeAnnotationKind = namedTypes.NumericLiteralTypeAnnotation;
|
|
141
|
+
export type BigIntLiteralTypeAnnotationKind = namedTypes.BigIntLiteralTypeAnnotation;
|
|
142
|
+
export type StringTypeAnnotationKind = namedTypes.StringTypeAnnotation;
|
|
143
|
+
export type StringLiteralTypeAnnotationKind = namedTypes.StringLiteralTypeAnnotation;
|
|
144
|
+
export type BooleanTypeAnnotationKind = namedTypes.BooleanTypeAnnotation;
|
|
145
|
+
export type BooleanLiteralTypeAnnotationKind = namedTypes.BooleanLiteralTypeAnnotation;
|
|
146
|
+
export type NullableTypeAnnotationKind = namedTypes.NullableTypeAnnotation;
|
|
147
|
+
export type NullLiteralTypeAnnotationKind = namedTypes.NullLiteralTypeAnnotation;
|
|
148
|
+
export type NullTypeAnnotationKind = namedTypes.NullTypeAnnotation;
|
|
149
|
+
export type ThisTypeAnnotationKind = namedTypes.ThisTypeAnnotation;
|
|
150
|
+
export type ExistsTypeAnnotationKind = namedTypes.ExistsTypeAnnotation;
|
|
151
|
+
export type ExistentialTypeParamKind = namedTypes.ExistentialTypeParam;
|
|
152
|
+
export type FunctionTypeAnnotationKind = namedTypes.FunctionTypeAnnotation;
|
|
153
|
+
export type FunctionTypeParamKind = namedTypes.FunctionTypeParam;
|
|
154
|
+
export type ArrayTypeAnnotationKind = namedTypes.ArrayTypeAnnotation;
|
|
155
|
+
export type ObjectTypeAnnotationKind = namedTypes.ObjectTypeAnnotation;
|
|
156
|
+
export type ObjectTypePropertyKind = namedTypes.ObjectTypeProperty;
|
|
157
|
+
export type ObjectTypeSpreadPropertyKind = namedTypes.ObjectTypeSpreadProperty;
|
|
158
|
+
export type ObjectTypeIndexerKind = namedTypes.ObjectTypeIndexer;
|
|
159
|
+
export type ObjectTypeCallPropertyKind = namedTypes.ObjectTypeCallProperty;
|
|
160
|
+
export type ObjectTypeInternalSlotKind = namedTypes.ObjectTypeInternalSlot;
|
|
161
|
+
export type VarianceKind = namedTypes.Variance;
|
|
162
|
+
export type QualifiedTypeIdentifierKind = namedTypes.QualifiedTypeIdentifier;
|
|
163
|
+
export type GenericTypeAnnotationKind = namedTypes.GenericTypeAnnotation;
|
|
164
|
+
export type MemberTypeAnnotationKind = namedTypes.MemberTypeAnnotation;
|
|
165
|
+
export type IndexedAccessTypeKind = namedTypes.IndexedAccessType;
|
|
166
|
+
export type OptionalIndexedAccessTypeKind = namedTypes.OptionalIndexedAccessType;
|
|
167
|
+
export type UnionTypeAnnotationKind = namedTypes.UnionTypeAnnotation;
|
|
168
|
+
export type IntersectionTypeAnnotationKind = namedTypes.IntersectionTypeAnnotation;
|
|
169
|
+
export type TypeofTypeAnnotationKind = namedTypes.TypeofTypeAnnotation;
|
|
170
|
+
export type TypeParameterKind = namedTypes.TypeParameter;
|
|
171
|
+
export type InterfaceTypeAnnotationKind = namedTypes.InterfaceTypeAnnotation;
|
|
172
|
+
export type InterfaceExtendsKind = namedTypes.InterfaceExtends;
|
|
173
|
+
export type InterfaceDeclarationKind = namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.DeclareClass;
|
|
174
|
+
export type DeclareInterfaceKind = namedTypes.DeclareInterface;
|
|
175
|
+
export type TypeAliasKind = namedTypes.TypeAlias | namedTypes.DeclareTypeAlias;
|
|
176
|
+
export type DeclareTypeAliasKind = namedTypes.DeclareTypeAlias;
|
|
177
|
+
export type OpaqueTypeKind = namedTypes.OpaqueType | namedTypes.DeclareOpaqueType;
|
|
178
|
+
export type DeclareOpaqueTypeKind = namedTypes.DeclareOpaqueType;
|
|
179
|
+
export type TypeCastExpressionKind = namedTypes.TypeCastExpression;
|
|
180
|
+
export type TupleTypeAnnotationKind = namedTypes.TupleTypeAnnotation;
|
|
181
|
+
export type DeclareVariableKind = namedTypes.DeclareVariable;
|
|
182
|
+
export type DeclareFunctionKind = namedTypes.DeclareFunction;
|
|
183
|
+
export type FlowPredicateKind = namedTypes.InferredPredicate | namedTypes.DeclaredPredicate;
|
|
184
|
+
export type DeclareClassKind = namedTypes.DeclareClass;
|
|
185
|
+
export type DeclareModuleKind = namedTypes.DeclareModule;
|
|
186
|
+
export type DeclareModuleExportsKind = namedTypes.DeclareModuleExports;
|
|
187
|
+
export type DeclareExportDeclarationKind = namedTypes.DeclareExportDeclaration;
|
|
188
|
+
export type ExportBatchSpecifierKind = namedTypes.ExportBatchSpecifier;
|
|
189
|
+
export type DeclareExportAllDeclarationKind = namedTypes.DeclareExportAllDeclaration;
|
|
190
|
+
export type InferredPredicateKind = namedTypes.InferredPredicate;
|
|
191
|
+
export type DeclaredPredicateKind = namedTypes.DeclaredPredicate;
|
|
192
|
+
export type EnumDeclarationKind = namedTypes.EnumDeclaration;
|
|
193
|
+
export type EnumBooleanBodyKind = namedTypes.EnumBooleanBody;
|
|
194
|
+
export type EnumNumberBodyKind = namedTypes.EnumNumberBody;
|
|
195
|
+
export type EnumStringBodyKind = namedTypes.EnumStringBody;
|
|
196
|
+
export type EnumSymbolBodyKind = namedTypes.EnumSymbolBody;
|
|
197
|
+
export type EnumBooleanMemberKind = namedTypes.EnumBooleanMember;
|
|
198
|
+
export type EnumNumberMemberKind = namedTypes.EnumNumberMember;
|
|
199
|
+
export type EnumStringMemberKind = namedTypes.EnumStringMember;
|
|
200
|
+
export type EnumDefaultedMemberKind = namedTypes.EnumDefaultedMember;
|
|
201
|
+
export type ExportDeclarationKind = namedTypes.ExportDeclaration;
|
|
202
|
+
export type BlockKind = namedTypes.Block;
|
|
203
|
+
export type LineKind = namedTypes.Line;
|
|
204
|
+
export type NoopKind = namedTypes.Noop;
|
|
205
|
+
export type DoExpressionKind = namedTypes.DoExpression;
|
|
206
|
+
export type BindExpressionKind = namedTypes.BindExpression;
|
|
207
|
+
export type ParenthesizedExpressionKind = namedTypes.ParenthesizedExpression;
|
|
208
|
+
export type ExportNamespaceSpecifierKind = namedTypes.ExportNamespaceSpecifier;
|
|
209
|
+
export type ExportDefaultSpecifierKind = namedTypes.ExportDefaultSpecifier;
|
|
210
|
+
export type CommentBlockKind = namedTypes.CommentBlock;
|
|
211
|
+
export type CommentLineKind = namedTypes.CommentLine;
|
|
212
|
+
export type DirectiveKind = namedTypes.Directive;
|
|
213
|
+
export type DirectiveLiteralKind = namedTypes.DirectiveLiteral;
|
|
214
|
+
export type InterpreterDirectiveKind = namedTypes.InterpreterDirective;
|
|
215
|
+
export type StringLiteralKind = namedTypes.StringLiteral;
|
|
216
|
+
export type NumericLiteralKind = namedTypes.NumericLiteral;
|
|
217
|
+
export type BigIntLiteralKind = namedTypes.BigIntLiteral;
|
|
218
|
+
export type DecimalLiteralKind = namedTypes.DecimalLiteral;
|
|
219
|
+
export type NullLiteralKind = namedTypes.NullLiteral;
|
|
220
|
+
export type BooleanLiteralKind = namedTypes.BooleanLiteral;
|
|
221
|
+
export type RegExpLiteralKind = namedTypes.RegExpLiteral;
|
|
222
|
+
export type ClassMethodKind = namedTypes.ClassMethod;
|
|
223
|
+
export type ClassPrivateMethodKind = namedTypes.ClassPrivateMethod;
|
|
224
|
+
export type TSHasOptionalTypeAnnotationKind = namedTypes.ClassAccessorProperty | namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration;
|
|
225
|
+
export type ClassAccessorPropertyKind = namedTypes.ClassAccessorProperty;
|
|
226
|
+
export type RestPropertyKind = namedTypes.RestProperty;
|
|
227
|
+
export type ForAwaitStatementKind = namedTypes.ForAwaitStatement;
|
|
228
|
+
export type ImportKind = namedTypes.Import;
|
|
229
|
+
export type V8IntrinsicIdentifierKind = namedTypes.V8IntrinsicIdentifier;
|
|
230
|
+
export type TopicReferenceKind = namedTypes.TopicReference;
|
|
231
|
+
export type TSQualifiedNameKind = namedTypes.TSQualifiedName;
|
|
232
|
+
export type TSTypeReferenceKind = namedTypes.TSTypeReference;
|
|
233
|
+
export type TSHasOptionalTypeParametersKind = namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSMethodSignature | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSInterfaceDeclaration;
|
|
234
|
+
export type TSAsExpressionKind = namedTypes.TSAsExpression;
|
|
235
|
+
export type TSTypeCastExpressionKind = namedTypes.TSTypeCastExpression;
|
|
236
|
+
export type TSSatisfiesExpressionKind = namedTypes.TSSatisfiesExpression;
|
|
237
|
+
export type TSNonNullExpressionKind = namedTypes.TSNonNullExpression;
|
|
238
|
+
export type TSAnyKeywordKind = namedTypes.TSAnyKeyword;
|
|
239
|
+
export type TSBigIntKeywordKind = namedTypes.TSBigIntKeyword;
|
|
240
|
+
export type TSBooleanKeywordKind = namedTypes.TSBooleanKeyword;
|
|
241
|
+
export type TSNeverKeywordKind = namedTypes.TSNeverKeyword;
|
|
242
|
+
export type TSNullKeywordKind = namedTypes.TSNullKeyword;
|
|
243
|
+
export type TSNumberKeywordKind = namedTypes.TSNumberKeyword;
|
|
244
|
+
export type TSObjectKeywordKind = namedTypes.TSObjectKeyword;
|
|
245
|
+
export type TSStringKeywordKind = namedTypes.TSStringKeyword;
|
|
246
|
+
export type TSSymbolKeywordKind = namedTypes.TSSymbolKeyword;
|
|
247
|
+
export type TSUndefinedKeywordKind = namedTypes.TSUndefinedKeyword;
|
|
248
|
+
export type TSUnknownKeywordKind = namedTypes.TSUnknownKeyword;
|
|
249
|
+
export type TSVoidKeywordKind = namedTypes.TSVoidKeyword;
|
|
250
|
+
export type TSIntrinsicKeywordKind = namedTypes.TSIntrinsicKeyword;
|
|
251
|
+
export type TSThisTypeKind = namedTypes.TSThisType;
|
|
252
|
+
export type TSArrayTypeKind = namedTypes.TSArrayType;
|
|
253
|
+
export type TSLiteralTypeKind = namedTypes.TSLiteralType;
|
|
254
|
+
export type TSUnionTypeKind = namedTypes.TSUnionType;
|
|
255
|
+
export type TSIntersectionTypeKind = namedTypes.TSIntersectionType;
|
|
256
|
+
export type TSConditionalTypeKind = namedTypes.TSConditionalType;
|
|
257
|
+
export type TSInferTypeKind = namedTypes.TSInferType;
|
|
258
|
+
export type TSTypeParameterKind = namedTypes.TSTypeParameter;
|
|
259
|
+
export type TSParenthesizedTypeKind = namedTypes.TSParenthesizedType;
|
|
260
|
+
export type TSFunctionTypeKind = namedTypes.TSFunctionType;
|
|
261
|
+
export type TSConstructorTypeKind = namedTypes.TSConstructorType;
|
|
262
|
+
export type TSDeclareFunctionKind = namedTypes.TSDeclareFunction;
|
|
263
|
+
export type TSDeclareMethodKind = namedTypes.TSDeclareMethod;
|
|
264
|
+
export type TSMappedTypeKind = namedTypes.TSMappedType;
|
|
265
|
+
export type TSTupleTypeKind = namedTypes.TSTupleType;
|
|
266
|
+
export type TSNamedTupleMemberKind = namedTypes.TSNamedTupleMember;
|
|
267
|
+
export type TSRestTypeKind = namedTypes.TSRestType;
|
|
268
|
+
export type TSOptionalTypeKind = namedTypes.TSOptionalType;
|
|
269
|
+
export type TSIndexedAccessTypeKind = namedTypes.TSIndexedAccessType;
|
|
270
|
+
export type TSTypeOperatorKind = namedTypes.TSTypeOperator;
|
|
271
|
+
export type TSIndexSignatureKind = namedTypes.TSIndexSignature;
|
|
272
|
+
export type TSPropertySignatureKind = namedTypes.TSPropertySignature;
|
|
273
|
+
export type TSMethodSignatureKind = namedTypes.TSMethodSignature;
|
|
274
|
+
export type TSTypePredicateKind = namedTypes.TSTypePredicate;
|
|
275
|
+
export type TSCallSignatureDeclarationKind = namedTypes.TSCallSignatureDeclaration;
|
|
276
|
+
export type TSConstructSignatureDeclarationKind = namedTypes.TSConstructSignatureDeclaration;
|
|
277
|
+
export type TSEnumMemberKind = namedTypes.TSEnumMember;
|
|
278
|
+
export type TSTypeQueryKind = namedTypes.TSTypeQuery;
|
|
279
|
+
export type TSImportTypeKind = namedTypes.TSImportType;
|
|
280
|
+
export type TSTypeLiteralKind = namedTypes.TSTypeLiteral;
|
|
281
|
+
export type TSTypeAssertionKind = namedTypes.TSTypeAssertion;
|
|
282
|
+
export type TSInstantiationExpressionKind = namedTypes.TSInstantiationExpression;
|
|
283
|
+
export type TSEnumDeclarationKind = namedTypes.TSEnumDeclaration;
|
|
284
|
+
export type TSTypeAliasDeclarationKind = namedTypes.TSTypeAliasDeclaration;
|
|
285
|
+
export type TSModuleBlockKind = namedTypes.TSModuleBlock;
|
|
286
|
+
export type TSModuleDeclarationKind = namedTypes.TSModuleDeclaration;
|
|
287
|
+
export type TSImportEqualsDeclarationKind = namedTypes.TSImportEqualsDeclaration;
|
|
288
|
+
export type TSExternalModuleReferenceKind = namedTypes.TSExternalModuleReference;
|
|
289
|
+
export type TSExportAssignmentKind = namedTypes.TSExportAssignment;
|
|
290
|
+
export type TSNamespaceExportDeclarationKind = namedTypes.TSNamespaceExportDeclaration;
|
|
291
|
+
export type TSInterfaceBodyKind = namedTypes.TSInterfaceBody;
|
|
292
|
+
export type TSInterfaceDeclarationKind = namedTypes.TSInterfaceDeclaration;
|
|
293
|
+
export type TSParameterPropertyKind = namedTypes.TSParameterProperty;
|
package/{gen → lib/gen}/kinds.js
RENAMED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kinds.js","sourceRoot":"","sources":["../../src/gen/kinds.ts"],"names":[],"mappings":""}
|