@openrewrite/rewrite 0.23.1 → 0.25.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 (63) hide show
  1. package/LICENSE.md +87 -0
  2. package/dist/src/core/parser.js +17 -7
  3. package/dist/src/core/parser.js.map +1 -1
  4. package/dist/src/core/tree.d.ts +1 -1
  5. package/dist/src/core/tree.d.ts.map +1 -1
  6. package/dist/src/java/markers.d.ts +2 -2
  7. package/dist/src/java/markers.d.ts.map +1 -1
  8. package/dist/src/java/remote/receiver.js +17 -7
  9. package/dist/src/java/remote/receiver.js.map +1 -1
  10. package/dist/src/java/remote/sender.js +17 -7
  11. package/dist/src/java/remote/sender.js.map +1 -1
  12. package/dist/src/java/tree/support_types.d.ts +1 -1
  13. package/dist/src/java/tree/support_types.d.ts.map +1 -1
  14. package/dist/src/java/tree/tree.d.ts +70 -70
  15. package/dist/src/java/tree/tree.d.ts.map +1 -1
  16. package/dist/src/java/tree/tree.js +17 -7
  17. package/dist/src/java/tree/tree.js.map +1 -1
  18. package/dist/src/java/visitor.js +17 -7
  19. package/dist/src/java/visitor.js.map +1 -1
  20. package/dist/src/javascript/extensions.js +17 -7
  21. package/dist/src/javascript/extensions.js.map +1 -1
  22. package/dist/src/javascript/parser.d.ts +24 -20
  23. package/dist/src/javascript/parser.d.ts.map +1 -1
  24. package/dist/src/javascript/parser.js +149 -76
  25. package/dist/src/javascript/parser.js.map +1 -1
  26. package/dist/src/javascript/parserUtils.d.ts +1 -1
  27. package/dist/src/javascript/parserUtils.js +17 -7
  28. package/dist/src/javascript/parserUtils.js.map +1 -1
  29. package/dist/src/javascript/projectParser.js +17 -7
  30. package/dist/src/javascript/projectParser.js.map +1 -1
  31. package/dist/src/javascript/remote/receiver.d.ts.map +1 -1
  32. package/dist/src/javascript/remote/receiver.js +219 -15
  33. package/dist/src/javascript/remote/receiver.js.map +1 -1
  34. package/dist/src/javascript/remote/remote_extensions.js +17 -7
  35. package/dist/src/javascript/remote/remote_extensions.js.map +1 -1
  36. package/dist/src/javascript/remote/sender.d.ts.map +1 -1
  37. package/dist/src/javascript/remote/sender.js +167 -11
  38. package/dist/src/javascript/remote/sender.js.map +1 -1
  39. package/dist/src/javascript/tree/extensions.js +17 -7
  40. package/dist/src/javascript/tree/extensions.js.map +1 -1
  41. package/dist/src/javascript/tree/support_types.d.ts +53 -7
  42. package/dist/src/javascript/tree/support_types.d.ts.map +1 -1
  43. package/dist/src/javascript/tree/support_types.js +63 -7
  44. package/dist/src/javascript/tree/support_types.js.map +1 -1
  45. package/dist/src/javascript/tree/tree.d.ts +916 -89
  46. package/dist/src/javascript/tree/tree.d.ts.map +1 -1
  47. package/dist/src/javascript/tree/tree.js +1755 -613
  48. package/dist/src/javascript/tree/tree.js.map +1 -1
  49. package/dist/src/javascript/typeMapping.js +17 -7
  50. package/dist/src/javascript/typeMapping.js.map +1 -1
  51. package/dist/src/javascript/visitor.d.ts +17 -1
  52. package/dist/src/javascript/visitor.d.ts.map +1 -1
  53. package/dist/src/javascript/visitor.js +225 -10
  54. package/dist/src/javascript/visitor.js.map +1 -1
  55. package/dist/src/json/tree.d.ts +1 -1
  56. package/dist/src/json/tree.d.ts.map +1 -1
  57. package/dist/src/json/visitor.js +17 -7
  58. package/dist/src/json/visitor.js.map +1 -1
  59. package/dist/src/yaml/tree/support_types.d.ts +1 -1
  60. package/dist/src/yaml/tree/support_types.d.ts.map +1 -1
  61. package/dist/src/yaml/tree/tree.d.ts +11 -11
  62. package/package.json +1 -1
  63. package/LICENSE +0 -201
@@ -18,7 +18,7 @@ declare const CompilationUnit_base: ((abstract new (...args: any[]) => {
18
18
  printAll(): string;
19
19
  print<P>(cursor: Cursor, capture: PrintOutputCapture<P>): string;
20
20
  printer<P>(cursor: Cursor): TreeVisitor<any, PrintOutputCapture<P>>;
21
- readonly id: Uint8Array;
21
+ readonly id: UUID;
22
22
  withId(id: UUID): Tree;
23
23
  readonly markers: Markers;
24
24
  withMarkers(markers: Markers): Tree;
@@ -30,7 +30,7 @@ declare const CompilationUnit_base: ((abstract new (...args: any[]) => {
30
30
  }) & ((abstract new (...args: any[]) => {
31
31
  readonly prefix: Space;
32
32
  withPrefix(prefix: Space): JS;
33
- readonly id: Uint8Array;
33
+ readonly id: UUID;
34
34
  withId(id: UUID): JS;
35
35
  readonly markers: Markers;
36
36
  withMarkers(markers: Markers): JS;
@@ -97,7 +97,7 @@ export declare class CompilationUnit extends CompilationUnit_base implements Jav
97
97
  declare const Alias_base: ((abstract new (...args: any[]) => {
98
98
  readonly prefix: Space;
99
99
  withPrefix(prefix: Space): JS;
100
- readonly id: Uint8Array;
100
+ readonly id: UUID;
101
101
  withId(id: UUID): JS;
102
102
  readonly markers: Markers;
103
103
  withMarkers(markers: Markers): JS;
@@ -118,7 +118,7 @@ declare const Alias_base: ((abstract new (...args: any[]) => {
118
118
  isJavaScript: boolean;
119
119
  }) & ObjectConstructor;
120
120
  export declare class Alias extends Alias_base implements Expression {
121
- constructor(id: UUID, prefix: Space, markers: Markers, propertyName: JRightPadded<Java.Identifier>, alias: Java.Identifier);
121
+ constructor(id: UUID, prefix: Space, markers: Markers, propertyName: JRightPadded<Java.Identifier>, alias: Expression);
122
122
  private readonly _id;
123
123
  get id(): UUID;
124
124
  withId(id: UUID): Alias;
@@ -132,8 +132,8 @@ export declare class Alias extends Alias_base implements Expression {
132
132
  get propertyName(): Java.Identifier;
133
133
  withPropertyName(propertyName: Java.Identifier): Alias;
134
134
  private readonly _alias;
135
- get alias(): Java.Identifier;
136
- withAlias(alias: Java.Identifier): Alias;
135
+ get alias(): Expression;
136
+ withAlias(alias: Expression): Alias;
137
137
  acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
138
138
  get type(): JavaType | null;
139
139
  withType(type: JavaType): Alias;
@@ -145,7 +145,7 @@ export declare class Alias extends Alias_base implements Expression {
145
145
  declare const ArrowFunction_base: ((abstract new (...args: any[]) => {
146
146
  readonly prefix: Space;
147
147
  withPrefix(prefix: Space): JS;
148
- readonly id: Uint8Array;
148
+ readonly id: UUID;
149
149
  withId(id: UUID): JS;
150
150
  readonly markers: Markers;
151
151
  withMarkers(markers: Markers): JS;
@@ -166,7 +166,7 @@ declare const ArrowFunction_base: ((abstract new (...args: any[]) => {
166
166
  isJavaScript: boolean;
167
167
  }) & ObjectConstructor;
168
168
  export declare class ArrowFunction extends ArrowFunction_base implements Statement, Expression, TypedTree {
169
- constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Java.Annotation[], modifiers: Java.Modifier[], typeParameters: Java.TypeParameters | null, parameters: Java.Lambda.Parameters, returnTypeExpression: TypeTree | null, arrow: Space, body: J, _type: JavaType | null);
169
+ constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Java.Annotation[], modifiers: Java.Modifier[], typeParameters: Java.TypeParameters | null, parameters: Java.Lambda.Parameters, returnTypeExpression: TypeTree | null, body: JLeftPadded<J>, _type: JavaType | null);
170
170
  private readonly _id;
171
171
  get id(): UUID;
172
172
  withId(id: UUID): ArrowFunction;
@@ -191,9 +191,6 @@ export declare class ArrowFunction extends ArrowFunction_base implements Stateme
191
191
  private readonly _returnTypeExpression;
192
192
  get returnTypeExpression(): TypeTree | null;
193
193
  withReturnTypeExpression(returnTypeExpression: TypeTree | null): ArrowFunction;
194
- private readonly _arrow;
195
- get arrow(): Space;
196
- withArrow(arrow: Space): ArrowFunction;
197
194
  private readonly _body;
198
195
  get body(): J;
199
196
  withBody(body: J): ArrowFunction;
@@ -201,11 +198,15 @@ export declare class ArrowFunction extends ArrowFunction_base implements Stateme
201
198
  get type(): JavaType | null;
202
199
  withType(_type: JavaType | null): ArrowFunction;
203
200
  acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
201
+ get padding(): {
202
+ readonly body: JLeftPadded<J>;
203
+ withBody(body: JLeftPadded<J>): ArrowFunction;
204
+ };
204
205
  }
205
206
  declare const Await_base: ((abstract new (...args: any[]) => {
206
207
  readonly prefix: Space;
207
208
  withPrefix(prefix: Space): JS;
208
- readonly id: Uint8Array;
209
+ readonly id: UUID;
209
210
  withId(id: UUID): JS;
210
211
  readonly markers: Markers;
211
212
  withMarkers(markers: Markers): JS;
@@ -247,7 +248,7 @@ export declare class Await extends Await_base implements Expression {
247
248
  declare const ConditionalType_base: ((abstract new (...args: any[]) => {
248
249
  readonly prefix: Space;
249
250
  withPrefix(prefix: Space): JS;
250
- readonly id: Uint8Array;
251
+ readonly id: UUID;
251
252
  withId(id: UUID): JS;
252
253
  readonly markers: Markers;
253
254
  withMarkers(markers: Markers): JS;
@@ -296,7 +297,7 @@ export declare class ConditionalType extends ConditionalType_base implements Typ
296
297
  declare const DefaultType_base: ((abstract new (...args: any[]) => {
297
298
  readonly prefix: Space;
298
299
  withPrefix(prefix: Space): JS;
299
- readonly id: Uint8Array;
300
+ readonly id: UUID;
300
301
  withId(id: UUID): JS;
301
302
  readonly markers: Markers;
302
303
  withMarkers(markers: Markers): JS;
@@ -344,7 +345,7 @@ export declare class DefaultType extends DefaultType_base implements Expression,
344
345
  declare const Delete_base: ((abstract new (...args: any[]) => {
345
346
  readonly prefix: Space;
346
347
  withPrefix(prefix: Space): JS;
347
- readonly id: Uint8Array;
348
+ readonly id: UUID;
348
349
  withId(id: UUID): JS;
349
350
  readonly markers: Markers;
350
351
  withMarkers(markers: Markers): JS;
@@ -386,7 +387,7 @@ export declare class Delete extends Delete_base implements Expression, Statement
386
387
  declare const Export_base: ((abstract new (...args: any[]) => {
387
388
  readonly prefix: Space;
388
389
  withPrefix(prefix: Space): JS;
389
- readonly id: Uint8Array;
390
+ readonly id: UUID;
390
391
  withId(id: UUID): JS;
391
392
  readonly markers: Markers;
392
393
  withMarkers(markers: Markers): JS;
@@ -440,7 +441,7 @@ export declare class Export extends Export_base implements Statement {
440
441
  declare const ExpressionWithTypeArguments_base: ((abstract new (...args: any[]) => {
441
442
  readonly prefix: Space;
442
443
  withPrefix(prefix: Space): JS;
443
- readonly id: Uint8Array;
444
+ readonly id: UUID;
444
445
  withId(id: UUID): JS;
445
446
  readonly markers: Markers;
446
447
  withMarkers(markers: Markers): JS;
@@ -489,7 +490,7 @@ export declare class ExpressionWithTypeArguments extends ExpressionWithTypeArgum
489
490
  declare const FunctionType_base: ((abstract new (...args: any[]) => {
490
491
  readonly prefix: Space;
491
492
  withPrefix(prefix: Space): JS;
492
- readonly id: Uint8Array;
493
+ readonly id: UUID;
493
494
  withId(id: UUID): JS;
494
495
  readonly markers: Markers;
495
496
  withMarkers(markers: Markers): JS;
@@ -510,7 +511,7 @@ declare const FunctionType_base: ((abstract new (...args: any[]) => {
510
511
  isJavaScript: boolean;
511
512
  }) & ObjectConstructor;
512
513
  export declare class FunctionType extends FunctionType_base implements Expression, TypeTree {
513
- constructor(id: UUID, prefix: Space, markers: Markers, constructorType: JRightPadded<boolean>, parameters: JContainer<Statement>, arrow: Space, returnType: Expression, _type: JavaType | null);
514
+ constructor(id: UUID, prefix: Space, markers: Markers, constructorType: JRightPadded<boolean>, typeParameters: Java.TypeParameters | null, parameters: JContainer<Statement>, arrow: Space, returnType: Expression, _type: JavaType | null);
514
515
  private readonly _id;
515
516
  get id(): UUID;
516
517
  withId(id: UUID): FunctionType;
@@ -523,6 +524,9 @@ export declare class FunctionType extends FunctionType_base implements Expressio
523
524
  private readonly _constructorType;
524
525
  get constructorType(): boolean;
525
526
  withConstructorType(constructorType: boolean): FunctionType;
527
+ private readonly _typeParameters;
528
+ get typeParameters(): Java.TypeParameters | null;
529
+ withTypeParameters(typeParameters: Java.TypeParameters | null): FunctionType;
526
530
  private readonly _parameters;
527
531
  get parameters(): Statement[];
528
532
  withParameters(parameters: Statement[]): FunctionType;
@@ -543,10 +547,115 @@ export declare class FunctionType extends FunctionType_base implements Expressio
543
547
  withParameters(parameters: JContainer<Statement>): FunctionType;
544
548
  };
545
549
  }
550
+ declare const InferType_base: ((abstract new (...args: any[]) => {
551
+ readonly prefix: Space;
552
+ withPrefix(prefix: Space): JS;
553
+ readonly id: UUID;
554
+ withId(id: UUID): JS;
555
+ readonly markers: Markers;
556
+ withMarkers(markers: Markers): JS;
557
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
558
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
559
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
560
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
561
+ constructor: Function;
562
+ toString(): string;
563
+ toLocaleString(): string;
564
+ valueOf(): Object;
565
+ hasOwnProperty(v: PropertyKey): boolean;
566
+ isPrototypeOf(v: Object): boolean;
567
+ propertyIsEnumerable(v: PropertyKey): boolean;
568
+ }) & {
569
+ isTree: boolean;
570
+ isJava: boolean;
571
+ isJavaScript: boolean;
572
+ }) & ObjectConstructor;
573
+ export declare class InferType extends InferType_base implements TypeTree, Expression {
574
+ constructor(id: UUID, prefix: Space, markers: Markers, typeParameter: JLeftPadded<J>, _type: JavaType | null);
575
+ private readonly _id;
576
+ get id(): UUID;
577
+ withId(id: UUID): InferType;
578
+ private readonly _prefix;
579
+ get prefix(): Space;
580
+ withPrefix(prefix: Space): InferType;
581
+ private readonly _markers;
582
+ get markers(): Markers;
583
+ withMarkers(markers: Markers): InferType;
584
+ private readonly _typeParameter;
585
+ get typeParameter(): J;
586
+ withTypeParameter(typeParameter: J): InferType;
587
+ private readonly _type;
588
+ get type(): JavaType | null;
589
+ withType(_type: JavaType | null): InferType;
590
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
591
+ get padding(): {
592
+ readonly typeParameter: JLeftPadded<J>;
593
+ withTypeParameter(typeParameter: JLeftPadded<J>): InferType;
594
+ };
595
+ }
596
+ declare const ImportType_base: ((abstract new (...args: any[]) => {
597
+ readonly prefix: Space;
598
+ withPrefix(prefix: Space): JS;
599
+ readonly id: UUID;
600
+ withId(id: UUID): JS;
601
+ readonly markers: Markers;
602
+ withMarkers(markers: Markers): JS;
603
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
604
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
605
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
606
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
607
+ constructor: Function;
608
+ toString(): string;
609
+ toLocaleString(): string;
610
+ valueOf(): Object;
611
+ hasOwnProperty(v: PropertyKey): boolean;
612
+ isPrototypeOf(v: Object): boolean;
613
+ propertyIsEnumerable(v: PropertyKey): boolean;
614
+ }) & {
615
+ isTree: boolean;
616
+ isJava: boolean;
617
+ isJavaScript: boolean;
618
+ }) & ObjectConstructor;
619
+ export declare class ImportType extends ImportType_base implements Expression, TypeTree {
620
+ constructor(id: UUID, prefix: Space, markers: Markers, hasTypeof: JRightPadded<boolean>, importArgument: Java.ParenthesizedTypeTree, qualifier: JLeftPadded<Expression> | null, typeArguments: JContainer<Expression> | null, _type: JavaType | null);
621
+ private readonly _id;
622
+ get id(): UUID;
623
+ withId(id: UUID): ImportType;
624
+ private readonly _prefix;
625
+ get prefix(): Space;
626
+ withPrefix(prefix: Space): ImportType;
627
+ private readonly _markers;
628
+ get markers(): Markers;
629
+ withMarkers(markers: Markers): ImportType;
630
+ private readonly _hasTypeof;
631
+ get hasTypeof(): boolean;
632
+ withHasTypeof(hasTypeof: boolean): ImportType;
633
+ private readonly _importArgument;
634
+ get importArgument(): Java.ParenthesizedTypeTree;
635
+ withImportArgument(importArgument: Java.ParenthesizedTypeTree): ImportType;
636
+ private readonly _qualifier;
637
+ get qualifier(): Expression | null;
638
+ withQualifier(qualifier: Expression | null): ImportType;
639
+ private readonly _typeArguments;
640
+ get typeArguments(): Expression[] | null;
641
+ withTypeArguments(typeArguments: Expression[] | null): ImportType;
642
+ private readonly _type;
643
+ get type(): JavaType | null;
644
+ withType(_type: JavaType | null): ImportType;
645
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
646
+ get padding(): {
647
+ readonly hasTypeof: JRightPadded<boolean>;
648
+ withHasTypeof(hasTypeof: JRightPadded<boolean>): ImportType;
649
+ readonly qualifier: JLeftPadded<Expression> | null;
650
+ withQualifier(qualifier: JLeftPadded<Expression> | null): ImportType;
651
+ readonly typeArguments: JContainer<Expression> | null;
652
+ withTypeArguments(typeArguments: JContainer<Expression> | null): ImportType;
653
+ };
654
+ }
546
655
  declare const JsImport_base: ((abstract new (...args: any[]) => {
547
656
  readonly prefix: Space;
548
657
  withPrefix(prefix: Space): JS;
549
- readonly id: Uint8Array;
658
+ readonly id: UUID;
550
659
  withId(id: UUID): JS;
551
660
  readonly markers: Markers;
552
661
  withMarkers(markers: Markers): JS;
@@ -610,7 +719,7 @@ export declare class JsImport extends JsImport_base implements Statement {
610
719
  declare const JsImportSpecifier_base: ((abstract new (...args: any[]) => {
611
720
  readonly prefix: Space;
612
721
  withPrefix(prefix: Space): JS;
613
- readonly id: Uint8Array;
722
+ readonly id: UUID;
614
723
  withId(id: UUID): JS;
615
724
  readonly markers: Markers;
616
725
  withMarkers(markers: Markers): JS;
@@ -659,7 +768,7 @@ export declare class JsImportSpecifier extends JsImportSpecifier_base implements
659
768
  declare const JsBinary_base: ((abstract new (...args: any[]) => {
660
769
  readonly prefix: Space;
661
770
  withPrefix(prefix: Space): JS;
662
- readonly id: Uint8Array;
771
+ readonly id: UUID;
663
772
  withId(id: UUID): JS;
664
773
  readonly markers: Markers;
665
774
  withMarkers(markers: Markers): JS;
@@ -714,13 +823,222 @@ export declare namespace JsBinary {
714
823
  IdentityEquals = 1,
715
824
  IdentityNotEquals = 2,
716
825
  In = 3,
717
- QuestionQuestion = 4
826
+ QuestionQuestion = 4,
827
+ Comma = 5
828
+ }
829
+ }
830
+ declare const LiteralType_base: ((abstract new (...args: any[]) => {
831
+ readonly prefix: Space;
832
+ withPrefix(prefix: Space): JS;
833
+ readonly id: UUID;
834
+ withId(id: UUID): JS;
835
+ readonly markers: Markers;
836
+ withMarkers(markers: Markers): JS;
837
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
838
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
839
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
840
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
841
+ constructor: Function;
842
+ toString(): string;
843
+ toLocaleString(): string;
844
+ valueOf(): Object;
845
+ hasOwnProperty(v: PropertyKey): boolean;
846
+ isPrototypeOf(v: Object): boolean;
847
+ propertyIsEnumerable(v: PropertyKey): boolean;
848
+ }) & {
849
+ isTree: boolean;
850
+ isJava: boolean;
851
+ isJavaScript: boolean;
852
+ }) & ObjectConstructor;
853
+ export declare class LiteralType extends LiteralType_base implements Expression, TypeTree {
854
+ constructor(id: UUID, prefix: Space, markers: Markers, literal: Expression, _type: JavaType);
855
+ private readonly _id;
856
+ get id(): UUID;
857
+ withId(id: UUID): LiteralType;
858
+ private readonly _prefix;
859
+ get prefix(): Space;
860
+ withPrefix(prefix: Space): LiteralType;
861
+ private readonly _markers;
862
+ get markers(): Markers;
863
+ withMarkers(markers: Markers): LiteralType;
864
+ private readonly _literal;
865
+ get literal(): Expression;
866
+ withLiteral(literal: Expression): LiteralType;
867
+ private readonly _type;
868
+ get type(): JavaType;
869
+ withType(_type: JavaType): LiteralType;
870
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
871
+ }
872
+ declare const MappedType_base: ((abstract new (...args: any[]) => {
873
+ readonly prefix: Space;
874
+ withPrefix(prefix: Space): JS;
875
+ readonly id: UUID;
876
+ withId(id: UUID): JS;
877
+ readonly markers: Markers;
878
+ withMarkers(markers: Markers): JS;
879
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
880
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
881
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
882
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
883
+ constructor: Function;
884
+ toString(): string;
885
+ toLocaleString(): string;
886
+ valueOf(): Object;
887
+ hasOwnProperty(v: PropertyKey): boolean;
888
+ isPrototypeOf(v: Object): boolean;
889
+ propertyIsEnumerable(v: PropertyKey): boolean;
890
+ }) & {
891
+ isTree: boolean;
892
+ isJava: boolean;
893
+ isJavaScript: boolean;
894
+ }) & ObjectConstructor;
895
+ export declare class MappedType extends MappedType_base implements Expression, TypeTree {
896
+ constructor(id: UUID, prefix: Space, markers: Markers, prefixToken: JLeftPadded<Java.Literal> | null, hasReadonly: JLeftPadded<boolean>, keysRemapping: MappedType.KeysRemapping, suffixToken: JLeftPadded<Java.Literal> | null, hasQuestionToken: JLeftPadded<boolean>, valueType: JContainer<TypeTree>, _type: JavaType | null);
897
+ private readonly _id;
898
+ get id(): UUID;
899
+ withId(id: UUID): MappedType;
900
+ private readonly _prefix;
901
+ get prefix(): Space;
902
+ withPrefix(prefix: Space): MappedType;
903
+ private readonly _markers;
904
+ get markers(): Markers;
905
+ withMarkers(markers: Markers): MappedType;
906
+ private readonly _prefixToken;
907
+ get prefixToken(): Java.Literal | null;
908
+ withPrefixToken(prefixToken: Java.Literal | null): MappedType;
909
+ private readonly _hasReadonly;
910
+ get hasReadonly(): boolean;
911
+ withHasReadonly(hasReadonly: boolean): MappedType;
912
+ private readonly _keysRemapping;
913
+ get keysRemapping(): MappedType.KeysRemapping;
914
+ withKeysRemapping(keysRemapping: MappedType.KeysRemapping): MappedType;
915
+ private readonly _suffixToken;
916
+ get suffixToken(): Java.Literal | null;
917
+ withSuffixToken(suffixToken: Java.Literal | null): MappedType;
918
+ private readonly _hasQuestionToken;
919
+ get hasQuestionToken(): boolean;
920
+ withHasQuestionToken(hasQuestionToken: boolean): MappedType;
921
+ private readonly _valueType;
922
+ get valueType(): TypeTree[];
923
+ withValueType(valueType: TypeTree[]): MappedType;
924
+ private readonly _type;
925
+ get type(): JavaType | null;
926
+ withType(_type: JavaType | null): MappedType;
927
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
928
+ get padding(): {
929
+ readonly prefixToken: JLeftPadded<Java.Literal> | null;
930
+ withPrefixToken(prefixToken: JLeftPadded<Java.Literal> | null): MappedType;
931
+ readonly hasReadonly: JLeftPadded<boolean>;
932
+ withHasReadonly(hasReadonly: JLeftPadded<boolean>): MappedType;
933
+ readonly suffixToken: JLeftPadded<Java.Literal> | null;
934
+ withSuffixToken(suffixToken: JLeftPadded<Java.Literal> | null): MappedType;
935
+ readonly hasQuestionToken: JLeftPadded<boolean>;
936
+ withHasQuestionToken(hasQuestionToken: JLeftPadded<boolean>): MappedType;
937
+ readonly valueType: JContainer<TypeTree>;
938
+ withValueType(valueType: JContainer<TypeTree>): MappedType;
939
+ };
940
+ }
941
+ export declare namespace MappedType {
942
+ const KeysRemapping_base: ((abstract new (...args: any[]) => {
943
+ readonly prefix: Space;
944
+ withPrefix(prefix: Space): JS;
945
+ readonly id: UUID;
946
+ withId(id: UUID): JS;
947
+ readonly markers: Markers;
948
+ withMarkers(markers: Markers): JS;
949
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
950
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
951
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
952
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
953
+ constructor: Function;
954
+ toString(): string;
955
+ toLocaleString(): string;
956
+ valueOf(): Object;
957
+ hasOwnProperty(v: PropertyKey): boolean;
958
+ isPrototypeOf(v: Object): boolean;
959
+ propertyIsEnumerable(v: PropertyKey): boolean;
960
+ }) & {
961
+ isTree: boolean;
962
+ isJava: boolean;
963
+ isJavaScript: boolean;
964
+ }) & ObjectConstructor;
965
+ export class KeysRemapping extends KeysRemapping_base implements Statement {
966
+ constructor(id: UUID, prefix: Space, markers: Markers, typeParameter: JRightPadded<MappedType.MappedTypeParameter>, nameType: JRightPadded<Expression> | null);
967
+ private readonly _id;
968
+ get id(): UUID;
969
+ withId(id: UUID): MappedType.KeysRemapping;
970
+ private readonly _prefix;
971
+ get prefix(): Space;
972
+ withPrefix(prefix: Space): MappedType.KeysRemapping;
973
+ private readonly _markers;
974
+ get markers(): Markers;
975
+ withMarkers(markers: Markers): MappedType.KeysRemapping;
976
+ private readonly _typeParameter;
977
+ get typeParameter(): MappedType.MappedTypeParameter;
978
+ withTypeParameter(typeParameter: MappedType.MappedTypeParameter): MappedType.KeysRemapping;
979
+ private readonly _nameType;
980
+ get nameType(): Expression | null;
981
+ withNameType(nameType: Expression | null): MappedType.KeysRemapping;
982
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
983
+ get padding(): {
984
+ readonly typeParameter: JRightPadded<MappedType.MappedTypeParameter>;
985
+ withTypeParameter(typeParameter: JRightPadded<MappedType.MappedTypeParameter>): MappedType.KeysRemapping;
986
+ readonly nameType: JRightPadded<Expression> | null;
987
+ withNameType(nameType: JRightPadded<Expression> | null): MappedType.KeysRemapping;
988
+ };
989
+ }
990
+ const MappedTypeParameter_base: ((abstract new (...args: any[]) => {
991
+ readonly prefix: Space;
992
+ withPrefix(prefix: Space): JS;
993
+ readonly id: UUID;
994
+ withId(id: UUID): JS;
995
+ readonly markers: Markers;
996
+ withMarkers(markers: Markers): JS;
997
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
998
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
999
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
1000
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1001
+ constructor: Function;
1002
+ toString(): string;
1003
+ toLocaleString(): string;
1004
+ valueOf(): Object;
1005
+ hasOwnProperty(v: PropertyKey): boolean;
1006
+ isPrototypeOf(v: Object): boolean;
1007
+ propertyIsEnumerable(v: PropertyKey): boolean;
1008
+ }) & {
1009
+ isTree: boolean;
1010
+ isJava: boolean;
1011
+ isJavaScript: boolean;
1012
+ }) & ObjectConstructor;
1013
+ export class MappedTypeParameter extends MappedTypeParameter_base implements Statement {
1014
+ constructor(id: UUID, prefix: Space, markers: Markers, name: Expression, iterateType: JLeftPadded<TypeTree>);
1015
+ private readonly _id;
1016
+ get id(): UUID;
1017
+ withId(id: UUID): MappedType.MappedTypeParameter;
1018
+ private readonly _prefix;
1019
+ get prefix(): Space;
1020
+ withPrefix(prefix: Space): MappedType.MappedTypeParameter;
1021
+ private readonly _markers;
1022
+ get markers(): Markers;
1023
+ withMarkers(markers: Markers): MappedType.MappedTypeParameter;
1024
+ private readonly _name;
1025
+ get name(): Expression;
1026
+ withName(name: Expression): MappedType.MappedTypeParameter;
1027
+ private readonly _iterateType;
1028
+ get iterateType(): TypeTree;
1029
+ withIterateType(iterateType: TypeTree): MappedType.MappedTypeParameter;
1030
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1031
+ get padding(): {
1032
+ readonly iterateType: JLeftPadded<TypeTree>;
1033
+ withIterateType(iterateType: JLeftPadded<TypeTree>): MappedType.MappedTypeParameter;
1034
+ };
718
1035
  }
1036
+ export {};
719
1037
  }
720
1038
  declare const ObjectBindingDeclarations_base: ((abstract new (...args: any[]) => {
721
1039
  readonly prefix: Space;
722
1040
  withPrefix(prefix: Space): JS;
723
- readonly id: Uint8Array;
1041
+ readonly id: UUID;
724
1042
  withId(id: UUID): JS;
725
1043
  readonly markers: Markers;
726
1044
  withMarkers(markers: Markers): JS;
@@ -741,7 +1059,7 @@ declare const ObjectBindingDeclarations_base: ((abstract new (...args: any[]) =>
741
1059
  isJavaScript: boolean;
742
1060
  }) & ObjectConstructor;
743
1061
  export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations_base implements Expression, TypedTree {
744
- constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Java.Annotation[], modifiers: Java.Modifier[], typeExpression: TypeTree | null, bindings: JContainer<BindingElement>, initializer: JLeftPadded<Expression> | null);
1062
+ constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Java.Annotation[], modifiers: Java.Modifier[], typeExpression: TypeTree | null, bindings: JContainer<J>, initializer: JLeftPadded<Expression> | null);
745
1063
  private readonly _id;
746
1064
  get id(): UUID;
747
1065
  withId(id: UUID): ObjectBindingDeclarations;
@@ -761,8 +1079,8 @@ export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations
761
1079
  get typeExpression(): TypeTree | null;
762
1080
  withTypeExpression(typeExpression: TypeTree | null): ObjectBindingDeclarations;
763
1081
  private readonly _bindings;
764
- get bindings(): BindingElement[];
765
- withBindings(bindings: BindingElement[]): ObjectBindingDeclarations;
1082
+ get bindings(): J[];
1083
+ withBindings(bindings: J[]): ObjectBindingDeclarations;
766
1084
  private readonly _initializer;
767
1085
  get initializer(): Expression | null;
768
1086
  withInitializer(initializer: Expression | null): ObjectBindingDeclarations;
@@ -770,8 +1088,8 @@ export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations
770
1088
  get type(): JavaType | null;
771
1089
  withType(type: JavaType): ObjectBindingDeclarations;
772
1090
  get padding(): {
773
- readonly bindings: JContainer<BindingElement>;
774
- withBindings(bindings: JContainer<BindingElement>): ObjectBindingDeclarations;
1091
+ readonly bindings: JContainer<J>;
1092
+ withBindings(bindings: JContainer<J>): ObjectBindingDeclarations;
775
1093
  readonly initializer: JLeftPadded<Expression> | null;
776
1094
  withInitializer(initializer: JLeftPadded<Expression> | null): ObjectBindingDeclarations;
777
1095
  };
@@ -779,7 +1097,7 @@ export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations
779
1097
  declare const PropertyAssignment_base: ((abstract new (...args: any[]) => {
780
1098
  readonly prefix: Space;
781
1099
  withPrefix(prefix: Space): JS;
782
- readonly id: Uint8Array;
1100
+ readonly id: UUID;
783
1101
  withId(id: UUID): JS;
784
1102
  readonly markers: Markers;
785
1103
  withMarkers(markers: Markers): JS;
@@ -824,10 +1142,59 @@ export declare class PropertyAssignment extends PropertyAssignment_base implemen
824
1142
  withName(name: JRightPadded<Expression>): PropertyAssignment;
825
1143
  };
826
1144
  }
1145
+ declare const SatisfiesExpression_base: ((abstract new (...args: any[]) => {
1146
+ readonly prefix: Space;
1147
+ withPrefix(prefix: Space): JS;
1148
+ readonly id: UUID;
1149
+ withId(id: UUID): JS;
1150
+ readonly markers: Markers;
1151
+ withMarkers(markers: Markers): JS;
1152
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1153
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1154
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
1155
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1156
+ constructor: Function;
1157
+ toString(): string;
1158
+ toLocaleString(): string;
1159
+ valueOf(): Object;
1160
+ hasOwnProperty(v: PropertyKey): boolean;
1161
+ isPrototypeOf(v: Object): boolean;
1162
+ propertyIsEnumerable(v: PropertyKey): boolean;
1163
+ }) & {
1164
+ isTree: boolean;
1165
+ isJava: boolean;
1166
+ isJavaScript: boolean;
1167
+ }) & ObjectConstructor;
1168
+ export declare class SatisfiesExpression extends SatisfiesExpression_base implements Expression {
1169
+ constructor(id: UUID, prefix: Space, markers: Markers, expression: J, satisfiesType: JLeftPadded<Expression>, _type: JavaType | null);
1170
+ private readonly _id;
1171
+ get id(): UUID;
1172
+ withId(id: UUID): SatisfiesExpression;
1173
+ private readonly _prefix;
1174
+ get prefix(): Space;
1175
+ withPrefix(prefix: Space): SatisfiesExpression;
1176
+ private readonly _markers;
1177
+ get markers(): Markers;
1178
+ withMarkers(markers: Markers): SatisfiesExpression;
1179
+ private readonly _expression;
1180
+ get expression(): J;
1181
+ withExpression(expression: J): SatisfiesExpression;
1182
+ private readonly _satisfiesType;
1183
+ get satisfiesType(): Expression;
1184
+ withSatisfiesType(satisfiesType: Expression): SatisfiesExpression;
1185
+ private readonly _type;
1186
+ get type(): JavaType | null;
1187
+ withType(_type: JavaType | null): SatisfiesExpression;
1188
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1189
+ get padding(): {
1190
+ readonly satisfiesType: JLeftPadded<Expression>;
1191
+ withSatisfiesType(satisfiesType: JLeftPadded<Expression>): SatisfiesExpression;
1192
+ };
1193
+ }
827
1194
  declare const ScopedVariableDeclarations_base: ((abstract new (...args: any[]) => {
828
1195
  readonly prefix: Space;
829
1196
  withPrefix(prefix: Space): JS;
830
- readonly id: Uint8Array;
1197
+ readonly id: UUID;
831
1198
  withId(id: UUID): JS;
832
1199
  readonly markers: Markers;
833
1200
  withMarkers(markers: Markers): JS;
@@ -885,7 +1252,7 @@ export declare namespace ScopedVariableDeclarations {
885
1252
  declare const TaggedTemplateExpression_base: ((abstract new (...args: any[]) => {
886
1253
  readonly prefix: Space;
887
1254
  withPrefix(prefix: Space): JS;
888
- readonly id: Uint8Array;
1255
+ readonly id: UUID;
889
1256
  withId(id: UUID): JS;
890
1257
  readonly markers: Markers;
891
1258
  withMarkers(markers: Markers): JS;
@@ -939,7 +1306,7 @@ export declare class TaggedTemplateExpression extends TaggedTemplateExpression_b
939
1306
  declare const TemplateExpression_base: ((abstract new (...args: any[]) => {
940
1307
  readonly prefix: Space;
941
1308
  withPrefix(prefix: Space): JS;
942
- readonly id: Uint8Array;
1309
+ readonly id: UUID;
943
1310
  withId(id: UUID): JS;
944
1311
  readonly markers: Markers;
945
1312
  withMarkers(markers: Markers): JS;
@@ -959,7 +1326,7 @@ declare const TemplateExpression_base: ((abstract new (...args: any[]) => {
959
1326
  isJava: boolean;
960
1327
  isJavaScript: boolean;
961
1328
  }) & ObjectConstructor;
962
- export declare class TemplateExpression extends TemplateExpression_base implements Statement, Expression {
1329
+ export declare class TemplateExpression extends TemplateExpression_base implements Statement, Expression, TypeTree {
963
1330
  constructor(id: UUID, prefix: Space, markers: Markers, head: Java.Literal, templateSpans: JRightPadded<TemplateExpression.TemplateSpan>[], _type: JavaType | null);
964
1331
  private readonly _id;
965
1332
  get id(): UUID;
@@ -989,7 +1356,7 @@ export declare namespace TemplateExpression {
989
1356
  const TemplateSpan_base: ((abstract new (...args: any[]) => {
990
1357
  readonly prefix: Space;
991
1358
  withPrefix(prefix: Space): JS;
992
- readonly id: Uint8Array;
1359
+ readonly id: UUID;
993
1360
  withId(id: UUID): JS;
994
1361
  readonly markers: Markers;
995
1362
  withMarkers(markers: Markers): JS;
@@ -1033,7 +1400,7 @@ export declare namespace TemplateExpression {
1033
1400
  declare const Tuple_base: ((abstract new (...args: any[]) => {
1034
1401
  readonly prefix: Space;
1035
1402
  withPrefix(prefix: Space): JS;
1036
- readonly id: Uint8Array;
1403
+ readonly id: UUID;
1037
1404
  withId(id: UUID): JS;
1038
1405
  readonly markers: Markers;
1039
1406
  withMarkers(markers: Markers): JS;
@@ -1079,7 +1446,7 @@ export declare class Tuple extends Tuple_base implements Expression, TypeTree {
1079
1446
  declare const TypeDeclaration_base: ((abstract new (...args: any[]) => {
1080
1447
  readonly prefix: Space;
1081
1448
  withPrefix(prefix: Space): JS;
1082
- readonly id: Uint8Array;
1449
+ readonly id: UUID;
1083
1450
  withId(id: UUID): JS;
1084
1451
  readonly markers: Markers;
1085
1452
  withMarkers(markers: Markers): JS;
@@ -1136,7 +1503,7 @@ export declare class TypeDeclaration extends TypeDeclaration_base implements Sta
1136
1503
  declare const TypeOf_base: ((abstract new (...args: any[]) => {
1137
1504
  readonly prefix: Space;
1138
1505
  withPrefix(prefix: Space): JS;
1139
- readonly id: Uint8Array;
1506
+ readonly id: UUID;
1140
1507
  withId(id: UUID): JS;
1141
1508
  readonly markers: Markers;
1142
1509
  withMarkers(markers: Markers): JS;
@@ -1178,7 +1545,7 @@ export declare class TypeOf extends TypeOf_base implements Expression {
1178
1545
  declare const TypeQuery_base: ((abstract new (...args: any[]) => {
1179
1546
  readonly prefix: Space;
1180
1547
  withPrefix(prefix: Space): JS;
1181
- readonly id: Uint8Array;
1548
+ readonly id: UUID;
1182
1549
  withId(id: UUID): JS;
1183
1550
  readonly markers: Markers;
1184
1551
  withMarkers(markers: Markers): JS;
@@ -1220,7 +1587,7 @@ export declare class TypeQuery extends TypeQuery_base implements Expression, Typ
1220
1587
  declare const TypeOperator_base: ((abstract new (...args: any[]) => {
1221
1588
  readonly prefix: Space;
1222
1589
  withPrefix(prefix: Space): JS;
1223
- readonly id: Uint8Array;
1590
+ readonly id: UUID;
1224
1591
  withId(id: UUID): JS;
1225
1592
  readonly markers: Markers;
1226
1593
  withMarkers(markers: Markers): JS;
@@ -1240,7 +1607,7 @@ declare const TypeOperator_base: ((abstract new (...args: any[]) => {
1240
1607
  isJava: boolean;
1241
1608
  isJavaScript: boolean;
1242
1609
  }) & ObjectConstructor;
1243
- export declare class TypeOperator extends TypeOperator_base implements Expression, TypedTree, NameTree {
1610
+ export declare class TypeOperator extends TypeOperator_base implements Expression, TypeTree {
1244
1611
  constructor(id: UUID, prefix: Space, markers: Markers, operator: TypeOperator.Type, expression: JLeftPadded<Expression>);
1245
1612
  private readonly _id;
1246
1613
  get id(): UUID;
@@ -1268,13 +1635,14 @@ export declare class TypeOperator extends TypeOperator_base implements Expressio
1268
1635
  export declare namespace TypeOperator {
1269
1636
  enum Type {
1270
1637
  ReadOnly = 0,
1271
- KeyOf = 1
1638
+ KeyOf = 1,
1639
+ Unique = 2
1272
1640
  }
1273
1641
  }
1274
- declare const Unary_base: ((abstract new (...args: any[]) => {
1642
+ declare const TypePredicate_base: ((abstract new (...args: any[]) => {
1275
1643
  readonly prefix: Space;
1276
1644
  withPrefix(prefix: Space): JS;
1277
- readonly id: Uint8Array;
1645
+ readonly id: UUID;
1278
1646
  withId(id: UUID): JS;
1279
1647
  readonly markers: Markers;
1280
1648
  withMarkers(markers: Markers): JS;
@@ -1294,45 +1662,100 @@ declare const Unary_base: ((abstract new (...args: any[]) => {
1294
1662
  isJava: boolean;
1295
1663
  isJavaScript: boolean;
1296
1664
  }) & ObjectConstructor;
1297
- export declare class Unary extends Unary_base implements Statement, Expression, TypedTree {
1298
- constructor(id: UUID, prefix: Space, markers: Markers, operator: JLeftPadded<Unary.Type>, expression: Expression, _type: JavaType | null);
1665
+ export declare class TypePredicate extends TypePredicate_base implements Expression, TypeTree {
1666
+ constructor(id: UUID, prefix: Space, markers: Markers, asserts: JLeftPadded<boolean>, parameterName: Java.Identifier, expression: JLeftPadded<Expression> | null, _type: JavaType | null);
1299
1667
  private readonly _id;
1300
1668
  get id(): UUID;
1301
- withId(id: UUID): Unary;
1669
+ withId(id: UUID): TypePredicate;
1302
1670
  private readonly _prefix;
1303
1671
  get prefix(): Space;
1304
- withPrefix(prefix: Space): Unary;
1672
+ withPrefix(prefix: Space): TypePredicate;
1305
1673
  private readonly _markers;
1306
1674
  get markers(): Markers;
1307
- withMarkers(markers: Markers): Unary;
1308
- private readonly _operator;
1309
- get operator(): Unary.Type;
1310
- withOperator(operator: Unary.Type): Unary;
1675
+ withMarkers(markers: Markers): TypePredicate;
1676
+ private readonly _asserts;
1677
+ get asserts(): boolean;
1678
+ withAsserts(asserts: boolean): TypePredicate;
1679
+ private readonly _parameterName;
1680
+ get parameterName(): Java.Identifier;
1681
+ withParameterName(parameterName: Java.Identifier): TypePredicate;
1311
1682
  private readonly _expression;
1312
- get expression(): Expression;
1313
- withExpression(expression: Expression): Unary;
1683
+ get expression(): Expression | null;
1684
+ withExpression(expression: Expression | null): TypePredicate;
1314
1685
  private readonly _type;
1315
1686
  get type(): JavaType | null;
1316
- withType(_type: JavaType | null): Unary;
1687
+ withType(_type: JavaType | null): TypePredicate;
1317
1688
  acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1318
1689
  get padding(): {
1319
- readonly operator: JLeftPadded<Unary.Type>;
1320
- withOperator(operator: JLeftPadded<Unary.Type>): Unary;
1690
+ readonly asserts: JLeftPadded<boolean>;
1691
+ withAsserts(asserts: JLeftPadded<boolean>): TypePredicate;
1692
+ readonly expression: JLeftPadded<Expression> | null;
1693
+ withExpression(expression: JLeftPadded<Expression> | null): TypePredicate;
1321
1694
  };
1322
1695
  }
1323
- export declare namespace Unary {
1324
- enum Type {
1325
- Spread = 0,
1696
+ declare const Unary_base: ((abstract new (...args: any[]) => {
1697
+ readonly prefix: Space;
1698
+ withPrefix(prefix: Space): JS;
1699
+ readonly id: UUID;
1700
+ withId(id: UUID): JS;
1701
+ readonly markers: Markers;
1702
+ withMarkers(markers: Markers): JS;
1703
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1704
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1705
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
1706
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1707
+ constructor: Function;
1708
+ toString(): string;
1709
+ toLocaleString(): string;
1710
+ valueOf(): Object;
1711
+ hasOwnProperty(v: PropertyKey): boolean;
1712
+ isPrototypeOf(v: Object): boolean;
1713
+ propertyIsEnumerable(v: PropertyKey): boolean;
1714
+ }) & {
1715
+ isTree: boolean;
1716
+ isJava: boolean;
1717
+ isJavaScript: boolean;
1718
+ }) & ObjectConstructor;
1719
+ export declare class Unary extends Unary_base implements Statement, Expression, TypedTree {
1720
+ constructor(id: UUID, prefix: Space, markers: Markers, operator: JLeftPadded<Unary.Type>, expression: Expression, _type: JavaType | null);
1721
+ private readonly _id;
1722
+ get id(): UUID;
1723
+ withId(id: UUID): Unary;
1724
+ private readonly _prefix;
1725
+ get prefix(): Space;
1726
+ withPrefix(prefix: Space): Unary;
1727
+ private readonly _markers;
1728
+ get markers(): Markers;
1729
+ withMarkers(markers: Markers): Unary;
1730
+ private readonly _operator;
1731
+ get operator(): Unary.Type;
1732
+ withOperator(operator: Unary.Type): Unary;
1733
+ private readonly _expression;
1734
+ get expression(): Expression;
1735
+ withExpression(expression: Expression): Unary;
1736
+ private readonly _type;
1737
+ get type(): JavaType | null;
1738
+ withType(_type: JavaType | null): Unary;
1739
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1740
+ get padding(): {
1741
+ readonly operator: JLeftPadded<Unary.Type>;
1742
+ withOperator(operator: JLeftPadded<Unary.Type>): Unary;
1743
+ };
1744
+ }
1745
+ export declare namespace Unary {
1746
+ enum Type {
1747
+ Spread = 0,
1326
1748
  Optional = 1,
1327
1749
  Exclamation = 2,
1328
1750
  QuestionDot = 3,
1329
- QuestionDotWithDot = 4
1751
+ QuestionDotWithDot = 4,
1752
+ Asterisk = 5
1330
1753
  }
1331
1754
  }
1332
1755
  declare const Union_base: ((abstract new (...args: any[]) => {
1333
1756
  readonly prefix: Space;
1334
1757
  withPrefix(prefix: Space): JS;
1335
- readonly id: Uint8Array;
1758
+ readonly id: UUID;
1336
1759
  withId(id: UUID): JS;
1337
1760
  readonly markers: Markers;
1338
1761
  withMarkers(markers: Markers): JS;
@@ -1378,7 +1801,7 @@ export declare class Union extends Union_base implements Expression, TypeTree {
1378
1801
  declare const Intersection_base: ((abstract new (...args: any[]) => {
1379
1802
  readonly prefix: Space;
1380
1803
  withPrefix(prefix: Space): JS;
1381
- readonly id: Uint8Array;
1804
+ readonly id: UUID;
1382
1805
  withId(id: UUID): JS;
1383
1806
  readonly markers: Markers;
1384
1807
  withMarkers(markers: Markers): JS;
@@ -1424,7 +1847,7 @@ export declare class Intersection extends Intersection_base implements Expressio
1424
1847
  declare const Void_base: ((abstract new (...args: any[]) => {
1425
1848
  readonly prefix: Space;
1426
1849
  withPrefix(prefix: Space): JS;
1427
- readonly id: Uint8Array;
1850
+ readonly id: UUID;
1428
1851
  withId(id: UUID): JS;
1429
1852
  readonly markers: Markers;
1430
1853
  withMarkers(markers: Markers): JS;
@@ -1465,7 +1888,7 @@ export declare class Void extends Void_base implements Expression, Statement {
1465
1888
  declare const Yield_base: ((abstract new (...args: any[]) => {
1466
1889
  readonly prefix: Space;
1467
1890
  withPrefix(prefix: Space): JS;
1468
- readonly id: Uint8Array;
1891
+ readonly id: UUID;
1469
1892
  withId(id: UUID): JS;
1470
1893
  readonly markers: Markers;
1471
1894
  withMarkers(markers: Markers): JS;
@@ -1486,7 +1909,7 @@ declare const Yield_base: ((abstract new (...args: any[]) => {
1486
1909
  isJavaScript: boolean;
1487
1910
  }) & ObjectConstructor;
1488
1911
  export declare class Yield extends Yield_base implements Expression {
1489
- constructor(id: UUID, prefix: Space, markers: Markers, delegated: boolean, expression: Expression | null, _type: JavaType | null);
1912
+ constructor(id: UUID, prefix: Space, markers: Markers, delegated: JLeftPadded<boolean>, expression: Expression | null, _type: JavaType | null);
1490
1913
  private readonly _id;
1491
1914
  get id(): UUID;
1492
1915
  withId(id: UUID): Yield;
@@ -1506,11 +1929,15 @@ export declare class Yield extends Yield_base implements Expression {
1506
1929
  get type(): JavaType | null;
1507
1930
  withType(_type: JavaType | null): Yield;
1508
1931
  acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1932
+ get padding(): {
1933
+ readonly delegated: JLeftPadded<boolean>;
1934
+ withDelegated(delegated: JLeftPadded<boolean>): Yield;
1935
+ };
1509
1936
  }
1510
1937
  declare const TypeInfo_base: ((abstract new (...args: any[]) => {
1511
1938
  readonly prefix: Space;
1512
1939
  withPrefix(prefix: Space): JS;
1513
- readonly id: Uint8Array;
1940
+ readonly id: UUID;
1514
1941
  withId(id: UUID): JS;
1515
1942
  readonly markers: Markers;
1516
1943
  withMarkers(markers: Markers): JS;
@@ -1551,7 +1978,7 @@ export declare class TypeInfo extends TypeInfo_base implements Expression, TypeT
1551
1978
  declare const JSVariableDeclarations_base: ((abstract new (...args: any[]) => {
1552
1979
  readonly prefix: Space;
1553
1980
  withPrefix(prefix: Space): JS;
1554
- readonly id: Uint8Array;
1981
+ readonly id: UUID;
1555
1982
  withId(id: UUID): JS;
1556
1983
  readonly markers: Markers;
1557
1984
  withMarkers(markers: Markers): JS;
@@ -1609,7 +2036,7 @@ export declare namespace JSVariableDeclarations {
1609
2036
  const JSNamedVariable_base: ((abstract new (...args: any[]) => {
1610
2037
  readonly prefix: Space;
1611
2038
  withPrefix(prefix: Space): JS;
1612
- readonly id: Uint8Array;
2039
+ readonly id: UUID;
1613
2040
  withId(id: UUID): JS;
1614
2041
  readonly markers: Markers;
1615
2042
  withMarkers(markers: Markers): JS;
@@ -1667,7 +2094,7 @@ export declare namespace JSVariableDeclarations {
1667
2094
  declare const JSMethodDeclaration_base: ((abstract new (...args: any[]) => {
1668
2095
  readonly prefix: Space;
1669
2096
  withPrefix(prefix: Space): JS;
1670
- readonly id: Uint8Array;
2097
+ readonly id: UUID;
1671
2098
  withId(id: UUID): JS;
1672
2099
  readonly markers: Markers;
1673
2100
  withMarkers(markers: Markers): JS;
@@ -1743,7 +2170,7 @@ export declare class JSMethodDeclaration extends JSMethodDeclaration_base implem
1743
2170
  declare const JSForOfLoop_base: ((abstract new (...args: any[]) => {
1744
2171
  readonly prefix: Space;
1745
2172
  withPrefix(prefix: Space): JS;
1746
- readonly id: Uint8Array;
2173
+ readonly id: UUID;
1747
2174
  withId(id: UUID): JS;
1748
2175
  readonly markers: Markers;
1749
2176
  withMarkers(markers: Markers): JS;
@@ -1794,7 +2221,7 @@ export declare class JSForOfLoop extends JSForOfLoop_base implements Loop {
1794
2221
  declare const JSForInLoop_base: ((abstract new (...args: any[]) => {
1795
2222
  readonly prefix: Space;
1796
2223
  withPrefix(prefix: Space): JS;
1797
- readonly id: Uint8Array;
2224
+ readonly id: UUID;
1798
2225
  withId(id: UUID): JS;
1799
2226
  readonly markers: Markers;
1800
2227
  withMarkers(markers: Markers): JS;
@@ -1840,7 +2267,7 @@ export declare class JSForInLoop extends JSForInLoop_base implements Loop {
1840
2267
  declare const JSForInOfLoopControl_base: ((abstract new (...args: any[]) => {
1841
2268
  readonly prefix: Space;
1842
2269
  withPrefix(prefix: Space): JS;
1843
- readonly id: Uint8Array;
2270
+ readonly id: UUID;
1844
2271
  withId(id: UUID): JS;
1845
2272
  readonly markers: Markers;
1846
2273
  withMarkers(markers: Markers): JS;
@@ -1861,7 +2288,7 @@ declare const JSForInOfLoopControl_base: ((abstract new (...args: any[]) => {
1861
2288
  isJavaScript: boolean;
1862
2289
  }) & ObjectConstructor;
1863
2290
  export declare class JSForInOfLoopControl extends JSForInOfLoopControl_base {
1864
- constructor(id: UUID, prefix: Space, markers: Markers, variable: JRightPadded<Statement>, iterable: JRightPadded<Expression>);
2291
+ constructor(id: UUID, prefix: Space, markers: Markers, variable: JRightPadded<J>, iterable: JRightPadded<Expression>);
1865
2292
  private readonly _id;
1866
2293
  get id(): UUID;
1867
2294
  withId(id: UUID): JSForInOfLoopControl;
@@ -1872,15 +2299,15 @@ export declare class JSForInOfLoopControl extends JSForInOfLoopControl_base {
1872
2299
  get markers(): Markers;
1873
2300
  withMarkers(markers: Markers): JSForInOfLoopControl;
1874
2301
  private readonly _variable;
1875
- get variable(): Statement;
1876
- withVariable(variable: Statement): JSForInOfLoopControl;
2302
+ get variable(): J;
2303
+ withVariable(variable: J): JSForInOfLoopControl;
1877
2304
  private readonly _iterable;
1878
2305
  get iterable(): Expression;
1879
2306
  withIterable(iterable: Expression): JSForInOfLoopControl;
1880
2307
  acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1881
2308
  get padding(): {
1882
- readonly variable: JRightPadded<Statement>;
1883
- withVariable(variable: JRightPadded<Statement>): JSForInOfLoopControl;
2309
+ readonly variable: JRightPadded<J>;
2310
+ withVariable(variable: JRightPadded<J>): JSForInOfLoopControl;
1884
2311
  readonly iterable: JRightPadded<Expression>;
1885
2312
  withIterable(iterable: JRightPadded<Expression>): JSForInOfLoopControl;
1886
2313
  };
@@ -1888,7 +2315,7 @@ export declare class JSForInOfLoopControl extends JSForInOfLoopControl_base {
1888
2315
  declare const NamespaceDeclaration_base: ((abstract new (...args: any[]) => {
1889
2316
  readonly prefix: Space;
1890
2317
  withPrefix(prefix: Space): JS;
1891
- readonly id: Uint8Array;
2318
+ readonly id: UUID;
1892
2319
  withId(id: UUID): JS;
1893
2320
  readonly markers: Markers;
1894
2321
  withMarkers(markers: Markers): JS;
@@ -1948,7 +2375,7 @@ export declare namespace NamespaceDeclaration {
1948
2375
  declare const FunctionDeclaration_base: ((abstract new (...args: any[]) => {
1949
2376
  readonly prefix: Space;
1950
2377
  withPrefix(prefix: Space): JS;
1951
- readonly id: Uint8Array;
2378
+ readonly id: UUID;
1952
2379
  withId(id: UUID): JS;
1953
2380
  readonly markers: Markers;
1954
2381
  withMarkers(markers: Markers): JS;
@@ -1969,7 +2396,7 @@ declare const FunctionDeclaration_base: ((abstract new (...args: any[]) => {
1969
2396
  isJavaScript: boolean;
1970
2397
  }) & ObjectConstructor;
1971
2398
  export declare class FunctionDeclaration extends FunctionDeclaration_base implements Statement, Expression, TypedTree {
1972
- constructor(id: UUID, prefix: Space, markers: Markers, modifiers: Java.Modifier[], name: Java.Identifier | null, typeParameters: Java.TypeParameters | null, parameters: JContainer<Statement>, returnTypeExpression: TypeTree | null, body: J, _type: JavaType | null);
2399
+ constructor(id: UUID, prefix: Space, markers: Markers, modifiers: Java.Modifier[], asteriskToken: JLeftPadded<boolean>, name: JLeftPadded<Java.Identifier>, typeParameters: Java.TypeParameters | null, parameters: JContainer<Statement>, returnTypeExpression: TypeTree | null, body: J | null, _type: JavaType | null);
1973
2400
  private readonly _id;
1974
2401
  get id(): UUID;
1975
2402
  withId(id: UUID): FunctionDeclaration;
@@ -1982,9 +2409,12 @@ export declare class FunctionDeclaration extends FunctionDeclaration_base implem
1982
2409
  private readonly _modifiers;
1983
2410
  get modifiers(): Java.Modifier[];
1984
2411
  withModifiers(modifiers: Java.Modifier[]): FunctionDeclaration;
2412
+ private readonly _asteriskToken;
2413
+ get asteriskToken(): boolean;
2414
+ withAsteriskToken(asteriskToken: boolean): FunctionDeclaration;
1985
2415
  private readonly _name;
1986
- get name(): Java.Identifier | null;
1987
- withName(name: Java.Identifier | null): FunctionDeclaration;
2416
+ get name(): Java.Identifier;
2417
+ withName(name: Java.Identifier): FunctionDeclaration;
1988
2418
  private readonly _typeParameters;
1989
2419
  get typeParameters(): Java.TypeParameters | null;
1990
2420
  withTypeParameters(typeParameters: Java.TypeParameters | null): FunctionDeclaration;
@@ -1995,13 +2425,17 @@ export declare class FunctionDeclaration extends FunctionDeclaration_base implem
1995
2425
  get returnTypeExpression(): TypeTree | null;
1996
2426
  withReturnTypeExpression(returnTypeExpression: TypeTree | null): FunctionDeclaration;
1997
2427
  private readonly _body;
1998
- get body(): J;
1999
- withBody(body: J): FunctionDeclaration;
2428
+ get body(): J | null;
2429
+ withBody(body: J | null): FunctionDeclaration;
2000
2430
  private readonly _type;
2001
2431
  get type(): JavaType | null;
2002
2432
  withType(_type: JavaType | null): FunctionDeclaration;
2003
2433
  acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2004
2434
  get padding(): {
2435
+ readonly asteriskToken: JLeftPadded<boolean>;
2436
+ withAsteriskToken(asteriskToken: JLeftPadded<boolean>): FunctionDeclaration;
2437
+ readonly name: JLeftPadded<Java.Identifier>;
2438
+ withName(name: JLeftPadded<Java.Identifier>): FunctionDeclaration;
2005
2439
  readonly parameters: JContainer<Statement>;
2006
2440
  withParameters(parameters: JContainer<Statement>): FunctionDeclaration;
2007
2441
  };
@@ -2009,7 +2443,7 @@ export declare class FunctionDeclaration extends FunctionDeclaration_base implem
2009
2443
  declare const TypeLiteral_base: ((abstract new (...args: any[]) => {
2010
2444
  readonly prefix: Space;
2011
2445
  withPrefix(prefix: Space): JS;
2012
- readonly id: Uint8Array;
2446
+ readonly id: UUID;
2013
2447
  withId(id: UUID): JS;
2014
2448
  readonly markers: Markers;
2015
2449
  withMarkers(markers: Markers): JS;
@@ -2051,7 +2485,7 @@ export declare class TypeLiteral extends TypeLiteral_base implements Expression,
2051
2485
  declare const IndexSignatureDeclaration_base: ((abstract new (...args: any[]) => {
2052
2486
  readonly prefix: Space;
2053
2487
  withPrefix(prefix: Space): JS;
2054
- readonly id: Uint8Array;
2488
+ readonly id: UUID;
2055
2489
  withId(id: UUID): JS;
2056
2490
  readonly markers: Markers;
2057
2491
  withMarkers(markers: Markers): JS;
@@ -2105,7 +2539,7 @@ export declare class IndexSignatureDeclaration extends IndexSignatureDeclaration
2105
2539
  declare const ArrayBindingPattern_base: ((abstract new (...args: any[]) => {
2106
2540
  readonly prefix: Space;
2107
2541
  withPrefix(prefix: Space): JS;
2108
- readonly id: Uint8Array;
2542
+ readonly id: UUID;
2109
2543
  withId(id: UUID): JS;
2110
2544
  readonly markers: Markers;
2111
2545
  withMarkers(markers: Markers): JS;
@@ -2151,7 +2585,7 @@ export declare class ArrayBindingPattern extends ArrayBindingPattern_base implem
2151
2585
  declare const BindingElement_base: ((abstract new (...args: any[]) => {
2152
2586
  readonly prefix: Space;
2153
2587
  withPrefix(prefix: Space): JS;
2154
- readonly id: Uint8Array;
2588
+ readonly id: UUID;
2155
2589
  withId(id: UUID): JS;
2156
2590
  readonly markers: Markers;
2157
2591
  withMarkers(markers: Markers): JS;
@@ -2204,5 +2638,398 @@ export declare class BindingElement extends BindingElement_base implements State
2204
2638
  withInitializer(initializer: JLeftPadded<Expression> | null): BindingElement;
2205
2639
  };
2206
2640
  }
2641
+ declare const ExportDeclaration_base: ((abstract new (...args: any[]) => {
2642
+ readonly prefix: Space;
2643
+ withPrefix(prefix: Space): JS;
2644
+ readonly id: UUID;
2645
+ withId(id: UUID): JS;
2646
+ readonly markers: Markers;
2647
+ withMarkers(markers: Markers): JS;
2648
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2649
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2650
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
2651
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2652
+ constructor: Function;
2653
+ toString(): string;
2654
+ toLocaleString(): string;
2655
+ valueOf(): Object;
2656
+ hasOwnProperty(v: PropertyKey): boolean;
2657
+ isPrototypeOf(v: Object): boolean;
2658
+ propertyIsEnumerable(v: PropertyKey): boolean;
2659
+ }) & {
2660
+ isTree: boolean;
2661
+ isJava: boolean;
2662
+ isJavaScript: boolean;
2663
+ }) & ObjectConstructor;
2664
+ export declare class ExportDeclaration extends ExportDeclaration_base implements Statement {
2665
+ constructor(id: UUID, prefix: Space, markers: Markers, modifiers: Java.Modifier[], typeOnly: JLeftPadded<boolean>, exportClause: Expression | null, moduleSpecifier: JLeftPadded<Expression> | null);
2666
+ private readonly _id;
2667
+ get id(): UUID;
2668
+ withId(id: UUID): ExportDeclaration;
2669
+ private readonly _prefix;
2670
+ get prefix(): Space;
2671
+ withPrefix(prefix: Space): ExportDeclaration;
2672
+ private readonly _markers;
2673
+ get markers(): Markers;
2674
+ withMarkers(markers: Markers): ExportDeclaration;
2675
+ private readonly _modifiers;
2676
+ get modifiers(): Java.Modifier[];
2677
+ withModifiers(modifiers: Java.Modifier[]): ExportDeclaration;
2678
+ private readonly _typeOnly;
2679
+ get typeOnly(): boolean;
2680
+ withTypeOnly(typeOnly: boolean): ExportDeclaration;
2681
+ private readonly _exportClause;
2682
+ get exportClause(): Expression | null;
2683
+ withExportClause(exportClause: Expression | null): ExportDeclaration;
2684
+ private readonly _moduleSpecifier;
2685
+ get moduleSpecifier(): Expression | null;
2686
+ withModuleSpecifier(moduleSpecifier: Expression | null): ExportDeclaration;
2687
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2688
+ get padding(): {
2689
+ readonly typeOnly: JLeftPadded<boolean>;
2690
+ withTypeOnly(typeOnly: JLeftPadded<boolean>): ExportDeclaration;
2691
+ readonly moduleSpecifier: JLeftPadded<Expression> | null;
2692
+ withModuleSpecifier(moduleSpecifier: JLeftPadded<Expression> | null): ExportDeclaration;
2693
+ };
2694
+ }
2695
+ declare const ExportAssignment_base: ((abstract new (...args: any[]) => {
2696
+ readonly prefix: Space;
2697
+ withPrefix(prefix: Space): JS;
2698
+ readonly id: UUID;
2699
+ withId(id: UUID): JS;
2700
+ readonly markers: Markers;
2701
+ withMarkers(markers: Markers): JS;
2702
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2703
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2704
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
2705
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2706
+ constructor: Function;
2707
+ toString(): string;
2708
+ toLocaleString(): string;
2709
+ valueOf(): Object;
2710
+ hasOwnProperty(v: PropertyKey): boolean;
2711
+ isPrototypeOf(v: Object): boolean;
2712
+ propertyIsEnumerable(v: PropertyKey): boolean;
2713
+ }) & {
2714
+ isTree: boolean;
2715
+ isJava: boolean;
2716
+ isJavaScript: boolean;
2717
+ }) & ObjectConstructor;
2718
+ export declare class ExportAssignment extends ExportAssignment_base implements Statement {
2719
+ constructor(id: UUID, prefix: Space, markers: Markers, modifiers: Java.Modifier[], exportEquals: JLeftPadded<boolean>, expression: Expression | null);
2720
+ private readonly _id;
2721
+ get id(): UUID;
2722
+ withId(id: UUID): ExportAssignment;
2723
+ private readonly _prefix;
2724
+ get prefix(): Space;
2725
+ withPrefix(prefix: Space): ExportAssignment;
2726
+ private readonly _markers;
2727
+ get markers(): Markers;
2728
+ withMarkers(markers: Markers): ExportAssignment;
2729
+ private readonly _modifiers;
2730
+ get modifiers(): Java.Modifier[];
2731
+ withModifiers(modifiers: Java.Modifier[]): ExportAssignment;
2732
+ private readonly _exportEquals;
2733
+ get exportEquals(): boolean;
2734
+ withExportEquals(exportEquals: boolean): ExportAssignment;
2735
+ private readonly _expression;
2736
+ get expression(): Expression | null;
2737
+ withExpression(expression: Expression | null): ExportAssignment;
2738
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2739
+ get padding(): {
2740
+ readonly exportEquals: JLeftPadded<boolean>;
2741
+ withExportEquals(exportEquals: JLeftPadded<boolean>): ExportAssignment;
2742
+ };
2743
+ }
2744
+ declare const NamedExports_base: ((abstract new (...args: any[]) => {
2745
+ readonly prefix: Space;
2746
+ withPrefix(prefix: Space): JS;
2747
+ readonly id: UUID;
2748
+ withId(id: UUID): JS;
2749
+ readonly markers: Markers;
2750
+ withMarkers(markers: Markers): JS;
2751
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2752
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2753
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
2754
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2755
+ constructor: Function;
2756
+ toString(): string;
2757
+ toLocaleString(): string;
2758
+ valueOf(): Object;
2759
+ hasOwnProperty(v: PropertyKey): boolean;
2760
+ isPrototypeOf(v: Object): boolean;
2761
+ propertyIsEnumerable(v: PropertyKey): boolean;
2762
+ }) & {
2763
+ isTree: boolean;
2764
+ isJava: boolean;
2765
+ isJavaScript: boolean;
2766
+ }) & ObjectConstructor;
2767
+ export declare class NamedExports extends NamedExports_base implements Expression {
2768
+ constructor(id: UUID, prefix: Space, markers: Markers, elements: JContainer<ExportSpecifier>, _type: JavaType | null);
2769
+ private readonly _id;
2770
+ get id(): UUID;
2771
+ withId(id: UUID): NamedExports;
2772
+ private readonly _prefix;
2773
+ get prefix(): Space;
2774
+ withPrefix(prefix: Space): NamedExports;
2775
+ private readonly _markers;
2776
+ get markers(): Markers;
2777
+ withMarkers(markers: Markers): NamedExports;
2778
+ private readonly _elements;
2779
+ get elements(): ExportSpecifier[];
2780
+ withElements(elements: ExportSpecifier[]): NamedExports;
2781
+ private readonly _type;
2782
+ get type(): JavaType | null;
2783
+ withType(_type: JavaType | null): NamedExports;
2784
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2785
+ get padding(): {
2786
+ readonly elements: JContainer<ExportSpecifier>;
2787
+ withElements(elements: JContainer<ExportSpecifier>): NamedExports;
2788
+ };
2789
+ }
2790
+ declare const ExportSpecifier_base: ((abstract new (...args: any[]) => {
2791
+ readonly prefix: Space;
2792
+ withPrefix(prefix: Space): JS;
2793
+ readonly id: UUID;
2794
+ withId(id: UUID): JS;
2795
+ readonly markers: Markers;
2796
+ withMarkers(markers: Markers): JS;
2797
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2798
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2799
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
2800
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2801
+ constructor: Function;
2802
+ toString(): string;
2803
+ toLocaleString(): string;
2804
+ valueOf(): Object;
2805
+ hasOwnProperty(v: PropertyKey): boolean;
2806
+ isPrototypeOf(v: Object): boolean;
2807
+ propertyIsEnumerable(v: PropertyKey): boolean;
2808
+ }) & {
2809
+ isTree: boolean;
2810
+ isJava: boolean;
2811
+ isJavaScript: boolean;
2812
+ }) & ObjectConstructor;
2813
+ export declare class ExportSpecifier extends ExportSpecifier_base implements Expression, TypedTree {
2814
+ constructor(id: UUID, prefix: Space, markers: Markers, typeOnly: JLeftPadded<boolean>, specifier: Expression, _type: JavaType | null);
2815
+ private readonly _id;
2816
+ get id(): UUID;
2817
+ withId(id: UUID): ExportSpecifier;
2818
+ private readonly _prefix;
2819
+ get prefix(): Space;
2820
+ withPrefix(prefix: Space): ExportSpecifier;
2821
+ private readonly _markers;
2822
+ get markers(): Markers;
2823
+ withMarkers(markers: Markers): ExportSpecifier;
2824
+ private readonly _typeOnly;
2825
+ get typeOnly(): boolean;
2826
+ withTypeOnly(typeOnly: boolean): ExportSpecifier;
2827
+ private readonly _specifier;
2828
+ get specifier(): Expression;
2829
+ withSpecifier(specifier: Expression): ExportSpecifier;
2830
+ private readonly _type;
2831
+ get type(): JavaType | null;
2832
+ withType(_type: JavaType | null): ExportSpecifier;
2833
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2834
+ get padding(): {
2835
+ readonly typeOnly: JLeftPadded<boolean>;
2836
+ withTypeOnly(typeOnly: JLeftPadded<boolean>): ExportSpecifier;
2837
+ };
2838
+ }
2839
+ declare const IndexedAccessType_base: ((abstract new (...args: any[]) => {
2840
+ readonly prefix: Space;
2841
+ withPrefix(prefix: Space): JS;
2842
+ readonly id: UUID;
2843
+ withId(id: UUID): JS;
2844
+ readonly markers: Markers;
2845
+ withMarkers(markers: Markers): JS;
2846
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2847
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2848
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
2849
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2850
+ constructor: Function;
2851
+ toString(): string;
2852
+ toLocaleString(): string;
2853
+ valueOf(): Object;
2854
+ hasOwnProperty(v: PropertyKey): boolean;
2855
+ isPrototypeOf(v: Object): boolean;
2856
+ propertyIsEnumerable(v: PropertyKey): boolean;
2857
+ }) & {
2858
+ isTree: boolean;
2859
+ isJava: boolean;
2860
+ isJavaScript: boolean;
2861
+ }) & ObjectConstructor;
2862
+ export declare class IndexedAccessType extends IndexedAccessType_base implements Expression, TypeTree {
2863
+ constructor(id: UUID, prefix: Space, markers: Markers, objectType: TypeTree, indexType: TypeTree, _type: JavaType | null);
2864
+ private readonly _id;
2865
+ get id(): UUID;
2866
+ withId(id: UUID): IndexedAccessType;
2867
+ private readonly _prefix;
2868
+ get prefix(): Space;
2869
+ withPrefix(prefix: Space): IndexedAccessType;
2870
+ private readonly _markers;
2871
+ get markers(): Markers;
2872
+ withMarkers(markers: Markers): IndexedAccessType;
2873
+ private readonly _objectType;
2874
+ get objectType(): TypeTree;
2875
+ withObjectType(objectType: TypeTree): IndexedAccessType;
2876
+ private readonly _indexType;
2877
+ get indexType(): TypeTree;
2878
+ withIndexType(indexType: TypeTree): IndexedAccessType;
2879
+ private readonly _type;
2880
+ get type(): JavaType | null;
2881
+ withType(_type: JavaType | null): IndexedAccessType;
2882
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2883
+ }
2884
+ export declare namespace IndexedAccessType {
2885
+ const IndexType_base: ((abstract new (...args: any[]) => {
2886
+ readonly prefix: Space;
2887
+ withPrefix(prefix: Space): JS;
2888
+ readonly id: UUID;
2889
+ withId(id: UUID): JS;
2890
+ readonly markers: Markers;
2891
+ withMarkers(markers: Markers): JS;
2892
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2893
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2894
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
2895
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2896
+ constructor: Function;
2897
+ toString(): string;
2898
+ toLocaleString(): string;
2899
+ valueOf(): Object;
2900
+ hasOwnProperty(v: PropertyKey): boolean;
2901
+ isPrototypeOf(v: Object): boolean;
2902
+ propertyIsEnumerable(v: PropertyKey): boolean;
2903
+ }) & {
2904
+ isTree: boolean;
2905
+ isJava: boolean;
2906
+ isJavaScript: boolean;
2907
+ }) & ObjectConstructor;
2908
+ export class IndexType extends IndexType_base implements Expression, TypeTree {
2909
+ constructor(id: UUID, prefix: Space, markers: Markers, element: JRightPadded<TypeTree>, _type: JavaType | null);
2910
+ private readonly _id;
2911
+ get id(): UUID;
2912
+ withId(id: UUID): IndexedAccessType.IndexType;
2913
+ private readonly _prefix;
2914
+ get prefix(): Space;
2915
+ withPrefix(prefix: Space): IndexedAccessType.IndexType;
2916
+ private readonly _markers;
2917
+ get markers(): Markers;
2918
+ withMarkers(markers: Markers): IndexedAccessType.IndexType;
2919
+ private readonly _element;
2920
+ get element(): TypeTree;
2921
+ withElement(element: TypeTree): IndexedAccessType.IndexType;
2922
+ private readonly _type;
2923
+ get type(): JavaType | null;
2924
+ withType(_type: JavaType | null): IndexedAccessType.IndexType;
2925
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2926
+ get padding(): {
2927
+ readonly element: JRightPadded<TypeTree>;
2928
+ withElement(element: JRightPadded<TypeTree>): IndexedAccessType.IndexType;
2929
+ };
2930
+ }
2931
+ export {};
2932
+ }
2933
+ declare const JsAssignmentOperation_base: ((abstract new (...args: any[]) => {
2934
+ readonly prefix: Space;
2935
+ withPrefix(prefix: Space): JS;
2936
+ readonly id: UUID;
2937
+ withId(id: UUID): JS;
2938
+ readonly markers: Markers;
2939
+ withMarkers(markers: Markers): JS;
2940
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2941
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2942
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
2943
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2944
+ constructor: Function;
2945
+ toString(): string;
2946
+ toLocaleString(): string;
2947
+ valueOf(): Object;
2948
+ hasOwnProperty(v: PropertyKey): boolean;
2949
+ isPrototypeOf(v: Object): boolean;
2950
+ propertyIsEnumerable(v: PropertyKey): boolean;
2951
+ }) & {
2952
+ isTree: boolean;
2953
+ isJava: boolean;
2954
+ isJavaScript: boolean;
2955
+ }) & ObjectConstructor;
2956
+ export declare class JsAssignmentOperation extends JsAssignmentOperation_base implements Statement, Expression, TypedTree {
2957
+ constructor(id: UUID, prefix: Space, markers: Markers, variable: Expression, operator: JLeftPadded<JsAssignmentOperation.Type>, assignment: Expression, _type: JavaType | null);
2958
+ private readonly _id;
2959
+ get id(): UUID;
2960
+ withId(id: UUID): JsAssignmentOperation;
2961
+ private readonly _prefix;
2962
+ get prefix(): Space;
2963
+ withPrefix(prefix: Space): JsAssignmentOperation;
2964
+ private readonly _markers;
2965
+ get markers(): Markers;
2966
+ withMarkers(markers: Markers): JsAssignmentOperation;
2967
+ private readonly _variable;
2968
+ get variable(): Expression;
2969
+ withVariable(variable: Expression): JsAssignmentOperation;
2970
+ private readonly _operator;
2971
+ get operator(): JsAssignmentOperation.Type;
2972
+ withOperator(operator: JsAssignmentOperation.Type): JsAssignmentOperation;
2973
+ private readonly _assignment;
2974
+ get assignment(): Expression;
2975
+ withAssignment(assignment: Expression): JsAssignmentOperation;
2976
+ private readonly _type;
2977
+ get type(): JavaType | null;
2978
+ withType(_type: JavaType | null): JsAssignmentOperation;
2979
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2980
+ get padding(): {
2981
+ readonly operator: JLeftPadded<JsAssignmentOperation.Type>;
2982
+ withOperator(operator: JLeftPadded<JsAssignmentOperation.Type>): JsAssignmentOperation;
2983
+ };
2984
+ }
2985
+ export declare namespace JsAssignmentOperation {
2986
+ enum Type {
2987
+ QuestionQuestion = 0,
2988
+ And = 1,
2989
+ Or = 2,
2990
+ Power = 3
2991
+ }
2992
+ }
2993
+ declare const TypeTreeExpression_base: ((abstract new (...args: any[]) => {
2994
+ readonly prefix: Space;
2995
+ withPrefix(prefix: Space): JS;
2996
+ readonly id: UUID;
2997
+ withId(id: UUID): JS;
2998
+ readonly markers: Markers;
2999
+ withMarkers(markers: Markers): JS;
3000
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
3001
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
3002
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
3003
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
3004
+ constructor: Function;
3005
+ toString(): string;
3006
+ toLocaleString(): string;
3007
+ valueOf(): Object;
3008
+ hasOwnProperty(v: PropertyKey): boolean;
3009
+ isPrototypeOf(v: Object): boolean;
3010
+ propertyIsEnumerable(v: PropertyKey): boolean;
3011
+ }) & {
3012
+ isTree: boolean;
3013
+ isJava: boolean;
3014
+ isJavaScript: boolean;
3015
+ }) & ObjectConstructor;
3016
+ export declare class TypeTreeExpression extends TypeTreeExpression_base implements Expression, TypeTree {
3017
+ constructor(id: UUID, prefix: Space, markers: Markers, expression: Expression);
3018
+ private readonly _id;
3019
+ get id(): UUID;
3020
+ withId(id: UUID): TypeTreeExpression;
3021
+ private readonly _prefix;
3022
+ get prefix(): Space;
3023
+ withPrefix(prefix: Space): TypeTreeExpression;
3024
+ private readonly _markers;
3025
+ get markers(): Markers;
3026
+ withMarkers(markers: Markers): TypeTreeExpression;
3027
+ private readonly _expression;
3028
+ get expression(): Expression;
3029
+ withExpression(expression: Expression): TypeTreeExpression;
3030
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
3031
+ get type(): JavaType | null;
3032
+ withType(type: JavaType): TypeTreeExpression;
3033
+ }
2207
3034
  export {};
2208
3035
  //# sourceMappingURL=tree.d.ts.map