ast-types 0.15.1 → 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.
Files changed (110) hide show
  1. package/{def → lib/def}/babel-core.d.ts +0 -0
  2. package/{def → lib/def}/babel-core.js +70 -48
  3. package/lib/def/babel-core.js.map +1 -0
  4. package/{def → lib/def}/babel.d.ts +0 -0
  5. package/{def → lib/def}/babel.js +7 -5
  6. package/lib/def/babel.js.map +1 -0
  7. package/{def → lib/def}/core.d.ts +0 -0
  8. package/{def → lib/def}/core.js +8 -25
  9. package/lib/def/core.js.map +1 -0
  10. package/{def → lib/def}/es-proposals.d.ts +0 -0
  11. package/{def → lib/def}/es-proposals.js +8 -6
  12. package/lib/def/es-proposals.js.map +1 -0
  13. package/{def → lib/def}/es2016.d.ts +0 -0
  14. package/{def → lib/def}/es2016.js +7 -4
  15. package/lib/def/es2016.js.map +1 -0
  16. package/{def → lib/def}/es2017.d.ts +0 -0
  17. package/{def → lib/def}/es2017.js +7 -5
  18. package/lib/def/es2017.js.map +1 -0
  19. package/{def → lib/def}/es2018.d.ts +0 -0
  20. package/{def → lib/def}/es2018.js +7 -5
  21. package/lib/def/es2018.js.map +1 -0
  22. package/{def → lib/def}/es2019.d.ts +0 -0
  23. package/{def → lib/def}/es2019.js +7 -5
  24. package/lib/def/es2019.js.map +1 -0
  25. package/{def → lib/def}/es2020.d.ts +0 -0
  26. package/{def → lib/def}/es2020.js +10 -7
  27. package/lib/def/es2020.js.map +1 -0
  28. package/{def → lib/def}/es2021.d.ts +0 -0
  29. package/{def → lib/def}/es2021.js +6 -4
  30. package/lib/def/es2021.js.map +1 -0
  31. package/{def → lib/def}/es2022.d.ts +0 -0
  32. package/{def → lib/def}/es2022.js +6 -4
  33. package/lib/def/es2022.js.map +1 -0
  34. package/{def → lib/def}/es6.d.ts +0 -0
  35. package/{def → lib/def}/es6.js +8 -6
  36. package/lib/def/es6.js.map +1 -0
  37. package/{def → lib/def}/esprima.d.ts +0 -0
  38. package/{def → lib/def}/esprima.js +7 -5
  39. package/lib/def/esprima.js.map +1 -0
  40. package/{def → lib/def}/flow.d.ts +0 -0
  41. package/{def → lib/def}/flow.js +8 -6
  42. package/lib/def/flow.js.map +1 -0
  43. package/{def → lib/def}/jsx.d.ts +0 -0
  44. package/{def → lib/def}/jsx.js +7 -5
  45. package/lib/def/jsx.js.map +1 -0
  46. package/{def → lib/def}/operators/core.d.ts +0 -0
  47. package/{def → lib/def}/operators/core.js +4 -2
  48. package/lib/def/operators/core.js.map +1 -0
  49. package/{def → lib/def}/operators/es2016.d.ts +0 -0
  50. package/{def → lib/def}/operators/es2016.js +5 -3
  51. package/lib/def/operators/es2016.js.map +1 -0
  52. package/{def → lib/def}/operators/es2020.d.ts +0 -0
  53. package/{def → lib/def}/operators/es2020.js +5 -3
  54. package/lib/def/operators/es2020.js.map +1 -0
  55. package/{def → lib/def}/operators/es2021.d.ts +0 -0
  56. package/{def → lib/def}/operators/es2021.js +5 -3
  57. package/lib/def/operators/es2021.js.map +1 -0
  58. package/{def → lib/def}/type-annotations.d.ts +0 -0
  59. package/{def → lib/def}/type-annotations.js +6 -4
  60. package/lib/def/type-annotations.js.map +1 -0
  61. package/{def → lib/def}/typescript.d.ts +0 -0
  62. package/{def → lib/def}/typescript.js +27 -9
  63. package/lib/def/typescript.js.map +1 -0
  64. package/lib/equiv.d.ts +1 -1
  65. package/lib/equiv.js +6 -3
  66. package/lib/equiv.js.map +1 -0
  67. package/lib/fork.d.ts +43 -0
  68. package/{fork.js → lib/fork.js} +12 -9
  69. package/lib/fork.js.map +1 -0
  70. package/{gen → lib/gen}/builders.d.ts +91 -65
  71. package/{gen → lib/gen}/builders.js +1 -0
  72. package/lib/gen/builders.js.map +1 -0
  73. package/lib/gen/kinds.d.ts +293 -0
  74. package/{gen → lib/gen}/kinds.js +1 -0
  75. package/lib/gen/kinds.js.map +1 -0
  76. package/{gen → lib/gen}/namedTypes.d.ts +76 -33
  77. package/{gen → lib/gen}/namedTypes.js +1 -0
  78. package/lib/gen/namedTypes.js.map +1 -0
  79. package/{gen → lib/gen}/visitor.d.ts +8 -4
  80. package/{gen → lib/gen}/visitor.js +1 -0
  81. package/lib/gen/visitor.js.map +1 -0
  82. package/{main.d.ts → lib/main.d.ts} +5 -4
  83. package/{main.js → lib/main.js} +8 -7
  84. package/lib/main.js.map +1 -0
  85. package/lib/node-path.d.ts +1 -2
  86. package/lib/node-path.js +8 -5
  87. package/lib/node-path.js.map +1 -0
  88. package/lib/path-visitor.d.ts +2 -3
  89. package/lib/path-visitor.js +7 -4
  90. package/lib/path-visitor.js.map +1 -0
  91. package/lib/path.d.ts +1 -2
  92. package/lib/path.js +6 -3
  93. package/lib/path.js.map +1 -0
  94. package/lib/scope.d.ts +1 -1
  95. package/lib/scope.js +6 -3
  96. package/lib/scope.js.map +1 -0
  97. package/lib/shared.d.ts +9 -1
  98. package/lib/shared.js +47 -3
  99. package/lib/shared.js.map +1 -0
  100. package/lib/types.d.ts +13 -8
  101. package/lib/types.js +20 -9
  102. package/lib/types.js.map +1 -0
  103. package/package.json +24 -21
  104. package/.github/dependabot.yml +0 -9
  105. package/.github/workflows/main.yml +0 -29
  106. package/fork.d.ts +0 -42
  107. package/gen/kinds.d.ts +0 -289
  108. package/tsconfig.json +0 -21
  109. package/types.d.ts +0 -6
  110. package/types.js +0 -2
@@ -292,15 +292,11 @@ export interface PropertyBuilder {
292
292
  }): namedTypes.Property;
293
293
  }
294
294
  export interface LiteralBuilder {
295
- (value: string | boolean | null | number | RegExp): namedTypes.Literal;
295
+ (value: string | boolean | null | number | RegExp | BigInt): namedTypes.Literal;
296
296
  from(params: {
297
297
  comments?: K.CommentKind[] | null;
298
298
  loc?: K.SourceLocationKind | null;
299
- regex?: {
300
- pattern: string;
301
- flags: string;
302
- } | null;
303
- value: string | boolean | null | number | RegExp;
299
+ value: string | boolean | null | number | RegExp | BigInt;
304
300
  }): namedTypes.Literal;
305
301
  }
306
302
  export interface SequenceExpressionBuilder {
@@ -527,12 +523,12 @@ export interface PropertyPatternBuilder {
527
523
  }): namedTypes.PropertyPattern;
528
524
  }
529
525
  export interface ObjectPatternBuilder {
530
- (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;
531
527
  from(params: {
532
528
  comments?: K.CommentKind[] | null;
533
529
  decorators?: K.DecoratorKind[] | null;
534
530
  loc?: K.SourceLocationKind | null;
535
- 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)[];
536
532
  typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
537
533
  }): namedTypes.ObjectPattern;
538
534
  }
@@ -575,10 +571,10 @@ export interface MethodDefinitionBuilder {
575
571
  }): namedTypes.MethodDefinition;
576
572
  }
577
573
  export interface ClassPropertyDefinitionBuilder {
578
- (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;
579
575
  from(params: {
580
576
  comments?: K.CommentKind[] | null;
581
- definition: K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind;
577
+ definition: K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind | K.StaticBlockKind;
582
578
  loc?: K.SourceLocationKind | null;
583
579
  }): namedTypes.ClassPropertyDefinition;
584
580
  }
@@ -596,10 +592,18 @@ export interface ClassPropertyBuilder {
596
592
  variance?: K.VarianceKind | "plus" | "minus" | null;
597
593
  }): namedTypes.ClassProperty;
598
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
+ }
599
603
  export interface ClassBodyBuilder {
600
- (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;
601
605
  from(params: {
602
- 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)[];
603
607
  comments?: K.CommentKind[] | null;
604
608
  loc?: K.SourceLocationKind | null;
605
609
  }): namedTypes.ClassBody;
@@ -710,11 +714,11 @@ export interface ExportDefaultDeclarationBuilder {
710
714
  }): namedTypes.ExportDefaultDeclaration;
711
715
  }
712
716
  export interface ExportAllDeclarationBuilder {
713
- (source: K.LiteralKind, exported: K.IdentifierKind | null): namedTypes.ExportAllDeclaration;
717
+ (source: K.LiteralKind, exported?: K.IdentifierKind | null | undefined): namedTypes.ExportAllDeclaration;
714
718
  from(params: {
715
719
  assertions?: K.ImportAttributeKind[];
716
720
  comments?: K.CommentKind[] | null;
717
- exported: K.IdentifierKind | null;
721
+ exported?: K.IdentifierKind | null | undefined;
718
722
  loc?: K.SourceLocationKind | null;
719
723
  source: K.LiteralKind;
720
724
  }): namedTypes.ExportAllDeclaration;
@@ -824,14 +828,6 @@ export interface OptionalMemberExpressionBuilder {
824
828
  property: K.IdentifierKind | K.ExpressionKind;
825
829
  }): namedTypes.OptionalMemberExpression;
826
830
  }
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
831
  export interface DecoratorBuilder {
836
832
  (expression: K.ExpressionKind): namedTypes.Decorator;
837
833
  from(params: {
@@ -911,7 +907,7 @@ export interface TupleExpressionBuilder {
911
907
  }): namedTypes.TupleExpression;
912
908
  }
913
909
  export interface ModuleExpressionBuilder {
914
- (): namedTypes.ModuleExpression;
910
+ (body: K.ProgramKind): namedTypes.ModuleExpression;
915
911
  from(params: {
916
912
  body: K.ProgramKind;
917
913
  comments?: K.CommentKind[] | null;
@@ -1009,10 +1005,6 @@ export interface JSXTextBuilder {
1009
1005
  comments?: K.CommentKind[] | null;
1010
1006
  loc?: K.SourceLocationKind | null;
1011
1007
  raw?: string;
1012
- regex?: {
1013
- pattern: string;
1014
- flags: string;
1015
- } | null;
1016
1008
  value: string;
1017
1009
  }): namedTypes.JSXText;
1018
1010
  }
@@ -1812,11 +1804,11 @@ export interface StringLiteralBuilder {
1812
1804
  (value: string): namedTypes.StringLiteral;
1813
1805
  from(params: {
1814
1806
  comments?: K.CommentKind[] | null;
1807
+ extra?: {
1808
+ rawValue: string;
1809
+ raw: string;
1810
+ };
1815
1811
  loc?: K.SourceLocationKind | null;
1816
- regex?: {
1817
- pattern: string;
1818
- flags: string;
1819
- } | null;
1820
1812
  value: string;
1821
1813
  }): namedTypes.StringLiteral;
1822
1814
  }
@@ -1830,10 +1822,6 @@ export interface NumericLiteralBuilder {
1830
1822
  };
1831
1823
  loc?: K.SourceLocationKind | null;
1832
1824
  raw?: string | null;
1833
- regex?: {
1834
- pattern: string;
1835
- flags: string;
1836
- } | null;
1837
1825
  value: number;
1838
1826
  }): namedTypes.NumericLiteral;
1839
1827
  }
@@ -1846,10 +1834,6 @@ export interface BigIntLiteralBuilder {
1846
1834
  raw: string;
1847
1835
  };
1848
1836
  loc?: K.SourceLocationKind | null;
1849
- regex?: {
1850
- pattern: string;
1851
- flags: string;
1852
- } | null;
1853
1837
  value: string | number;
1854
1838
  }): namedTypes.BigIntLiteral;
1855
1839
  }
@@ -1862,10 +1846,6 @@ export interface DecimalLiteralBuilder {
1862
1846
  raw: string;
1863
1847
  };
1864
1848
  loc?: K.SourceLocationKind | null;
1865
- regex?: {
1866
- pattern: string;
1867
- flags: string;
1868
- } | null;
1869
1849
  value: string;
1870
1850
  }): namedTypes.DecimalLiteral;
1871
1851
  }
@@ -1874,10 +1854,6 @@ export interface NullLiteralBuilder {
1874
1854
  from(params: {
1875
1855
  comments?: K.CommentKind[] | null;
1876
1856
  loc?: K.SourceLocationKind | null;
1877
- regex?: {
1878
- pattern: string;
1879
- flags: string;
1880
- } | null;
1881
1857
  value?: null;
1882
1858
  }): namedTypes.NullLiteral;
1883
1859
  }
@@ -1886,10 +1862,6 @@ export interface BooleanLiteralBuilder {
1886
1862
  from(params: {
1887
1863
  comments?: K.CommentKind[] | null;
1888
1864
  loc?: K.SourceLocationKind | null;
1889
- regex?: {
1890
- pattern: string;
1891
- flags: string;
1892
- } | null;
1893
1865
  value: boolean;
1894
1866
  }): namedTypes.BooleanLiteral;
1895
1867
  }
@@ -1897,20 +1869,24 @@ export interface RegExpLiteralBuilder {
1897
1869
  (pattern: string, flags: string): namedTypes.RegExpLiteral;
1898
1870
  from(params: {
1899
1871
  comments?: K.CommentKind[] | null;
1872
+ extra?: {
1873
+ rawValue: RegExp | undefined;
1874
+ raw: string;
1875
+ };
1900
1876
  flags: string;
1901
1877
  loc?: K.SourceLocationKind | null;
1902
1878
  pattern: string;
1903
1879
  regex?: {
1904
1880
  pattern: string;
1905
1881
  flags: string;
1906
- } | null;
1882
+ };
1907
1883
  value?: RegExp;
1908
1884
  }): namedTypes.RegExpLiteral;
1909
1885
  }
1910
1886
  export interface ClassMethodBuilder {
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;
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;
1912
1888
  from(params: {
1913
- abstract?: boolean | null;
1889
+ abstract?: boolean;
1914
1890
  access?: "public" | "private" | "protected" | null;
1915
1891
  accessibility?: "public" | "private" | "protected" | null;
1916
1892
  async?: boolean;
@@ -1925,19 +1901,20 @@ export interface ClassMethodBuilder {
1925
1901
  key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind;
1926
1902
  kind?: "get" | "set" | "method" | "constructor";
1927
1903
  loc?: K.SourceLocationKind | null;
1928
- optional?: boolean | null;
1904
+ optional?: boolean;
1929
1905
  params: K.PatternKind[];
1930
1906
  predicate?: K.FlowPredicateKind | null;
1907
+ readonly?: boolean;
1931
1908
  rest?: K.IdentifierKind | null;
1932
1909
  returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
1933
- static?: boolean | null;
1910
+ static?: boolean;
1934
1911
  typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
1935
1912
  }): namedTypes.ClassMethod;
1936
1913
  }
1937
1914
  export interface ClassPrivateMethodBuilder {
1938
- (key: K.PrivateNameKind, params: K.PatternKind[], body: K.BlockStatementKind, kind?: "get" | "set" | "method" | "constructor", computed?: boolean, staticParam?: boolean | null): namedTypes.ClassPrivateMethod;
1915
+ (key: K.PrivateNameKind, params: K.PatternKind[], body: K.BlockStatementKind, kind?: "get" | "set" | "method" | "constructor", computed?: boolean, staticParam?: boolean): namedTypes.ClassPrivateMethod;
1939
1916
  from(params: {
1940
- abstract?: boolean | null;
1917
+ abstract?: boolean;
1941
1918
  access?: "public" | "private" | "protected" | null;
1942
1919
  accessibility?: "public" | "private" | "protected" | null;
1943
1920
  async?: boolean;
@@ -1952,15 +1929,33 @@ export interface ClassPrivateMethodBuilder {
1952
1929
  key: K.PrivateNameKind;
1953
1930
  kind?: "get" | "set" | "method" | "constructor";
1954
1931
  loc?: K.SourceLocationKind | null;
1955
- optional?: boolean | null;
1932
+ optional?: boolean;
1956
1933
  params: K.PatternKind[];
1957
1934
  predicate?: K.FlowPredicateKind | null;
1935
+ readonly?: boolean;
1958
1936
  rest?: K.IdentifierKind | null;
1959
1937
  returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
1960
- static?: boolean | null;
1938
+ static?: boolean;
1961
1939
  typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null;
1962
1940
  }): namedTypes.ClassPrivateMethod;
1963
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
+ }
1964
1959
  export interface RestPropertyBuilder {
1965
1960
  (argument: K.ExpressionKind): namedTypes.RestProperty;
1966
1961
  from(params: {
@@ -2031,6 +2026,24 @@ export interface TSAsExpressionBuilder {
2031
2026
  typeAnnotation: K.TSTypeKind;
2032
2027
  }): namedTypes.TSAsExpression;
2033
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
+ }
2034
2047
  export interface TSNonNullExpressionBuilder {
2035
2048
  (expression: K.ExpressionKind): namedTypes.TSNonNullExpression;
2036
2049
  from(params: {
@@ -2146,10 +2159,10 @@ export interface TSArrayTypeBuilder {
2146
2159
  }): namedTypes.TSArrayType;
2147
2160
  }
2148
2161
  export interface TSLiteralTypeBuilder {
2149
- (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;
2150
2163
  from(params: {
2151
2164
  comments?: K.CommentKind[] | null;
2152
- 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;
2153
2166
  loc?: K.SourceLocationKind | null;
2154
2167
  }): namedTypes.TSLiteralType;
2155
2168
  }
@@ -2189,13 +2202,13 @@ export interface TSInferTypeBuilder {
2189
2202
  }): namedTypes.TSInferType;
2190
2203
  }
2191
2204
  export interface TSTypeParameterBuilder {
2192
- (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;
2193
2206
  from(params: {
2194
2207
  comments?: K.CommentKind[] | null;
2195
2208
  constraint?: K.TSTypeKind | undefined;
2196
2209
  default?: K.TSTypeKind | undefined;
2197
2210
  loc?: K.SourceLocationKind | null;
2198
- name: string;
2211
+ name: K.IdentifierKind | string;
2199
2212
  optional?: boolean;
2200
2213
  typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null;
2201
2214
  }): namedTypes.TSTypeParameter;
@@ -2439,6 +2452,15 @@ export interface TSTypeAssertionBuilder {
2439
2452
  typeAnnotation: K.TSTypeKind;
2440
2453
  }): namedTypes.TSTypeAssertion;
2441
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
+ }
2442
2464
  export interface TSEnumDeclarationBuilder {
2443
2465
  (id: K.IdentifierKind, members: K.TSEnumMemberKind[]): namedTypes.TSEnumDeclaration;
2444
2466
  from(params: {
@@ -2606,6 +2628,7 @@ export interface builders {
2606
2628
  methodDefinition: MethodDefinitionBuilder;
2607
2629
  classPropertyDefinition: ClassPropertyDefinitionBuilder;
2608
2630
  classProperty: ClassPropertyBuilder;
2631
+ staticBlock: StaticBlockBuilder;
2609
2632
  classBody: ClassBodyBuilder;
2610
2633
  classDeclaration: ClassDeclarationBuilder;
2611
2634
  classExpression: ClassExpressionBuilder;
@@ -2629,7 +2652,6 @@ export interface builders {
2629
2652
  chainExpression: ChainExpressionBuilder;
2630
2653
  optionalCallExpression: OptionalCallExpressionBuilder;
2631
2654
  optionalMemberExpression: OptionalMemberExpressionBuilder;
2632
- staticBlock: StaticBlockBuilder;
2633
2655
  decorator: DecoratorBuilder;
2634
2656
  privateName: PrivateNameBuilder;
2635
2657
  classPrivateProperty: ClassPrivatePropertyBuilder;
@@ -2750,6 +2772,7 @@ export interface builders {
2750
2772
  regExpLiteral: RegExpLiteralBuilder;
2751
2773
  classMethod: ClassMethodBuilder;
2752
2774
  classPrivateMethod: ClassPrivateMethodBuilder;
2775
+ classAccessorProperty: ClassAccessorPropertyBuilder;
2753
2776
  restProperty: RestPropertyBuilder;
2754
2777
  forAwaitStatement: ForAwaitStatementBuilder;
2755
2778
  import: ImportBuilder;
@@ -2758,6 +2781,8 @@ export interface builders {
2758
2781
  tsQualifiedName: TSQualifiedNameBuilder;
2759
2782
  tsTypeReference: TSTypeReferenceBuilder;
2760
2783
  tsAsExpression: TSAsExpressionBuilder;
2784
+ tsTypeCastExpression: TSTypeCastExpressionBuilder;
2785
+ tsSatisfiesExpression: TSSatisfiesExpressionBuilder;
2761
2786
  tsNonNullExpression: TSNonNullExpressionBuilder;
2762
2787
  tsAnyKeyword: TSAnyKeywordBuilder;
2763
2788
  tsBigIntKeyword: TSBigIntKeywordBuilder;
@@ -2803,6 +2828,7 @@ export interface builders {
2803
2828
  tsImportType: TSImportTypeBuilder;
2804
2829
  tsTypeLiteral: TSTypeLiteralBuilder;
2805
2830
  tsTypeAssertion: TSTypeAssertionBuilder;
2831
+ tsInstantiationExpression: TSInstantiationExpressionBuilder;
2806
2832
  tsEnumDeclaration: TSEnumDeclarationBuilder;
2807
2833
  tsTypeAliasDeclaration: TSTypeAliasDeclarationBuilder;
2808
2834
  tsModuleBlock: TSModuleBlockBuilder;
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=builders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builders.js","sourceRoot":"","sources":["../../src/gen/builders.ts"],"names":[],"mappings":""}