@openrewrite/rewrite 0.22.0 → 0.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { JS } from "./support_types";
2
2
  import { JavaScriptVisitor } from "../visitor";
3
3
  import { Checksum, Cursor, FileAttributes, Markers, PrintOutputCapture, SourceFile, Tree, TreeVisitor, UUID } from "../../core";
4
- import { Expression, J, JavaSourceFile, JavaType, JContainer, JLeftPadded, JRightPadded, NameTree, Space, Statement, TypedTree, TypeTree, MethodCall } from "../../java/tree";
4
+ import { Expression, J, JavaSourceFile, JavaType, JContainer, JLeftPadded, JRightPadded, NameTree, Space, Statement, TypedTree, TypeTree, Loop } from "../../java/tree";
5
5
  import * as Java from "../../java/tree";
6
6
  declare const CompilationUnit_base: ((abstract new (...args: any[]) => {
7
7
  readonly sourcePath: string;
@@ -244,6 +244,55 @@ export declare class Await extends Await_base implements Expression {
244
244
  withType(_type: JavaType | null): Await;
245
245
  acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
246
246
  }
247
+ declare const ConditionalType_base: ((abstract new (...args: any[]) => {
248
+ readonly prefix: Space;
249
+ withPrefix(prefix: Space): JS;
250
+ readonly id: Uint8Array;
251
+ withId(id: UUID): JS;
252
+ readonly markers: Markers;
253
+ withMarkers(markers: Markers): JS;
254
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
255
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
256
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
257
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
258
+ constructor: Function;
259
+ toString(): string;
260
+ toLocaleString(): string;
261
+ valueOf(): Object;
262
+ hasOwnProperty(v: PropertyKey): boolean;
263
+ isPrototypeOf(v: Object): boolean;
264
+ propertyIsEnumerable(v: PropertyKey): boolean;
265
+ }) & {
266
+ isTree: boolean;
267
+ isJava: boolean;
268
+ isJavaScript: boolean;
269
+ }) & ObjectConstructor;
270
+ export declare class ConditionalType extends ConditionalType_base implements TypeTree, Expression {
271
+ constructor(id: UUID, prefix: Space, markers: Markers, checkType: Expression, condition: JContainer<TypedTree>, _type: JavaType | null);
272
+ private readonly _id;
273
+ get id(): UUID;
274
+ withId(id: UUID): ConditionalType;
275
+ private readonly _prefix;
276
+ get prefix(): Space;
277
+ withPrefix(prefix: Space): ConditionalType;
278
+ private readonly _markers;
279
+ get markers(): Markers;
280
+ withMarkers(markers: Markers): ConditionalType;
281
+ private readonly _checkType;
282
+ get checkType(): Expression;
283
+ withCheckType(checkType: Expression): ConditionalType;
284
+ private readonly _condition;
285
+ get condition(): TypedTree[];
286
+ withCondition(condition: TypedTree[]): ConditionalType;
287
+ private readonly _type;
288
+ get type(): JavaType | null;
289
+ withType(_type: JavaType | null): ConditionalType;
290
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
291
+ get padding(): {
292
+ readonly condition: JContainer<TypedTree>;
293
+ withCondition(condition: JContainer<TypedTree>): ConditionalType;
294
+ };
295
+ }
247
296
  declare const DefaultType_base: ((abstract new (...args: any[]) => {
248
297
  readonly prefix: Space;
249
298
  withPrefix(prefix: Space): JS;
@@ -388,6 +437,55 @@ export declare class Export extends Export_base implements Statement {
388
437
  withInitializer(initializer: JLeftPadded<Expression> | null): Export;
389
438
  };
390
439
  }
440
+ declare const ExpressionWithTypeArguments_base: ((abstract new (...args: any[]) => {
441
+ readonly prefix: Space;
442
+ withPrefix(prefix: Space): JS;
443
+ readonly id: Uint8Array;
444
+ withId(id: UUID): JS;
445
+ readonly markers: Markers;
446
+ withMarkers(markers: Markers): JS;
447
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
448
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
449
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
450
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
451
+ constructor: Function;
452
+ toString(): string;
453
+ toLocaleString(): string;
454
+ valueOf(): Object;
455
+ hasOwnProperty(v: PropertyKey): boolean;
456
+ isPrototypeOf(v: Object): boolean;
457
+ propertyIsEnumerable(v: PropertyKey): boolean;
458
+ }) & {
459
+ isTree: boolean;
460
+ isJava: boolean;
461
+ isJavaScript: boolean;
462
+ }) & ObjectConstructor;
463
+ export declare class ExpressionWithTypeArguments extends ExpressionWithTypeArguments_base implements TypeTree, Expression {
464
+ constructor(id: UUID, prefix: Space, markers: Markers, clazz: NameTree, typeArguments: JContainer<Expression> | null, _type: JavaType | null);
465
+ private readonly _id;
466
+ get id(): UUID;
467
+ withId(id: UUID): ExpressionWithTypeArguments;
468
+ private readonly _prefix;
469
+ get prefix(): Space;
470
+ withPrefix(prefix: Space): ExpressionWithTypeArguments;
471
+ private readonly _markers;
472
+ get markers(): Markers;
473
+ withMarkers(markers: Markers): ExpressionWithTypeArguments;
474
+ private readonly _clazz;
475
+ get clazz(): NameTree;
476
+ withClazz(clazz: NameTree): ExpressionWithTypeArguments;
477
+ private readonly _typeArguments;
478
+ get typeArguments(): Expression[] | null;
479
+ withTypeArguments(typeArguments: Expression[] | null): ExpressionWithTypeArguments;
480
+ private readonly _type;
481
+ get type(): JavaType | null;
482
+ withType(_type: JavaType | null): ExpressionWithTypeArguments;
483
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
484
+ get padding(): {
485
+ readonly typeArguments: JContainer<Expression> | null;
486
+ withTypeArguments(typeArguments: JContainer<Expression> | null): ExpressionWithTypeArguments;
487
+ };
488
+ }
391
489
  declare const FunctionType_base: ((abstract new (...args: any[]) => {
392
490
  readonly prefix: Space;
393
491
  withPrefix(prefix: Space): JS;
@@ -412,7 +510,7 @@ declare const FunctionType_base: ((abstract new (...args: any[]) => {
412
510
  isJavaScript: boolean;
413
511
  }) & ObjectConstructor;
414
512
  export declare class FunctionType extends FunctionType_base implements Expression, TypeTree {
415
- constructor(id: UUID, prefix: Space, markers: Markers, parameters: JContainer<Statement>, arrow: Space, returnType: Expression, _type: JavaType | null);
513
+ constructor(id: UUID, prefix: Space, markers: Markers, constructorType: JRightPadded<boolean>, parameters: JContainer<Statement>, arrow: Space, returnType: Expression, _type: JavaType | null);
416
514
  private readonly _id;
417
515
  get id(): UUID;
418
516
  withId(id: UUID): FunctionType;
@@ -422,6 +520,9 @@ export declare class FunctionType extends FunctionType_base implements Expressio
422
520
  private readonly _markers;
423
521
  get markers(): Markers;
424
522
  withMarkers(markers: Markers): FunctionType;
523
+ private readonly _constructorType;
524
+ get constructorType(): boolean;
525
+ withConstructorType(constructorType: boolean): FunctionType;
425
526
  private readonly _parameters;
426
527
  get parameters(): Statement[];
427
528
  withParameters(parameters: Statement[]): FunctionType;
@@ -436,6 +537,8 @@ export declare class FunctionType extends FunctionType_base implements Expressio
436
537
  withType(_type: JavaType | null): FunctionType;
437
538
  acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
438
539
  get padding(): {
540
+ readonly constructorType: JRightPadded<boolean>;
541
+ withConstructorType(constructorType: JRightPadded<boolean>): FunctionType;
439
542
  readonly parameters: JContainer<Statement>;
440
543
  withParameters(parameters: JContainer<Statement>): FunctionType;
441
544
  };
@@ -638,7 +741,7 @@ declare const ObjectBindingDeclarations_base: ((abstract new (...args: any[]) =>
638
741
  isJavaScript: boolean;
639
742
  }) & ObjectConstructor;
640
743
  export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations_base implements Expression, TypedTree {
641
- constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Java.Annotation[], modifiers: Java.Modifier[], typeExpression: TypeTree | null, bindings: JContainer<ObjectBindingDeclarations.Binding>, initializer: JLeftPadded<Expression> | null);
744
+ constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Java.Annotation[], modifiers: Java.Modifier[], typeExpression: TypeTree | null, bindings: JContainer<BindingElement>, initializer: JLeftPadded<Expression> | null);
642
745
  private readonly _id;
643
746
  get id(): UUID;
644
747
  withId(id: UUID): ObjectBindingDeclarations;
@@ -658,8 +761,8 @@ export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations
658
761
  get typeExpression(): TypeTree | null;
659
762
  withTypeExpression(typeExpression: TypeTree | null): ObjectBindingDeclarations;
660
763
  private readonly _bindings;
661
- get bindings(): ObjectBindingDeclarations.Binding[];
662
- withBindings(bindings: ObjectBindingDeclarations.Binding[]): ObjectBindingDeclarations;
764
+ get bindings(): BindingElement[];
765
+ withBindings(bindings: BindingElement[]): ObjectBindingDeclarations;
663
766
  private readonly _initializer;
664
767
  get initializer(): Expression | null;
665
768
  withInitializer(initializer: Expression | null): ObjectBindingDeclarations;
@@ -667,77 +770,12 @@ export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations
667
770
  get type(): JavaType | null;
668
771
  withType(type: JavaType): ObjectBindingDeclarations;
669
772
  get padding(): {
670
- readonly bindings: JContainer<ObjectBindingDeclarations.Binding>;
671
- withBindings(bindings: JContainer<ObjectBindingDeclarations.Binding>): ObjectBindingDeclarations;
773
+ readonly bindings: JContainer<BindingElement>;
774
+ withBindings(bindings: JContainer<BindingElement>): ObjectBindingDeclarations;
672
775
  readonly initializer: JLeftPadded<Expression> | null;
673
776
  withInitializer(initializer: JLeftPadded<Expression> | null): ObjectBindingDeclarations;
674
777
  };
675
778
  }
676
- export declare namespace ObjectBindingDeclarations {
677
- const Binding_base: ((abstract new (...args: any[]) => {
678
- readonly prefix: Space;
679
- withPrefix(prefix: Space): JS;
680
- readonly id: Uint8Array;
681
- withId(id: UUID): JS;
682
- readonly markers: Markers;
683
- withMarkers(markers: Markers): JS;
684
- isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
685
- accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
686
- acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
687
- acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
688
- constructor: Function;
689
- toString(): string;
690
- toLocaleString(): string;
691
- valueOf(): Object;
692
- hasOwnProperty(v: PropertyKey): boolean;
693
- isPrototypeOf(v: Object): boolean;
694
- propertyIsEnumerable(v: PropertyKey): boolean;
695
- }) & {
696
- isTree: boolean;
697
- isJava: boolean;
698
- isJavaScript: boolean;
699
- }) & ObjectConstructor;
700
- export class Binding extends Binding_base implements NameTree {
701
- constructor(id: UUID, prefix: Space, markers: Markers, propertyName: JRightPadded<Java.Identifier> | null, name: TypedTree, dimensionsAfterName: JLeftPadded<Space>[], afterVararg: Space | null, initializer: JLeftPadded<Expression> | null, variableType: JavaType.Variable | null);
702
- private readonly _id;
703
- get id(): UUID;
704
- withId(id: UUID): ObjectBindingDeclarations.Binding;
705
- private readonly _prefix;
706
- get prefix(): Space;
707
- withPrefix(prefix: Space): ObjectBindingDeclarations.Binding;
708
- private readonly _markers;
709
- get markers(): Markers;
710
- withMarkers(markers: Markers): ObjectBindingDeclarations.Binding;
711
- private readonly _propertyName;
712
- get propertyName(): Java.Identifier | null;
713
- withPropertyName(propertyName: Java.Identifier | null): ObjectBindingDeclarations.Binding;
714
- private readonly _name;
715
- get name(): TypedTree;
716
- withName(name: TypedTree): ObjectBindingDeclarations.Binding;
717
- private readonly _dimensionsAfterName;
718
- get dimensionsAfterName(): JLeftPadded<Space>[];
719
- withDimensionsAfterName(dimensionsAfterName: JLeftPadded<Space>[]): ObjectBindingDeclarations.Binding;
720
- private readonly _afterVararg;
721
- get afterVararg(): Space | null;
722
- withAfterVararg(afterVararg: Space | null): ObjectBindingDeclarations.Binding;
723
- private readonly _initializer;
724
- get initializer(): Expression | null;
725
- withInitializer(initializer: Expression | null): ObjectBindingDeclarations.Binding;
726
- private readonly _variableType;
727
- get variableType(): JavaType.Variable | null;
728
- withVariableType(variableType: JavaType.Variable | null): ObjectBindingDeclarations.Binding;
729
- acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
730
- get type(): JavaType | null;
731
- withType(type: JavaType): ObjectBindingDeclarations.Binding;
732
- get padding(): {
733
- readonly propertyName: JRightPadded<Java.Identifier> | null;
734
- withPropertyName(propertyName: JRightPadded<Java.Identifier> | null): ObjectBindingDeclarations.Binding;
735
- readonly initializer: JLeftPadded<Expression> | null;
736
- withInitializer(initializer: JLeftPadded<Expression> | null): ObjectBindingDeclarations.Binding;
737
- };
738
- }
739
- export {};
740
- }
741
779
  declare const PropertyAssignment_base: ((abstract new (...args: any[]) => {
742
780
  readonly prefix: Space;
743
781
  withPrefix(prefix: Space): JS;
@@ -810,7 +848,7 @@ declare const ScopedVariableDeclarations_base: ((abstract new (...args: any[]) =
810
848
  isJavaScript: boolean;
811
849
  }) & ObjectConstructor;
812
850
  export declare class ScopedVariableDeclarations extends ScopedVariableDeclarations_base implements Statement {
813
- constructor(id: UUID, prefix: Space, markers: Markers, modifiers: Java.Modifier[], scope: JLeftPadded<ScopedVariableDeclarations.Scope> | null, variables: JRightPadded<Expression>[]);
851
+ constructor(id: UUID, prefix: Space, markers: Markers, modifiers: Java.Modifier[], scope: JLeftPadded<ScopedVariableDeclarations.Scope> | null, variables: JRightPadded<J>[]);
814
852
  private readonly _id;
815
853
  get id(): UUID;
816
854
  withId(id: UUID): ScopedVariableDeclarations;
@@ -827,14 +865,14 @@ export declare class ScopedVariableDeclarations extends ScopedVariableDeclaratio
827
865
  get scope(): ScopedVariableDeclarations.Scope | null;
828
866
  withScope(scope: ScopedVariableDeclarations.Scope | null): ScopedVariableDeclarations;
829
867
  private readonly _variables;
830
- get variables(): Expression[];
831
- withVariables(variables: Expression[]): ScopedVariableDeclarations;
868
+ get variables(): J[];
869
+ withVariables(variables: J[]): ScopedVariableDeclarations;
832
870
  acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
833
871
  get padding(): {
834
872
  readonly scope: JLeftPadded<ScopedVariableDeclarations.Scope> | null;
835
873
  withScope(scope: JLeftPadded<ScopedVariableDeclarations.Scope> | null): ScopedVariableDeclarations;
836
- readonly variables: JRightPadded<Expression>[];
837
- withVariables(variables: JRightPadded<Expression>[]): ScopedVariableDeclarations;
874
+ readonly variables: JRightPadded<J>[];
875
+ withVariables(variables: JRightPadded<J>[]): ScopedVariableDeclarations;
838
876
  };
839
877
  }
840
878
  export declare namespace ScopedVariableDeclarations {
@@ -844,6 +882,60 @@ export declare namespace ScopedVariableDeclarations {
844
882
  Var = 2
845
883
  }
846
884
  }
885
+ declare const TaggedTemplateExpression_base: ((abstract new (...args: any[]) => {
886
+ readonly prefix: Space;
887
+ withPrefix(prefix: Space): JS;
888
+ readonly id: Uint8Array;
889
+ withId(id: UUID): JS;
890
+ readonly markers: Markers;
891
+ withMarkers(markers: Markers): JS;
892
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
893
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
894
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
895
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
896
+ constructor: Function;
897
+ toString(): string;
898
+ toLocaleString(): string;
899
+ valueOf(): Object;
900
+ hasOwnProperty(v: PropertyKey): boolean;
901
+ isPrototypeOf(v: Object): boolean;
902
+ propertyIsEnumerable(v: PropertyKey): boolean;
903
+ }) & {
904
+ isTree: boolean;
905
+ isJava: boolean;
906
+ isJavaScript: boolean;
907
+ }) & ObjectConstructor;
908
+ export declare class TaggedTemplateExpression extends TaggedTemplateExpression_base implements Statement, Expression {
909
+ constructor(id: UUID, prefix: Space, markers: Markers, tag: JRightPadded<Expression> | null, typeArguments: JContainer<Expression> | null, templateExpression: TemplateExpression, _type: JavaType | null);
910
+ private readonly _id;
911
+ get id(): UUID;
912
+ withId(id: UUID): TaggedTemplateExpression;
913
+ private readonly _prefix;
914
+ get prefix(): Space;
915
+ withPrefix(prefix: Space): TaggedTemplateExpression;
916
+ private readonly _markers;
917
+ get markers(): Markers;
918
+ withMarkers(markers: Markers): TaggedTemplateExpression;
919
+ private readonly _tag;
920
+ get tag(): Expression | null;
921
+ withTag(tag: Expression | null): TaggedTemplateExpression;
922
+ private readonly _typeArguments;
923
+ get typeArguments(): Expression[] | null;
924
+ withTypeArguments(typeArguments: Expression[] | null): TaggedTemplateExpression;
925
+ private readonly _templateExpression;
926
+ get templateExpression(): TemplateExpression;
927
+ withTemplateExpression(templateExpression: TemplateExpression): TaggedTemplateExpression;
928
+ private readonly _type;
929
+ get type(): JavaType | null;
930
+ withType(_type: JavaType | null): TaggedTemplateExpression;
931
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
932
+ get padding(): {
933
+ readonly tag: JRightPadded<Expression> | null;
934
+ withTag(tag: JRightPadded<Expression> | null): TaggedTemplateExpression;
935
+ readonly typeArguments: JContainer<Expression> | null;
936
+ withTypeArguments(typeArguments: JContainer<Expression> | null): TaggedTemplateExpression;
937
+ };
938
+ }
847
939
  declare const TemplateExpression_base: ((abstract new (...args: any[]) => {
848
940
  readonly prefix: Space;
849
941
  withPrefix(prefix: Space): JS;
@@ -868,7 +960,7 @@ declare const TemplateExpression_base: ((abstract new (...args: any[]) => {
868
960
  isJavaScript: boolean;
869
961
  }) & ObjectConstructor;
870
962
  export declare class TemplateExpression extends TemplateExpression_base implements Statement, Expression {
871
- constructor(id: UUID, prefix: Space, markers: Markers, delimiter: string, tag: JRightPadded<Expression> | null, strings: J[], _type: JavaType | null);
963
+ constructor(id: UUID, prefix: Space, markers: Markers, head: Java.Literal, templateSpans: JRightPadded<TemplateExpression.TemplateSpan>[], _type: JavaType | null);
872
964
  private readonly _id;
873
965
  get id(): UUID;
874
966
  withId(id: UUID): TemplateExpression;
@@ -878,26 +970,23 @@ export declare class TemplateExpression extends TemplateExpression_base implemen
878
970
  private readonly _markers;
879
971
  get markers(): Markers;
880
972
  withMarkers(markers: Markers): TemplateExpression;
881
- private readonly _delimiter;
882
- get delimiter(): string;
883
- withDelimiter(delimiter: string): TemplateExpression;
884
- private readonly _tag;
885
- get tag(): Expression | null;
886
- withTag(tag: Expression | null): TemplateExpression;
887
- private readonly _strings;
888
- get strings(): J[];
889
- withStrings(strings: J[]): TemplateExpression;
973
+ private readonly _head;
974
+ get head(): Java.Literal;
975
+ withHead(head: Java.Literal): TemplateExpression;
976
+ private readonly _templateSpans;
977
+ get templateSpans(): TemplateExpression.TemplateSpan[];
978
+ withTemplateSpans(templateSpans: TemplateExpression.TemplateSpan[]): TemplateExpression;
890
979
  private readonly _type;
891
980
  get type(): JavaType | null;
892
981
  withType(_type: JavaType | null): TemplateExpression;
893
982
  acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
894
983
  get padding(): {
895
- readonly tag: JRightPadded<Expression> | null;
896
- withTag(tag: JRightPadded<Expression> | null): TemplateExpression;
984
+ readonly templateSpans: JRightPadded<TemplateExpression.TemplateSpan>[];
985
+ withTemplateSpans(templateSpans: JRightPadded<TemplateExpression.TemplateSpan>[]): TemplateExpression;
897
986
  };
898
987
  }
899
988
  export declare namespace TemplateExpression {
900
- const Value_base: ((abstract new (...args: any[]) => {
989
+ const TemplateSpan_base: ((abstract new (...args: any[]) => {
901
990
  readonly prefix: Space;
902
991
  withPrefix(prefix: Space): JS;
903
992
  readonly id: Uint8Array;
@@ -920,26 +1009,23 @@ export declare namespace TemplateExpression {
920
1009
  isJava: boolean;
921
1010
  isJavaScript: boolean;
922
1011
  }) & ObjectConstructor;
923
- export class Value extends Value_base {
924
- constructor(id: UUID, prefix: Space, markers: Markers, tree: J, after: Space, enclosedInBraces: boolean);
1012
+ export class TemplateSpan extends TemplateSpan_base {
1013
+ constructor(id: UUID, prefix: Space, markers: Markers, expression: J, tail: Java.Literal);
925
1014
  private readonly _id;
926
1015
  get id(): UUID;
927
- withId(id: UUID): TemplateExpression.Value;
1016
+ withId(id: UUID): TemplateExpression.TemplateSpan;
928
1017
  private readonly _prefix;
929
1018
  get prefix(): Space;
930
- withPrefix(prefix: Space): TemplateExpression.Value;
1019
+ withPrefix(prefix: Space): TemplateExpression.TemplateSpan;
931
1020
  private readonly _markers;
932
1021
  get markers(): Markers;
933
- withMarkers(markers: Markers): TemplateExpression.Value;
934
- private readonly _tree;
935
- get tree(): J;
936
- withTree(tree: J): TemplateExpression.Value;
937
- private readonly _after;
938
- get after(): Space;
939
- withAfter(after: Space): TemplateExpression.Value;
940
- private readonly _enclosedInBraces;
941
- get enclosedInBraces(): boolean;
942
- withEnclosedInBraces(enclosedInBraces: boolean): TemplateExpression.Value;
1022
+ withMarkers(markers: Markers): TemplateExpression.TemplateSpan;
1023
+ private readonly _expression;
1024
+ get expression(): J;
1025
+ withExpression(expression: J): TemplateExpression.TemplateSpan;
1026
+ private readonly _tail;
1027
+ get tail(): Java.Literal;
1028
+ withTail(tail: Java.Literal): TemplateExpression.TemplateSpan;
943
1029
  acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
944
1030
  }
945
1031
  export {};
@@ -1014,7 +1100,7 @@ declare const TypeDeclaration_base: ((abstract new (...args: any[]) => {
1014
1100
  isJavaScript: boolean;
1015
1101
  }) & ObjectConstructor;
1016
1102
  export declare class TypeDeclaration extends TypeDeclaration_base implements Statement, TypedTree {
1017
- constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Java.Annotation[], modifiers: Java.Modifier[], name: Java.Identifier, typeParameters: Java.TypeParameters | null, initializer: JLeftPadded<Expression>, _type: JavaType | null);
1103
+ constructor(id: UUID, prefix: Space, markers: Markers, modifiers: Java.Modifier[], name: JLeftPadded<Java.Identifier>, typeParameters: Java.TypeParameters | null, initializer: JLeftPadded<Expression>, _type: JavaType | null);
1018
1104
  private readonly _id;
1019
1105
  get id(): UUID;
1020
1106
  withId(id: UUID): TypeDeclaration;
@@ -1024,9 +1110,6 @@ export declare class TypeDeclaration extends TypeDeclaration_base implements Sta
1024
1110
  private readonly _markers;
1025
1111
  get markers(): Markers;
1026
1112
  withMarkers(markers: Markers): TypeDeclaration;
1027
- private readonly _leadingAnnotations;
1028
- get leadingAnnotations(): Java.Annotation[];
1029
- withLeadingAnnotations(leadingAnnotations: Java.Annotation[]): TypeDeclaration;
1030
1113
  private readonly _modifiers;
1031
1114
  get modifiers(): Java.Modifier[];
1032
1115
  withModifiers(modifiers: Java.Modifier[]): TypeDeclaration;
@@ -1044,6 +1127,8 @@ export declare class TypeDeclaration extends TypeDeclaration_base implements Sta
1044
1127
  withType(_type: JavaType | null): TypeDeclaration;
1045
1128
  acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1046
1129
  get padding(): {
1130
+ readonly name: JLeftPadded<Java.Identifier>;
1131
+ withName(name: JLeftPadded<Java.Identifier>): TypeDeclaration;
1047
1132
  readonly initializer: JLeftPadded<Expression>;
1048
1133
  withInitializer(initializer: JLeftPadded<Expression>): TypeDeclaration;
1049
1134
  };
@@ -1090,6 +1175,48 @@ export declare class TypeOf extends TypeOf_base implements Expression {
1090
1175
  withType(_type: JavaType | null): TypeOf;
1091
1176
  acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1092
1177
  }
1178
+ declare const TypeQuery_base: ((abstract new (...args: any[]) => {
1179
+ readonly prefix: Space;
1180
+ withPrefix(prefix: Space): JS;
1181
+ readonly id: Uint8Array;
1182
+ withId(id: UUID): JS;
1183
+ readonly markers: Markers;
1184
+ withMarkers(markers: Markers): JS;
1185
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1186
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1187
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
1188
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1189
+ constructor: Function;
1190
+ toString(): string;
1191
+ toLocaleString(): string;
1192
+ valueOf(): Object;
1193
+ hasOwnProperty(v: PropertyKey): boolean;
1194
+ isPrototypeOf(v: Object): boolean;
1195
+ propertyIsEnumerable(v: PropertyKey): boolean;
1196
+ }) & {
1197
+ isTree: boolean;
1198
+ isJava: boolean;
1199
+ isJavaScript: boolean;
1200
+ }) & ObjectConstructor;
1201
+ export declare class TypeQuery extends TypeQuery_base implements Expression, TypeTree {
1202
+ constructor(id: UUID, prefix: Space, markers: Markers, typeExpression: TypeTree, _type: JavaType | null);
1203
+ private readonly _id;
1204
+ get id(): UUID;
1205
+ withId(id: UUID): TypeQuery;
1206
+ private readonly _prefix;
1207
+ get prefix(): Space;
1208
+ withPrefix(prefix: Space): TypeQuery;
1209
+ private readonly _markers;
1210
+ get markers(): Markers;
1211
+ withMarkers(markers: Markers): TypeQuery;
1212
+ private readonly _typeExpression;
1213
+ get typeExpression(): TypeTree;
1214
+ withTypeExpression(typeExpression: TypeTree): TypeQuery;
1215
+ private readonly _type;
1216
+ get type(): JavaType | null;
1217
+ withType(_type: JavaType | null): TypeQuery;
1218
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1219
+ }
1093
1220
  declare const TypeOperator_base: ((abstract new (...args: any[]) => {
1094
1221
  readonly prefix: Space;
1095
1222
  withPrefix(prefix: Space): JS;
@@ -1248,6 +1375,52 @@ export declare class Union extends Union_base implements Expression, TypeTree {
1248
1375
  withTypes(types: JRightPadded<Expression>[]): Union;
1249
1376
  };
1250
1377
  }
1378
+ declare const Intersection_base: ((abstract new (...args: any[]) => {
1379
+ readonly prefix: Space;
1380
+ withPrefix(prefix: Space): JS;
1381
+ readonly id: Uint8Array;
1382
+ withId(id: UUID): JS;
1383
+ readonly markers: Markers;
1384
+ withMarkers(markers: Markers): JS;
1385
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1386
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1387
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
1388
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1389
+ constructor: Function;
1390
+ toString(): string;
1391
+ toLocaleString(): string;
1392
+ valueOf(): Object;
1393
+ hasOwnProperty(v: PropertyKey): boolean;
1394
+ isPrototypeOf(v: Object): boolean;
1395
+ propertyIsEnumerable(v: PropertyKey): boolean;
1396
+ }) & {
1397
+ isTree: boolean;
1398
+ isJava: boolean;
1399
+ isJavaScript: boolean;
1400
+ }) & ObjectConstructor;
1401
+ export declare class Intersection extends Intersection_base implements Expression, TypeTree {
1402
+ constructor(id: UUID, prefix: Space, markers: Markers, types: JRightPadded<Expression>[], _type: JavaType | null);
1403
+ private readonly _id;
1404
+ get id(): UUID;
1405
+ withId(id: UUID): Intersection;
1406
+ private readonly _prefix;
1407
+ get prefix(): Space;
1408
+ withPrefix(prefix: Space): Intersection;
1409
+ private readonly _markers;
1410
+ get markers(): Markers;
1411
+ withMarkers(markers: Markers): Intersection;
1412
+ private readonly _types;
1413
+ get types(): Expression[];
1414
+ withTypes(types: Expression[]): Intersection;
1415
+ private readonly _type;
1416
+ get type(): JavaType | null;
1417
+ withType(_type: JavaType | null): Intersection;
1418
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1419
+ get padding(): {
1420
+ readonly types: JRightPadded<Expression>[];
1421
+ withTypes(types: JRightPadded<Expression>[]): Intersection;
1422
+ };
1423
+ }
1251
1424
  declare const Void_base: ((abstract new (...args: any[]) => {
1252
1425
  readonly prefix: Space;
1253
1426
  withPrefix(prefix: Space): JS;
@@ -1567,7 +1740,7 @@ export declare class JSMethodDeclaration extends JSMethodDeclaration_base implem
1567
1740
  withDefaultValue(defaultValue: JLeftPadded<Expression> | null): JSMethodDeclaration;
1568
1741
  };
1569
1742
  }
1570
- declare const JSMethodInvocation_base: ((abstract new (...args: any[]) => {
1743
+ declare const JSForOfLoop_base: ((abstract new (...args: any[]) => {
1571
1744
  readonly prefix: Space;
1572
1745
  withPrefix(prefix: Space): JS;
1573
1746
  readonly id: Uint8Array;
@@ -1590,42 +1763,126 @@ declare const JSMethodInvocation_base: ((abstract new (...args: any[]) => {
1590
1763
  isJava: boolean;
1591
1764
  isJavaScript: boolean;
1592
1765
  }) & ObjectConstructor;
1593
- export declare class JSMethodInvocation extends JSMethodInvocation_base implements Statement, TypedTree, MethodCall {
1594
- constructor(id: UUID, prefix: Space, markers: Markers, select: JRightPadded<Expression> | null, typeParameters: JContainer<Expression> | null, name: Expression, _arguments: JContainer<Expression>, methodType: JavaType.Method | null);
1766
+ export declare class JSForOfLoop extends JSForOfLoop_base implements Loop {
1767
+ constructor(id: UUID, prefix: Space, markers: Markers, await: JLeftPadded<boolean>, control: JSForInOfLoopControl, body: JRightPadded<Statement>);
1595
1768
  private readonly _id;
1596
1769
  get id(): UUID;
1597
- withId(id: UUID): JSMethodInvocation;
1770
+ withId(id: UUID): JSForOfLoop;
1598
1771
  private readonly _prefix;
1599
1772
  get prefix(): Space;
1600
- withPrefix(prefix: Space): JSMethodInvocation;
1773
+ withPrefix(prefix: Space): JSForOfLoop;
1601
1774
  private readonly _markers;
1602
1775
  get markers(): Markers;
1603
- withMarkers(markers: Markers): JSMethodInvocation;
1604
- private readonly _select;
1605
- get select(): Expression | null;
1606
- withSelect(select: Expression | null): JSMethodInvocation;
1607
- private readonly _typeParameters;
1608
- get typeParameters(): Expression[] | null;
1609
- withTypeParameters(typeParameters: Expression[] | null): JSMethodInvocation;
1610
- private readonly _name;
1611
- get name(): Expression;
1612
- withName(name: Expression): JSMethodInvocation;
1613
- private readonly _arguments;
1614
- get arguments(): Expression[];
1615
- withArguments(_arguments: Expression[]): JSMethodInvocation;
1616
- private readonly _methodType;
1617
- get methodType(): JavaType.Method | null;
1618
- withMethodType(methodType: JavaType.Method | null): JSMethodInvocation;
1776
+ withMarkers(markers: Markers): JSForOfLoop;
1777
+ private readonly _await;
1778
+ get await(): boolean;
1779
+ withAwait(await: boolean): JSForOfLoop;
1780
+ private readonly _control;
1781
+ get control(): JSForInOfLoopControl;
1782
+ withControl(control: JSForInOfLoopControl): JSForOfLoop;
1783
+ private readonly _body;
1784
+ get body(): Statement;
1785
+ withBody(body: Statement): JSForOfLoop;
1786
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1787
+ get padding(): {
1788
+ readonly await: JLeftPadded<boolean>;
1789
+ withAwait(await: JLeftPadded<boolean>): JSForOfLoop;
1790
+ readonly body: JRightPadded<Statement>;
1791
+ withBody(body: JRightPadded<Statement>): JSForOfLoop;
1792
+ };
1793
+ }
1794
+ declare const JSForInLoop_base: ((abstract new (...args: any[]) => {
1795
+ readonly prefix: Space;
1796
+ withPrefix(prefix: Space): JS;
1797
+ readonly id: Uint8Array;
1798
+ withId(id: UUID): JS;
1799
+ readonly markers: Markers;
1800
+ withMarkers(markers: Markers): JS;
1801
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1802
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1803
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
1804
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1805
+ constructor: Function;
1806
+ toString(): string;
1807
+ toLocaleString(): string;
1808
+ valueOf(): Object;
1809
+ hasOwnProperty(v: PropertyKey): boolean;
1810
+ isPrototypeOf(v: Object): boolean;
1811
+ propertyIsEnumerable(v: PropertyKey): boolean;
1812
+ }) & {
1813
+ isTree: boolean;
1814
+ isJava: boolean;
1815
+ isJavaScript: boolean;
1816
+ }) & ObjectConstructor;
1817
+ export declare class JSForInLoop extends JSForInLoop_base implements Loop {
1818
+ constructor(id: UUID, prefix: Space, markers: Markers, control: JSForInOfLoopControl, body: JRightPadded<Statement>);
1819
+ private readonly _id;
1820
+ get id(): UUID;
1821
+ withId(id: UUID): JSForInLoop;
1822
+ private readonly _prefix;
1823
+ get prefix(): Space;
1824
+ withPrefix(prefix: Space): JSForInLoop;
1825
+ private readonly _markers;
1826
+ get markers(): Markers;
1827
+ withMarkers(markers: Markers): JSForInLoop;
1828
+ private readonly _control;
1829
+ get control(): JSForInOfLoopControl;
1830
+ withControl(control: JSForInOfLoopControl): JSForInLoop;
1831
+ private readonly _body;
1832
+ get body(): Statement;
1833
+ withBody(body: Statement): JSForInLoop;
1834
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1835
+ get padding(): {
1836
+ readonly body: JRightPadded<Statement>;
1837
+ withBody(body: JRightPadded<Statement>): JSForInLoop;
1838
+ };
1839
+ }
1840
+ declare const JSForInOfLoopControl_base: ((abstract new (...args: any[]) => {
1841
+ readonly prefix: Space;
1842
+ withPrefix(prefix: Space): JS;
1843
+ readonly id: Uint8Array;
1844
+ withId(id: UUID): JS;
1845
+ readonly markers: Markers;
1846
+ withMarkers(markers: Markers): JS;
1847
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
1848
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
1849
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
1850
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1851
+ constructor: Function;
1852
+ toString(): string;
1853
+ toLocaleString(): string;
1854
+ valueOf(): Object;
1855
+ hasOwnProperty(v: PropertyKey): boolean;
1856
+ isPrototypeOf(v: Object): boolean;
1857
+ propertyIsEnumerable(v: PropertyKey): boolean;
1858
+ }) & {
1859
+ isTree: boolean;
1860
+ isJava: boolean;
1861
+ isJavaScript: boolean;
1862
+ }) & ObjectConstructor;
1863
+ export declare class JSForInOfLoopControl extends JSForInOfLoopControl_base {
1864
+ constructor(id: UUID, prefix: Space, markers: Markers, variable: JRightPadded<Statement>, iterable: JRightPadded<Expression>);
1865
+ private readonly _id;
1866
+ get id(): UUID;
1867
+ withId(id: UUID): JSForInOfLoopControl;
1868
+ private readonly _prefix;
1869
+ get prefix(): Space;
1870
+ withPrefix(prefix: Space): JSForInOfLoopControl;
1871
+ private readonly _markers;
1872
+ get markers(): Markers;
1873
+ withMarkers(markers: Markers): JSForInOfLoopControl;
1874
+ private readonly _variable;
1875
+ get variable(): Statement;
1876
+ withVariable(variable: Statement): JSForInOfLoopControl;
1877
+ private readonly _iterable;
1878
+ get iterable(): Expression;
1879
+ withIterable(iterable: Expression): JSForInOfLoopControl;
1619
1880
  acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
1620
- get type(): JavaType | null;
1621
- withType(type: JavaType): JSMethodInvocation;
1622
1881
  get padding(): {
1623
- readonly select: JRightPadded<Expression> | null;
1624
- withSelect(select: JRightPadded<Expression> | null): JSMethodInvocation;
1625
- readonly typeParameters: JContainer<Expression> | null;
1626
- withTypeParameters(typeParameters: JContainer<Expression> | null): JSMethodInvocation;
1627
- readonly arguments: JContainer<Expression>;
1628
- withArguments(_arguments: JContainer<Expression>): JSMethodInvocation;
1882
+ readonly variable: JRightPadded<Statement>;
1883
+ withVariable(variable: JRightPadded<Statement>): JSForInOfLoopControl;
1884
+ readonly iterable: JRightPadded<Expression>;
1885
+ withIterable(iterable: JRightPadded<Expression>): JSForInOfLoopControl;
1629
1886
  };
1630
1887
  }
1631
1888
  declare const NamespaceDeclaration_base: ((abstract new (...args: any[]) => {
@@ -1749,5 +2006,203 @@ export declare class FunctionDeclaration extends FunctionDeclaration_base implem
1749
2006
  withParameters(parameters: JContainer<Statement>): FunctionDeclaration;
1750
2007
  };
1751
2008
  }
2009
+ declare const TypeLiteral_base: ((abstract new (...args: any[]) => {
2010
+ readonly prefix: Space;
2011
+ withPrefix(prefix: Space): JS;
2012
+ readonly id: Uint8Array;
2013
+ withId(id: UUID): JS;
2014
+ readonly markers: Markers;
2015
+ withMarkers(markers: Markers): JS;
2016
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2017
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2018
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
2019
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2020
+ constructor: Function;
2021
+ toString(): string;
2022
+ toLocaleString(): string;
2023
+ valueOf(): Object;
2024
+ hasOwnProperty(v: PropertyKey): boolean;
2025
+ isPrototypeOf(v: Object): boolean;
2026
+ propertyIsEnumerable(v: PropertyKey): boolean;
2027
+ }) & {
2028
+ isTree: boolean;
2029
+ isJava: boolean;
2030
+ isJavaScript: boolean;
2031
+ }) & ObjectConstructor;
2032
+ export declare class TypeLiteral extends TypeLiteral_base implements Expression, TypeTree {
2033
+ constructor(id: UUID, prefix: Space, markers: Markers, members: Java.Block, _type: JavaType | null);
2034
+ private readonly _id;
2035
+ get id(): UUID;
2036
+ withId(id: UUID): TypeLiteral;
2037
+ private readonly _prefix;
2038
+ get prefix(): Space;
2039
+ withPrefix(prefix: Space): TypeLiteral;
2040
+ private readonly _markers;
2041
+ get markers(): Markers;
2042
+ withMarkers(markers: Markers): TypeLiteral;
2043
+ private readonly _members;
2044
+ get members(): Java.Block;
2045
+ withMembers(members: Java.Block): TypeLiteral;
2046
+ private readonly _type;
2047
+ get type(): JavaType | null;
2048
+ withType(_type: JavaType | null): TypeLiteral;
2049
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2050
+ }
2051
+ declare const IndexSignatureDeclaration_base: ((abstract new (...args: any[]) => {
2052
+ readonly prefix: Space;
2053
+ withPrefix(prefix: Space): JS;
2054
+ readonly id: Uint8Array;
2055
+ withId(id: UUID): JS;
2056
+ readonly markers: Markers;
2057
+ withMarkers(markers: Markers): JS;
2058
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2059
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2060
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
2061
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2062
+ constructor: Function;
2063
+ toString(): string;
2064
+ toLocaleString(): string;
2065
+ valueOf(): Object;
2066
+ hasOwnProperty(v: PropertyKey): boolean;
2067
+ isPrototypeOf(v: Object): boolean;
2068
+ propertyIsEnumerable(v: PropertyKey): boolean;
2069
+ }) & {
2070
+ isTree: boolean;
2071
+ isJava: boolean;
2072
+ isJavaScript: boolean;
2073
+ }) & ObjectConstructor;
2074
+ export declare class IndexSignatureDeclaration extends IndexSignatureDeclaration_base implements Statement, TypedTree {
2075
+ constructor(id: UUID, prefix: Space, markers: Markers, modifiers: Java.Modifier[], parameters: JContainer<J>, typeExpression: JLeftPadded<Expression>, _type: JavaType | null);
2076
+ private readonly _id;
2077
+ get id(): UUID;
2078
+ withId(id: UUID): IndexSignatureDeclaration;
2079
+ private readonly _prefix;
2080
+ get prefix(): Space;
2081
+ withPrefix(prefix: Space): IndexSignatureDeclaration;
2082
+ private readonly _markers;
2083
+ get markers(): Markers;
2084
+ withMarkers(markers: Markers): IndexSignatureDeclaration;
2085
+ private readonly _modifiers;
2086
+ get modifiers(): Java.Modifier[];
2087
+ withModifiers(modifiers: Java.Modifier[]): IndexSignatureDeclaration;
2088
+ private readonly _parameters;
2089
+ get parameters(): J[];
2090
+ withParameters(parameters: J[]): IndexSignatureDeclaration;
2091
+ private readonly _typeExpression;
2092
+ get typeExpression(): Expression;
2093
+ withTypeExpression(typeExpression: Expression): IndexSignatureDeclaration;
2094
+ private readonly _type;
2095
+ get type(): JavaType | null;
2096
+ withType(_type: JavaType | null): IndexSignatureDeclaration;
2097
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2098
+ get padding(): {
2099
+ readonly parameters: JContainer<J>;
2100
+ withParameters(parameters: JContainer<J>): IndexSignatureDeclaration;
2101
+ readonly typeExpression: JLeftPadded<Expression>;
2102
+ withTypeExpression(typeExpression: JLeftPadded<Expression>): IndexSignatureDeclaration;
2103
+ };
2104
+ }
2105
+ declare const ArrayBindingPattern_base: ((abstract new (...args: any[]) => {
2106
+ readonly prefix: Space;
2107
+ withPrefix(prefix: Space): JS;
2108
+ readonly id: Uint8Array;
2109
+ withId(id: UUID): JS;
2110
+ readonly markers: Markers;
2111
+ withMarkers(markers: Markers): JS;
2112
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2113
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2114
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
2115
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2116
+ constructor: Function;
2117
+ toString(): string;
2118
+ toLocaleString(): string;
2119
+ valueOf(): Object;
2120
+ hasOwnProperty(v: PropertyKey): boolean;
2121
+ isPrototypeOf(v: Object): boolean;
2122
+ propertyIsEnumerable(v: PropertyKey): boolean;
2123
+ }) & {
2124
+ isTree: boolean;
2125
+ isJava: boolean;
2126
+ isJavaScript: boolean;
2127
+ }) & ObjectConstructor;
2128
+ export declare class ArrayBindingPattern extends ArrayBindingPattern_base implements Expression, TypedTree {
2129
+ constructor(id: UUID, prefix: Space, markers: Markers, elements: JContainer<Expression>, _type: JavaType | null);
2130
+ private readonly _id;
2131
+ get id(): UUID;
2132
+ withId(id: UUID): ArrayBindingPattern;
2133
+ private readonly _prefix;
2134
+ get prefix(): Space;
2135
+ withPrefix(prefix: Space): ArrayBindingPattern;
2136
+ private readonly _markers;
2137
+ get markers(): Markers;
2138
+ withMarkers(markers: Markers): ArrayBindingPattern;
2139
+ private readonly _elements;
2140
+ get elements(): Expression[];
2141
+ withElements(elements: Expression[]): ArrayBindingPattern;
2142
+ private readonly _type;
2143
+ get type(): JavaType | null;
2144
+ withType(_type: JavaType | null): ArrayBindingPattern;
2145
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2146
+ get padding(): {
2147
+ readonly elements: JContainer<Expression>;
2148
+ withElements(elements: JContainer<Expression>): ArrayBindingPattern;
2149
+ };
2150
+ }
2151
+ declare const BindingElement_base: ((abstract new (...args: any[]) => {
2152
+ readonly prefix: Space;
2153
+ withPrefix(prefix: Space): JS;
2154
+ readonly id: Uint8Array;
2155
+ withId(id: UUID): JS;
2156
+ readonly markers: Markers;
2157
+ withMarkers(markers: Markers): JS;
2158
+ isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
2159
+ accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
2160
+ acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
2161
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2162
+ constructor: Function;
2163
+ toString(): string;
2164
+ toLocaleString(): string;
2165
+ valueOf(): Object;
2166
+ hasOwnProperty(v: PropertyKey): boolean;
2167
+ isPrototypeOf(v: Object): boolean;
2168
+ propertyIsEnumerable(v: PropertyKey): boolean;
2169
+ }) & {
2170
+ isTree: boolean;
2171
+ isJava: boolean;
2172
+ isJavaScript: boolean;
2173
+ }) & ObjectConstructor;
2174
+ export declare class BindingElement extends BindingElement_base implements Statement, Expression, TypeTree {
2175
+ constructor(id: UUID, prefix: Space, markers: Markers, propertyName: JRightPadded<Expression> | null, name: TypedTree, initializer: JLeftPadded<Expression> | null, variableType: JavaType.Variable | null);
2176
+ private readonly _id;
2177
+ get id(): UUID;
2178
+ withId(id: UUID): BindingElement;
2179
+ private readonly _prefix;
2180
+ get prefix(): Space;
2181
+ withPrefix(prefix: Space): BindingElement;
2182
+ private readonly _markers;
2183
+ get markers(): Markers;
2184
+ withMarkers(markers: Markers): BindingElement;
2185
+ private readonly _propertyName;
2186
+ get propertyName(): Expression | null;
2187
+ withPropertyName(propertyName: Expression | null): BindingElement;
2188
+ private readonly _name;
2189
+ get name(): TypedTree;
2190
+ withName(name: TypedTree): BindingElement;
2191
+ private readonly _initializer;
2192
+ get initializer(): Expression | null;
2193
+ withInitializer(initializer: Expression | null): BindingElement;
2194
+ private readonly _variableType;
2195
+ get variableType(): JavaType.Variable | null;
2196
+ withVariableType(variableType: JavaType.Variable | null): BindingElement;
2197
+ acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
2198
+ get type(): JavaType | null;
2199
+ withType(type: JavaType): BindingElement;
2200
+ get padding(): {
2201
+ readonly propertyName: JRightPadded<Expression> | null;
2202
+ withPropertyName(propertyName: JRightPadded<Expression> | null): BindingElement;
2203
+ readonly initializer: JLeftPadded<Expression> | null;
2204
+ withInitializer(initializer: JLeftPadded<Expression> | null): BindingElement;
2205
+ };
2206
+ }
1752
2207
  export {};
1753
2208
  //# sourceMappingURL=tree.d.ts.map