@openrewrite/rewrite 0.22.0 → 0.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/javascript/parser.d.ts +20 -18
- package/dist/src/javascript/parser.d.ts.map +1 -1
- package/dist/src/javascript/parser.js +77 -37
- package/dist/src/javascript/parser.js.map +1 -1
- package/dist/src/javascript/remote/receiver.d.ts.map +1 -1
- package/dist/src/javascript/remote/receiver.js +107 -18
- package/dist/src/javascript/remote/receiver.js.map +1 -1
- package/dist/src/javascript/remote/sender.d.ts.map +1 -1
- package/dist/src/javascript/remote/sender.js +78 -13
- package/dist/src/javascript/remote/sender.js.map +1 -1
- package/dist/src/javascript/tree/extensions.js +2 -2
- package/dist/src/javascript/tree/extensions.js.map +1 -1
- package/dist/src/javascript/tree/support_types.d.ts +35 -9
- package/dist/src/javascript/tree/support_types.d.ts.map +1 -1
- package/dist/src/javascript/tree/support_types.js +33 -7
- package/dist/src/javascript/tree/support_types.js.map +1 -1
- package/dist/src/javascript/tree/tree.d.ts +449 -81
- package/dist/src/javascript/tree/tree.d.ts.map +1 -1
- package/dist/src/javascript/tree/tree.js +597 -126
- package/dist/src/javascript/tree/tree.js.map +1 -1
- package/dist/src/javascript/visitor.d.ts +10 -2
- package/dist/src/javascript/visitor.d.ts.map +1 -1
- package/dist/src/javascript/visitor.js +108 -11
- package/dist/src/javascript/visitor.js.map +1 -1
- package/package.json +1 -1
|
@@ -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, MethodCall, 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;
|
|
@@ -412,7 +412,7 @@ declare const FunctionType_base: ((abstract new (...args: any[]) => {
|
|
|
412
412
|
isJavaScript: boolean;
|
|
413
413
|
}) & ObjectConstructor;
|
|
414
414
|
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);
|
|
415
|
+
constructor(id: UUID, prefix: Space, markers: Markers, constructorType: JRightPadded<boolean>, parameters: JContainer<Statement>, arrow: Space, returnType: Expression, _type: JavaType | null);
|
|
416
416
|
private readonly _id;
|
|
417
417
|
get id(): UUID;
|
|
418
418
|
withId(id: UUID): FunctionType;
|
|
@@ -422,6 +422,9 @@ export declare class FunctionType extends FunctionType_base implements Expressio
|
|
|
422
422
|
private readonly _markers;
|
|
423
423
|
get markers(): Markers;
|
|
424
424
|
withMarkers(markers: Markers): FunctionType;
|
|
425
|
+
private readonly _constructorType;
|
|
426
|
+
get constructorType(): boolean;
|
|
427
|
+
withConstructorType(constructorType: boolean): FunctionType;
|
|
425
428
|
private readonly _parameters;
|
|
426
429
|
get parameters(): Statement[];
|
|
427
430
|
withParameters(parameters: Statement[]): FunctionType;
|
|
@@ -436,6 +439,8 @@ export declare class FunctionType extends FunctionType_base implements Expressio
|
|
|
436
439
|
withType(_type: JavaType | null): FunctionType;
|
|
437
440
|
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
438
441
|
get padding(): {
|
|
442
|
+
readonly constructorType: JRightPadded<boolean>;
|
|
443
|
+
withConstructorType(constructorType: JRightPadded<boolean>): FunctionType;
|
|
439
444
|
readonly parameters: JContainer<Statement>;
|
|
440
445
|
withParameters(parameters: JContainer<Statement>): FunctionType;
|
|
441
446
|
};
|
|
@@ -638,7 +643,7 @@ declare const ObjectBindingDeclarations_base: ((abstract new (...args: any[]) =>
|
|
|
638
643
|
isJavaScript: boolean;
|
|
639
644
|
}) & ObjectConstructor;
|
|
640
645
|
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<
|
|
646
|
+
constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Java.Annotation[], modifiers: Java.Modifier[], typeExpression: TypeTree | null, bindings: JContainer<BindingElement>, initializer: JLeftPadded<Expression> | null);
|
|
642
647
|
private readonly _id;
|
|
643
648
|
get id(): UUID;
|
|
644
649
|
withId(id: UUID): ObjectBindingDeclarations;
|
|
@@ -658,8 +663,8 @@ export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations
|
|
|
658
663
|
get typeExpression(): TypeTree | null;
|
|
659
664
|
withTypeExpression(typeExpression: TypeTree | null): ObjectBindingDeclarations;
|
|
660
665
|
private readonly _bindings;
|
|
661
|
-
get bindings():
|
|
662
|
-
withBindings(bindings:
|
|
666
|
+
get bindings(): BindingElement[];
|
|
667
|
+
withBindings(bindings: BindingElement[]): ObjectBindingDeclarations;
|
|
663
668
|
private readonly _initializer;
|
|
664
669
|
get initializer(): Expression | null;
|
|
665
670
|
withInitializer(initializer: Expression | null): ObjectBindingDeclarations;
|
|
@@ -667,77 +672,12 @@ export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations
|
|
|
667
672
|
get type(): JavaType | null;
|
|
668
673
|
withType(type: JavaType): ObjectBindingDeclarations;
|
|
669
674
|
get padding(): {
|
|
670
|
-
readonly bindings: JContainer<
|
|
671
|
-
withBindings(bindings: JContainer<
|
|
675
|
+
readonly bindings: JContainer<BindingElement>;
|
|
676
|
+
withBindings(bindings: JContainer<BindingElement>): ObjectBindingDeclarations;
|
|
672
677
|
readonly initializer: JLeftPadded<Expression> | null;
|
|
673
678
|
withInitializer(initializer: JLeftPadded<Expression> | null): ObjectBindingDeclarations;
|
|
674
679
|
};
|
|
675
680
|
}
|
|
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
681
|
declare const PropertyAssignment_base: ((abstract new (...args: any[]) => {
|
|
742
682
|
readonly prefix: Space;
|
|
743
683
|
withPrefix(prefix: Space): JS;
|
|
@@ -810,7 +750,7 @@ declare const ScopedVariableDeclarations_base: ((abstract new (...args: any[]) =
|
|
|
810
750
|
isJavaScript: boolean;
|
|
811
751
|
}) & ObjectConstructor;
|
|
812
752
|
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<
|
|
753
|
+
constructor(id: UUID, prefix: Space, markers: Markers, modifiers: Java.Modifier[], scope: JLeftPadded<ScopedVariableDeclarations.Scope> | null, variables: JRightPadded<J>[]);
|
|
814
754
|
private readonly _id;
|
|
815
755
|
get id(): UUID;
|
|
816
756
|
withId(id: UUID): ScopedVariableDeclarations;
|
|
@@ -827,14 +767,14 @@ export declare class ScopedVariableDeclarations extends ScopedVariableDeclaratio
|
|
|
827
767
|
get scope(): ScopedVariableDeclarations.Scope | null;
|
|
828
768
|
withScope(scope: ScopedVariableDeclarations.Scope | null): ScopedVariableDeclarations;
|
|
829
769
|
private readonly _variables;
|
|
830
|
-
get variables():
|
|
831
|
-
withVariables(variables:
|
|
770
|
+
get variables(): J[];
|
|
771
|
+
withVariables(variables: J[]): ScopedVariableDeclarations;
|
|
832
772
|
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
833
773
|
get padding(): {
|
|
834
774
|
readonly scope: JLeftPadded<ScopedVariableDeclarations.Scope> | null;
|
|
835
775
|
withScope(scope: JLeftPadded<ScopedVariableDeclarations.Scope> | null): ScopedVariableDeclarations;
|
|
836
|
-
readonly variables: JRightPadded<
|
|
837
|
-
withVariables(variables: JRightPadded<
|
|
776
|
+
readonly variables: JRightPadded<J>[];
|
|
777
|
+
withVariables(variables: JRightPadded<J>[]): ScopedVariableDeclarations;
|
|
838
778
|
};
|
|
839
779
|
}
|
|
840
780
|
export declare namespace ScopedVariableDeclarations {
|
|
@@ -1014,7 +954,7 @@ declare const TypeDeclaration_base: ((abstract new (...args: any[]) => {
|
|
|
1014
954
|
isJavaScript: boolean;
|
|
1015
955
|
}) & ObjectConstructor;
|
|
1016
956
|
export declare class TypeDeclaration extends TypeDeclaration_base implements Statement, TypedTree {
|
|
1017
|
-
constructor(id: UUID, prefix: Space, markers: Markers,
|
|
957
|
+
constructor(id: UUID, prefix: Space, markers: Markers, modifiers: Java.Modifier[], name: Java.Identifier, typeParameters: Java.TypeParameters | null, initializer: JLeftPadded<Expression>, _type: JavaType | null);
|
|
1018
958
|
private readonly _id;
|
|
1019
959
|
get id(): UUID;
|
|
1020
960
|
withId(id: UUID): TypeDeclaration;
|
|
@@ -1024,9 +964,6 @@ export declare class TypeDeclaration extends TypeDeclaration_base implements Sta
|
|
|
1024
964
|
private readonly _markers;
|
|
1025
965
|
get markers(): Markers;
|
|
1026
966
|
withMarkers(markers: Markers): TypeDeclaration;
|
|
1027
|
-
private readonly _leadingAnnotations;
|
|
1028
|
-
get leadingAnnotations(): Java.Annotation[];
|
|
1029
|
-
withLeadingAnnotations(leadingAnnotations: Java.Annotation[]): TypeDeclaration;
|
|
1030
967
|
private readonly _modifiers;
|
|
1031
968
|
get modifiers(): Java.Modifier[];
|
|
1032
969
|
withModifiers(modifiers: Java.Modifier[]): TypeDeclaration;
|
|
@@ -1090,6 +1027,48 @@ export declare class TypeOf extends TypeOf_base implements Expression {
|
|
|
1090
1027
|
withType(_type: JavaType | null): TypeOf;
|
|
1091
1028
|
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1092
1029
|
}
|
|
1030
|
+
declare const TypeQuery_base: ((abstract new (...args: any[]) => {
|
|
1031
|
+
readonly prefix: Space;
|
|
1032
|
+
withPrefix(prefix: Space): JS;
|
|
1033
|
+
readonly id: Uint8Array;
|
|
1034
|
+
withId(id: UUID): JS;
|
|
1035
|
+
readonly markers: Markers;
|
|
1036
|
+
withMarkers(markers: Markers): JS;
|
|
1037
|
+
isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
|
|
1038
|
+
accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
|
|
1039
|
+
acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
|
|
1040
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1041
|
+
constructor: Function;
|
|
1042
|
+
toString(): string;
|
|
1043
|
+
toLocaleString(): string;
|
|
1044
|
+
valueOf(): Object;
|
|
1045
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
1046
|
+
isPrototypeOf(v: Object): boolean;
|
|
1047
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
1048
|
+
}) & {
|
|
1049
|
+
isTree: boolean;
|
|
1050
|
+
isJava: boolean;
|
|
1051
|
+
isJavaScript: boolean;
|
|
1052
|
+
}) & ObjectConstructor;
|
|
1053
|
+
export declare class TypeQuery extends TypeQuery_base implements Expression, TypeTree {
|
|
1054
|
+
constructor(id: UUID, prefix: Space, markers: Markers, typeExpression: TypeTree, _type: JavaType | null);
|
|
1055
|
+
private readonly _id;
|
|
1056
|
+
get id(): UUID;
|
|
1057
|
+
withId(id: UUID): TypeQuery;
|
|
1058
|
+
private readonly _prefix;
|
|
1059
|
+
get prefix(): Space;
|
|
1060
|
+
withPrefix(prefix: Space): TypeQuery;
|
|
1061
|
+
private readonly _markers;
|
|
1062
|
+
get markers(): Markers;
|
|
1063
|
+
withMarkers(markers: Markers): TypeQuery;
|
|
1064
|
+
private readonly _typeExpression;
|
|
1065
|
+
get typeExpression(): TypeTree;
|
|
1066
|
+
withTypeExpression(typeExpression: TypeTree): TypeQuery;
|
|
1067
|
+
private readonly _type;
|
|
1068
|
+
get type(): JavaType | null;
|
|
1069
|
+
withType(_type: JavaType | null): TypeQuery;
|
|
1070
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1071
|
+
}
|
|
1093
1072
|
declare const TypeOperator_base: ((abstract new (...args: any[]) => {
|
|
1094
1073
|
readonly prefix: Space;
|
|
1095
1074
|
withPrefix(prefix: Space): JS;
|
|
@@ -1248,6 +1227,52 @@ export declare class Union extends Union_base implements Expression, TypeTree {
|
|
|
1248
1227
|
withTypes(types: JRightPadded<Expression>[]): Union;
|
|
1249
1228
|
};
|
|
1250
1229
|
}
|
|
1230
|
+
declare const Intersection_base: ((abstract new (...args: any[]) => {
|
|
1231
|
+
readonly prefix: Space;
|
|
1232
|
+
withPrefix(prefix: Space): JS;
|
|
1233
|
+
readonly id: Uint8Array;
|
|
1234
|
+
withId(id: UUID): JS;
|
|
1235
|
+
readonly markers: Markers;
|
|
1236
|
+
withMarkers(markers: Markers): JS;
|
|
1237
|
+
isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
|
|
1238
|
+
accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
|
|
1239
|
+
acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
|
|
1240
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1241
|
+
constructor: Function;
|
|
1242
|
+
toString(): string;
|
|
1243
|
+
toLocaleString(): string;
|
|
1244
|
+
valueOf(): Object;
|
|
1245
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
1246
|
+
isPrototypeOf(v: Object): boolean;
|
|
1247
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
1248
|
+
}) & {
|
|
1249
|
+
isTree: boolean;
|
|
1250
|
+
isJava: boolean;
|
|
1251
|
+
isJavaScript: boolean;
|
|
1252
|
+
}) & ObjectConstructor;
|
|
1253
|
+
export declare class Intersection extends Intersection_base implements Expression, TypeTree {
|
|
1254
|
+
constructor(id: UUID, prefix: Space, markers: Markers, types: JRightPadded<Expression>[], _type: JavaType | null);
|
|
1255
|
+
private readonly _id;
|
|
1256
|
+
get id(): UUID;
|
|
1257
|
+
withId(id: UUID): Intersection;
|
|
1258
|
+
private readonly _prefix;
|
|
1259
|
+
get prefix(): Space;
|
|
1260
|
+
withPrefix(prefix: Space): Intersection;
|
|
1261
|
+
private readonly _markers;
|
|
1262
|
+
get markers(): Markers;
|
|
1263
|
+
withMarkers(markers: Markers): Intersection;
|
|
1264
|
+
private readonly _types;
|
|
1265
|
+
get types(): Expression[];
|
|
1266
|
+
withTypes(types: Expression[]): Intersection;
|
|
1267
|
+
private readonly _type;
|
|
1268
|
+
get type(): JavaType | null;
|
|
1269
|
+
withType(_type: JavaType | null): Intersection;
|
|
1270
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1271
|
+
get padding(): {
|
|
1272
|
+
readonly types: JRightPadded<Expression>[];
|
|
1273
|
+
withTypes(types: JRightPadded<Expression>[]): Intersection;
|
|
1274
|
+
};
|
|
1275
|
+
}
|
|
1251
1276
|
declare const Void_base: ((abstract new (...args: any[]) => {
|
|
1252
1277
|
readonly prefix: Space;
|
|
1253
1278
|
withPrefix(prefix: Space): JS;
|
|
@@ -1628,6 +1653,151 @@ export declare class JSMethodInvocation extends JSMethodInvocation_base implemen
|
|
|
1628
1653
|
withArguments(_arguments: JContainer<Expression>): JSMethodInvocation;
|
|
1629
1654
|
};
|
|
1630
1655
|
}
|
|
1656
|
+
declare const JSForOfLoop_base: ((abstract new (...args: any[]) => {
|
|
1657
|
+
readonly prefix: Space;
|
|
1658
|
+
withPrefix(prefix: Space): JS;
|
|
1659
|
+
readonly id: Uint8Array;
|
|
1660
|
+
withId(id: UUID): JS;
|
|
1661
|
+
readonly markers: Markers;
|
|
1662
|
+
withMarkers(markers: Markers): JS;
|
|
1663
|
+
isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
|
|
1664
|
+
accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
|
|
1665
|
+
acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
|
|
1666
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1667
|
+
constructor: Function;
|
|
1668
|
+
toString(): string;
|
|
1669
|
+
toLocaleString(): string;
|
|
1670
|
+
valueOf(): Object;
|
|
1671
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
1672
|
+
isPrototypeOf(v: Object): boolean;
|
|
1673
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
1674
|
+
}) & {
|
|
1675
|
+
isTree: boolean;
|
|
1676
|
+
isJava: boolean;
|
|
1677
|
+
isJavaScript: boolean;
|
|
1678
|
+
}) & ObjectConstructor;
|
|
1679
|
+
export declare class JSForOfLoop extends JSForOfLoop_base implements Loop {
|
|
1680
|
+
constructor(id: UUID, prefix: Space, markers: Markers, await: JLeftPadded<boolean>, control: JSForInOfLoopControl, body: JRightPadded<Statement>);
|
|
1681
|
+
private readonly _id;
|
|
1682
|
+
get id(): UUID;
|
|
1683
|
+
withId(id: UUID): JSForOfLoop;
|
|
1684
|
+
private readonly _prefix;
|
|
1685
|
+
get prefix(): Space;
|
|
1686
|
+
withPrefix(prefix: Space): JSForOfLoop;
|
|
1687
|
+
private readonly _markers;
|
|
1688
|
+
get markers(): Markers;
|
|
1689
|
+
withMarkers(markers: Markers): JSForOfLoop;
|
|
1690
|
+
private readonly _await;
|
|
1691
|
+
get await(): boolean;
|
|
1692
|
+
withAwait(await: boolean): JSForOfLoop;
|
|
1693
|
+
private readonly _control;
|
|
1694
|
+
get control(): JSForInOfLoopControl;
|
|
1695
|
+
withControl(control: JSForInOfLoopControl): JSForOfLoop;
|
|
1696
|
+
private readonly _body;
|
|
1697
|
+
get body(): Statement;
|
|
1698
|
+
withBody(body: Statement): JSForOfLoop;
|
|
1699
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1700
|
+
get padding(): {
|
|
1701
|
+
readonly await: JLeftPadded<boolean>;
|
|
1702
|
+
withAwait(await: JLeftPadded<boolean>): JSForOfLoop;
|
|
1703
|
+
readonly body: JRightPadded<Statement>;
|
|
1704
|
+
withBody(body: JRightPadded<Statement>): JSForOfLoop;
|
|
1705
|
+
};
|
|
1706
|
+
}
|
|
1707
|
+
declare const JSForInLoop_base: ((abstract new (...args: any[]) => {
|
|
1708
|
+
readonly prefix: Space;
|
|
1709
|
+
withPrefix(prefix: Space): JS;
|
|
1710
|
+
readonly id: Uint8Array;
|
|
1711
|
+
withId(id: UUID): JS;
|
|
1712
|
+
readonly markers: Markers;
|
|
1713
|
+
withMarkers(markers: Markers): JS;
|
|
1714
|
+
isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
|
|
1715
|
+
accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
|
|
1716
|
+
acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
|
|
1717
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1718
|
+
constructor: Function;
|
|
1719
|
+
toString(): string;
|
|
1720
|
+
toLocaleString(): string;
|
|
1721
|
+
valueOf(): Object;
|
|
1722
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
1723
|
+
isPrototypeOf(v: Object): boolean;
|
|
1724
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
1725
|
+
}) & {
|
|
1726
|
+
isTree: boolean;
|
|
1727
|
+
isJava: boolean;
|
|
1728
|
+
isJavaScript: boolean;
|
|
1729
|
+
}) & ObjectConstructor;
|
|
1730
|
+
export declare class JSForInLoop extends JSForInLoop_base implements Loop {
|
|
1731
|
+
constructor(id: UUID, prefix: Space, markers: Markers, control: JSForInOfLoopControl, body: JRightPadded<Statement>);
|
|
1732
|
+
private readonly _id;
|
|
1733
|
+
get id(): UUID;
|
|
1734
|
+
withId(id: UUID): JSForInLoop;
|
|
1735
|
+
private readonly _prefix;
|
|
1736
|
+
get prefix(): Space;
|
|
1737
|
+
withPrefix(prefix: Space): JSForInLoop;
|
|
1738
|
+
private readonly _markers;
|
|
1739
|
+
get markers(): Markers;
|
|
1740
|
+
withMarkers(markers: Markers): JSForInLoop;
|
|
1741
|
+
private readonly _control;
|
|
1742
|
+
get control(): JSForInOfLoopControl;
|
|
1743
|
+
withControl(control: JSForInOfLoopControl): JSForInLoop;
|
|
1744
|
+
private readonly _body;
|
|
1745
|
+
get body(): Statement;
|
|
1746
|
+
withBody(body: Statement): JSForInLoop;
|
|
1747
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1748
|
+
get padding(): {
|
|
1749
|
+
readonly body: JRightPadded<Statement>;
|
|
1750
|
+
withBody(body: JRightPadded<Statement>): JSForInLoop;
|
|
1751
|
+
};
|
|
1752
|
+
}
|
|
1753
|
+
declare const JSForInOfLoopControl_base: ((abstract new (...args: any[]) => {
|
|
1754
|
+
readonly prefix: Space;
|
|
1755
|
+
withPrefix(prefix: Space): JS;
|
|
1756
|
+
readonly id: Uint8Array;
|
|
1757
|
+
withId(id: UUID): JS;
|
|
1758
|
+
readonly markers: Markers;
|
|
1759
|
+
withMarkers(markers: Markers): JS;
|
|
1760
|
+
isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
|
|
1761
|
+
accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
|
|
1762
|
+
acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
|
|
1763
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1764
|
+
constructor: Function;
|
|
1765
|
+
toString(): string;
|
|
1766
|
+
toLocaleString(): string;
|
|
1767
|
+
valueOf(): Object;
|
|
1768
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
1769
|
+
isPrototypeOf(v: Object): boolean;
|
|
1770
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
1771
|
+
}) & {
|
|
1772
|
+
isTree: boolean;
|
|
1773
|
+
isJava: boolean;
|
|
1774
|
+
isJavaScript: boolean;
|
|
1775
|
+
}) & ObjectConstructor;
|
|
1776
|
+
export declare class JSForInOfLoopControl extends JSForInOfLoopControl_base {
|
|
1777
|
+
constructor(id: UUID, prefix: Space, markers: Markers, variable: JRightPadded<Statement>, iterable: JRightPadded<Expression>);
|
|
1778
|
+
private readonly _id;
|
|
1779
|
+
get id(): UUID;
|
|
1780
|
+
withId(id: UUID): JSForInOfLoopControl;
|
|
1781
|
+
private readonly _prefix;
|
|
1782
|
+
get prefix(): Space;
|
|
1783
|
+
withPrefix(prefix: Space): JSForInOfLoopControl;
|
|
1784
|
+
private readonly _markers;
|
|
1785
|
+
get markers(): Markers;
|
|
1786
|
+
withMarkers(markers: Markers): JSForInOfLoopControl;
|
|
1787
|
+
private readonly _variable;
|
|
1788
|
+
get variable(): Statement;
|
|
1789
|
+
withVariable(variable: Statement): JSForInOfLoopControl;
|
|
1790
|
+
private readonly _iterable;
|
|
1791
|
+
get iterable(): Expression;
|
|
1792
|
+
withIterable(iterable: Expression): JSForInOfLoopControl;
|
|
1793
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1794
|
+
get padding(): {
|
|
1795
|
+
readonly variable: JRightPadded<Statement>;
|
|
1796
|
+
withVariable(variable: JRightPadded<Statement>): JSForInOfLoopControl;
|
|
1797
|
+
readonly iterable: JRightPadded<Expression>;
|
|
1798
|
+
withIterable(iterable: JRightPadded<Expression>): JSForInOfLoopControl;
|
|
1799
|
+
};
|
|
1800
|
+
}
|
|
1631
1801
|
declare const NamespaceDeclaration_base: ((abstract new (...args: any[]) => {
|
|
1632
1802
|
readonly prefix: Space;
|
|
1633
1803
|
withPrefix(prefix: Space): JS;
|
|
@@ -1749,5 +1919,203 @@ export declare class FunctionDeclaration extends FunctionDeclaration_base implem
|
|
|
1749
1919
|
withParameters(parameters: JContainer<Statement>): FunctionDeclaration;
|
|
1750
1920
|
};
|
|
1751
1921
|
}
|
|
1922
|
+
declare const TypeLiteral_base: ((abstract new (...args: any[]) => {
|
|
1923
|
+
readonly prefix: Space;
|
|
1924
|
+
withPrefix(prefix: Space): JS;
|
|
1925
|
+
readonly id: Uint8Array;
|
|
1926
|
+
withId(id: UUID): JS;
|
|
1927
|
+
readonly markers: Markers;
|
|
1928
|
+
withMarkers(markers: Markers): JS;
|
|
1929
|
+
isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
|
|
1930
|
+
accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
|
|
1931
|
+
acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
|
|
1932
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1933
|
+
constructor: Function;
|
|
1934
|
+
toString(): string;
|
|
1935
|
+
toLocaleString(): string;
|
|
1936
|
+
valueOf(): Object;
|
|
1937
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
1938
|
+
isPrototypeOf(v: Object): boolean;
|
|
1939
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
1940
|
+
}) & {
|
|
1941
|
+
isTree: boolean;
|
|
1942
|
+
isJava: boolean;
|
|
1943
|
+
isJavaScript: boolean;
|
|
1944
|
+
}) & ObjectConstructor;
|
|
1945
|
+
export declare class TypeLiteral extends TypeLiteral_base implements Expression, TypeTree {
|
|
1946
|
+
constructor(id: UUID, prefix: Space, markers: Markers, members: Java.Block, _type: JavaType | null);
|
|
1947
|
+
private readonly _id;
|
|
1948
|
+
get id(): UUID;
|
|
1949
|
+
withId(id: UUID): TypeLiteral;
|
|
1950
|
+
private readonly _prefix;
|
|
1951
|
+
get prefix(): Space;
|
|
1952
|
+
withPrefix(prefix: Space): TypeLiteral;
|
|
1953
|
+
private readonly _markers;
|
|
1954
|
+
get markers(): Markers;
|
|
1955
|
+
withMarkers(markers: Markers): TypeLiteral;
|
|
1956
|
+
private readonly _members;
|
|
1957
|
+
get members(): Java.Block;
|
|
1958
|
+
withMembers(members: Java.Block): TypeLiteral;
|
|
1959
|
+
private readonly _type;
|
|
1960
|
+
get type(): JavaType | null;
|
|
1961
|
+
withType(_type: JavaType | null): TypeLiteral;
|
|
1962
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1963
|
+
}
|
|
1964
|
+
declare const IndexSignatureDeclaration_base: ((abstract new (...args: any[]) => {
|
|
1965
|
+
readonly prefix: Space;
|
|
1966
|
+
withPrefix(prefix: Space): JS;
|
|
1967
|
+
readonly id: Uint8Array;
|
|
1968
|
+
withId(id: UUID): JS;
|
|
1969
|
+
readonly markers: Markers;
|
|
1970
|
+
withMarkers(markers: Markers): JS;
|
|
1971
|
+
isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
|
|
1972
|
+
accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
|
|
1973
|
+
acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
|
|
1974
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1975
|
+
constructor: Function;
|
|
1976
|
+
toString(): string;
|
|
1977
|
+
toLocaleString(): string;
|
|
1978
|
+
valueOf(): Object;
|
|
1979
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
1980
|
+
isPrototypeOf(v: Object): boolean;
|
|
1981
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
1982
|
+
}) & {
|
|
1983
|
+
isTree: boolean;
|
|
1984
|
+
isJava: boolean;
|
|
1985
|
+
isJavaScript: boolean;
|
|
1986
|
+
}) & ObjectConstructor;
|
|
1987
|
+
export declare class IndexSignatureDeclaration extends IndexSignatureDeclaration_base implements Statement, TypedTree {
|
|
1988
|
+
constructor(id: UUID, prefix: Space, markers: Markers, modifiers: Java.Modifier[], parameters: JContainer<J>, typeExpression: JLeftPadded<Expression>, _type: JavaType | null);
|
|
1989
|
+
private readonly _id;
|
|
1990
|
+
get id(): UUID;
|
|
1991
|
+
withId(id: UUID): IndexSignatureDeclaration;
|
|
1992
|
+
private readonly _prefix;
|
|
1993
|
+
get prefix(): Space;
|
|
1994
|
+
withPrefix(prefix: Space): IndexSignatureDeclaration;
|
|
1995
|
+
private readonly _markers;
|
|
1996
|
+
get markers(): Markers;
|
|
1997
|
+
withMarkers(markers: Markers): IndexSignatureDeclaration;
|
|
1998
|
+
private readonly _modifiers;
|
|
1999
|
+
get modifiers(): Java.Modifier[];
|
|
2000
|
+
withModifiers(modifiers: Java.Modifier[]): IndexSignatureDeclaration;
|
|
2001
|
+
private readonly _parameters;
|
|
2002
|
+
get parameters(): J[];
|
|
2003
|
+
withParameters(parameters: J[]): IndexSignatureDeclaration;
|
|
2004
|
+
private readonly _typeExpression;
|
|
2005
|
+
get typeExpression(): Expression;
|
|
2006
|
+
withTypeExpression(typeExpression: Expression): IndexSignatureDeclaration;
|
|
2007
|
+
private readonly _type;
|
|
2008
|
+
get type(): JavaType | null;
|
|
2009
|
+
withType(_type: JavaType | null): IndexSignatureDeclaration;
|
|
2010
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
2011
|
+
get padding(): {
|
|
2012
|
+
readonly parameters: JContainer<J>;
|
|
2013
|
+
withParameters(parameters: JContainer<J>): IndexSignatureDeclaration;
|
|
2014
|
+
readonly typeExpression: JLeftPadded<Expression>;
|
|
2015
|
+
withTypeExpression(typeExpression: JLeftPadded<Expression>): IndexSignatureDeclaration;
|
|
2016
|
+
};
|
|
2017
|
+
}
|
|
2018
|
+
declare const ArrayBindingPattern_base: ((abstract new (...args: any[]) => {
|
|
2019
|
+
readonly prefix: Space;
|
|
2020
|
+
withPrefix(prefix: Space): JS;
|
|
2021
|
+
readonly id: Uint8Array;
|
|
2022
|
+
withId(id: UUID): JS;
|
|
2023
|
+
readonly markers: Markers;
|
|
2024
|
+
withMarkers(markers: Markers): JS;
|
|
2025
|
+
isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
|
|
2026
|
+
accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
|
|
2027
|
+
acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
|
|
2028
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
2029
|
+
constructor: Function;
|
|
2030
|
+
toString(): string;
|
|
2031
|
+
toLocaleString(): string;
|
|
2032
|
+
valueOf(): Object;
|
|
2033
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
2034
|
+
isPrototypeOf(v: Object): boolean;
|
|
2035
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
2036
|
+
}) & {
|
|
2037
|
+
isTree: boolean;
|
|
2038
|
+
isJava: boolean;
|
|
2039
|
+
isJavaScript: boolean;
|
|
2040
|
+
}) & ObjectConstructor;
|
|
2041
|
+
export declare class ArrayBindingPattern extends ArrayBindingPattern_base implements Expression, TypedTree {
|
|
2042
|
+
constructor(id: UUID, prefix: Space, markers: Markers, elements: JContainer<Expression>, _type: JavaType | null);
|
|
2043
|
+
private readonly _id;
|
|
2044
|
+
get id(): UUID;
|
|
2045
|
+
withId(id: UUID): ArrayBindingPattern;
|
|
2046
|
+
private readonly _prefix;
|
|
2047
|
+
get prefix(): Space;
|
|
2048
|
+
withPrefix(prefix: Space): ArrayBindingPattern;
|
|
2049
|
+
private readonly _markers;
|
|
2050
|
+
get markers(): Markers;
|
|
2051
|
+
withMarkers(markers: Markers): ArrayBindingPattern;
|
|
2052
|
+
private readonly _elements;
|
|
2053
|
+
get elements(): Expression[];
|
|
2054
|
+
withElements(elements: Expression[]): ArrayBindingPattern;
|
|
2055
|
+
private readonly _type;
|
|
2056
|
+
get type(): JavaType | null;
|
|
2057
|
+
withType(_type: JavaType | null): ArrayBindingPattern;
|
|
2058
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
2059
|
+
get padding(): {
|
|
2060
|
+
readonly elements: JContainer<Expression>;
|
|
2061
|
+
withElements(elements: JContainer<Expression>): ArrayBindingPattern;
|
|
2062
|
+
};
|
|
2063
|
+
}
|
|
2064
|
+
declare const BindingElement_base: ((abstract new (...args: any[]) => {
|
|
2065
|
+
readonly prefix: Space;
|
|
2066
|
+
withPrefix(prefix: Space): JS;
|
|
2067
|
+
readonly id: Uint8Array;
|
|
2068
|
+
withId(id: UUID): JS;
|
|
2069
|
+
readonly markers: Markers;
|
|
2070
|
+
withMarkers(markers: Markers): JS;
|
|
2071
|
+
isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
|
|
2072
|
+
accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
|
|
2073
|
+
acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
|
|
2074
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
2075
|
+
constructor: Function;
|
|
2076
|
+
toString(): string;
|
|
2077
|
+
toLocaleString(): string;
|
|
2078
|
+
valueOf(): Object;
|
|
2079
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
2080
|
+
isPrototypeOf(v: Object): boolean;
|
|
2081
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
2082
|
+
}) & {
|
|
2083
|
+
isTree: boolean;
|
|
2084
|
+
isJava: boolean;
|
|
2085
|
+
isJavaScript: boolean;
|
|
2086
|
+
}) & ObjectConstructor;
|
|
2087
|
+
export declare class BindingElement extends BindingElement_base implements Statement, Expression, TypeTree {
|
|
2088
|
+
constructor(id: UUID, prefix: Space, markers: Markers, propertyName: JRightPadded<Expression> | null, name: TypedTree, initializer: JLeftPadded<Expression> | null, variableType: JavaType.Variable | null);
|
|
2089
|
+
private readonly _id;
|
|
2090
|
+
get id(): UUID;
|
|
2091
|
+
withId(id: UUID): BindingElement;
|
|
2092
|
+
private readonly _prefix;
|
|
2093
|
+
get prefix(): Space;
|
|
2094
|
+
withPrefix(prefix: Space): BindingElement;
|
|
2095
|
+
private readonly _markers;
|
|
2096
|
+
get markers(): Markers;
|
|
2097
|
+
withMarkers(markers: Markers): BindingElement;
|
|
2098
|
+
private readonly _propertyName;
|
|
2099
|
+
get propertyName(): Expression | null;
|
|
2100
|
+
withPropertyName(propertyName: Expression | null): BindingElement;
|
|
2101
|
+
private readonly _name;
|
|
2102
|
+
get name(): TypedTree;
|
|
2103
|
+
withName(name: TypedTree): BindingElement;
|
|
2104
|
+
private readonly _initializer;
|
|
2105
|
+
get initializer(): Expression | null;
|
|
2106
|
+
withInitializer(initializer: Expression | null): BindingElement;
|
|
2107
|
+
private readonly _variableType;
|
|
2108
|
+
get variableType(): JavaType.Variable | null;
|
|
2109
|
+
withVariableType(variableType: JavaType.Variable | null): BindingElement;
|
|
2110
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
2111
|
+
get type(): JavaType | null;
|
|
2112
|
+
withType(type: JavaType): BindingElement;
|
|
2113
|
+
get padding(): {
|
|
2114
|
+
readonly propertyName: JRightPadded<Expression> | null;
|
|
2115
|
+
withPropertyName(propertyName: JRightPadded<Expression> | null): BindingElement;
|
|
2116
|
+
readonly initializer: JLeftPadded<Expression> | null;
|
|
2117
|
+
withInitializer(initializer: JLeftPadded<Expression> | null): BindingElement;
|
|
2118
|
+
};
|
|
2119
|
+
}
|
|
1752
2120
|
export {};
|
|
1753
2121
|
//# sourceMappingURL=tree.d.ts.map
|