@openrewrite/rewrite 0.24.0 → 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.
- package/LICENSE.md +87 -0
- package/dist/src/core/parser.js +17 -7
- package/dist/src/core/parser.js.map +1 -1
- package/dist/src/core/tree.d.ts +1 -1
- package/dist/src/core/tree.d.ts.map +1 -1
- package/dist/src/java/markers.d.ts +2 -2
- package/dist/src/java/markers.d.ts.map +1 -1
- package/dist/src/java/remote/receiver.js +17 -7
- package/dist/src/java/remote/receiver.js.map +1 -1
- package/dist/src/java/remote/sender.js +17 -7
- package/dist/src/java/remote/sender.js.map +1 -1
- package/dist/src/java/tree/support_types.d.ts +1 -1
- package/dist/src/java/tree/support_types.d.ts.map +1 -1
- package/dist/src/java/tree/tree.d.ts +70 -70
- package/dist/src/java/tree/tree.d.ts.map +1 -1
- package/dist/src/java/tree/tree.js +17 -7
- package/dist/src/java/tree/tree.js.map +1 -1
- package/dist/src/java/visitor.js +17 -7
- package/dist/src/java/visitor.js.map +1 -1
- package/dist/src/javascript/extensions.js +17 -7
- package/dist/src/javascript/extensions.js.map +1 -1
- package/dist/src/javascript/parser.d.ts +5 -3
- package/dist/src/javascript/parser.d.ts.map +1 -1
- package/dist/src/javascript/parser.js +67 -21
- package/dist/src/javascript/parser.js.map +1 -1
- package/dist/src/javascript/parserUtils.d.ts +1 -1
- package/dist/src/javascript/parserUtils.js +17 -7
- package/dist/src/javascript/parserUtils.js.map +1 -1
- package/dist/src/javascript/projectParser.js +17 -7
- package/dist/src/javascript/projectParser.js.map +1 -1
- package/dist/src/javascript/remote/receiver.d.ts.map +1 -1
- package/dist/src/javascript/remote/receiver.js +71 -14
- package/dist/src/javascript/remote/receiver.js.map +1 -1
- package/dist/src/javascript/remote/remote_extensions.js +17 -7
- package/dist/src/javascript/remote/remote_extensions.js.map +1 -1
- package/dist/src/javascript/remote/sender.d.ts.map +1 -1
- package/dist/src/javascript/remote/sender.js +56 -11
- package/dist/src/javascript/remote/sender.js.map +1 -1
- package/dist/src/javascript/tree/extensions.js +17 -7
- package/dist/src/javascript/tree/extensions.js.map +1 -1
- package/dist/src/javascript/tree/support_types.d.ts +21 -7
- package/dist/src/javascript/tree/support_types.d.ts.map +1 -1
- package/dist/src/javascript/tree/support_types.js +31 -7
- package/dist/src/javascript/tree/support_types.js.map +1 -1
- package/dist/src/javascript/tree/tree.d.ts +288 -77
- package/dist/src/javascript/tree/tree.d.ts.map +1 -1
- package/dist/src/javascript/tree/tree.js +348 -44
- package/dist/src/javascript/tree/tree.js.map +1 -1
- package/dist/src/javascript/typeMapping.js +17 -7
- package/dist/src/javascript/typeMapping.js.map +1 -1
- package/dist/src/javascript/visitor.d.ts +5 -1
- package/dist/src/javascript/visitor.d.ts.map +1 -1
- package/dist/src/javascript/visitor.js +71 -10
- package/dist/src/javascript/visitor.js.map +1 -1
- package/dist/src/json/tree.d.ts +1 -1
- package/dist/src/json/tree.d.ts.map +1 -1
- package/dist/src/json/visitor.js +17 -7
- package/dist/src/json/visitor.js.map +1 -1
- package/dist/src/yaml/tree/support_types.d.ts +1 -1
- package/dist/src/yaml/tree/support_types.d.ts.map +1 -1
- package/dist/src/yaml/tree/tree.d.ts +11 -11
- package/package.json +1 -1
- 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:
|
|
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:
|
|
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:
|
|
100
|
+
readonly id: UUID;
|
|
101
101
|
withId(id: UUID): JS;
|
|
102
102
|
readonly markers: Markers;
|
|
103
103
|
withMarkers(markers: Markers): JS;
|
|
@@ -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:
|
|
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,
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
493
|
+
readonly id: UUID;
|
|
493
494
|
withId(id: UUID): JS;
|
|
494
495
|
readonly markers: Markers;
|
|
495
496
|
withMarkers(markers: Markers): JS;
|
|
@@ -549,7 +550,7 @@ export declare class FunctionType extends FunctionType_base implements Expressio
|
|
|
549
550
|
declare const InferType_base: ((abstract new (...args: any[]) => {
|
|
550
551
|
readonly prefix: Space;
|
|
551
552
|
withPrefix(prefix: Space): JS;
|
|
552
|
-
readonly id:
|
|
553
|
+
readonly id: UUID;
|
|
553
554
|
withId(id: UUID): JS;
|
|
554
555
|
readonly markers: Markers;
|
|
555
556
|
withMarkers(markers: Markers): JS;
|
|
@@ -595,7 +596,7 @@ export declare class InferType extends InferType_base implements TypeTree, Expre
|
|
|
595
596
|
declare const ImportType_base: ((abstract new (...args: any[]) => {
|
|
596
597
|
readonly prefix: Space;
|
|
597
598
|
withPrefix(prefix: Space): JS;
|
|
598
|
-
readonly id:
|
|
599
|
+
readonly id: UUID;
|
|
599
600
|
withId(id: UUID): JS;
|
|
600
601
|
readonly markers: Markers;
|
|
601
602
|
withMarkers(markers: Markers): JS;
|
|
@@ -654,7 +655,7 @@ export declare class ImportType extends ImportType_base implements Expression, T
|
|
|
654
655
|
declare const JsImport_base: ((abstract new (...args: any[]) => {
|
|
655
656
|
readonly prefix: Space;
|
|
656
657
|
withPrefix(prefix: Space): JS;
|
|
657
|
-
readonly id:
|
|
658
|
+
readonly id: UUID;
|
|
658
659
|
withId(id: UUID): JS;
|
|
659
660
|
readonly markers: Markers;
|
|
660
661
|
withMarkers(markers: Markers): JS;
|
|
@@ -718,7 +719,7 @@ export declare class JsImport extends JsImport_base implements Statement {
|
|
|
718
719
|
declare const JsImportSpecifier_base: ((abstract new (...args: any[]) => {
|
|
719
720
|
readonly prefix: Space;
|
|
720
721
|
withPrefix(prefix: Space): JS;
|
|
721
|
-
readonly id:
|
|
722
|
+
readonly id: UUID;
|
|
722
723
|
withId(id: UUID): JS;
|
|
723
724
|
readonly markers: Markers;
|
|
724
725
|
withMarkers(markers: Markers): JS;
|
|
@@ -767,7 +768,7 @@ export declare class JsImportSpecifier extends JsImportSpecifier_base implements
|
|
|
767
768
|
declare const JsBinary_base: ((abstract new (...args: any[]) => {
|
|
768
769
|
readonly prefix: Space;
|
|
769
770
|
withPrefix(prefix: Space): JS;
|
|
770
|
-
readonly id:
|
|
771
|
+
readonly id: UUID;
|
|
771
772
|
withId(id: UUID): JS;
|
|
772
773
|
readonly markers: Markers;
|
|
773
774
|
withMarkers(markers: Markers): JS;
|
|
@@ -829,7 +830,7 @@ export declare namespace JsBinary {
|
|
|
829
830
|
declare const LiteralType_base: ((abstract new (...args: any[]) => {
|
|
830
831
|
readonly prefix: Space;
|
|
831
832
|
withPrefix(prefix: Space): JS;
|
|
832
|
-
readonly id:
|
|
833
|
+
readonly id: UUID;
|
|
833
834
|
withId(id: UUID): JS;
|
|
834
835
|
readonly markers: Markers;
|
|
835
836
|
withMarkers(markers: Markers): JS;
|
|
@@ -868,10 +869,176 @@ export declare class LiteralType extends LiteralType_base implements Expression,
|
|
|
868
869
|
withType(_type: JavaType): LiteralType;
|
|
869
870
|
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
870
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
|
+
};
|
|
1035
|
+
}
|
|
1036
|
+
export {};
|
|
1037
|
+
}
|
|
871
1038
|
declare const ObjectBindingDeclarations_base: ((abstract new (...args: any[]) => {
|
|
872
1039
|
readonly prefix: Space;
|
|
873
1040
|
withPrefix(prefix: Space): JS;
|
|
874
|
-
readonly id:
|
|
1041
|
+
readonly id: UUID;
|
|
875
1042
|
withId(id: UUID): JS;
|
|
876
1043
|
readonly markers: Markers;
|
|
877
1044
|
withMarkers(markers: Markers): JS;
|
|
@@ -892,7 +1059,7 @@ declare const ObjectBindingDeclarations_base: ((abstract new (...args: any[]) =>
|
|
|
892
1059
|
isJavaScript: boolean;
|
|
893
1060
|
}) & ObjectConstructor;
|
|
894
1061
|
export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations_base implements Expression, TypedTree {
|
|
895
|
-
constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Java.Annotation[], modifiers: Java.Modifier[], typeExpression: TypeTree | null, bindings: JContainer<
|
|
1062
|
+
constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Java.Annotation[], modifiers: Java.Modifier[], typeExpression: TypeTree | null, bindings: JContainer<J>, initializer: JLeftPadded<Expression> | null);
|
|
896
1063
|
private readonly _id;
|
|
897
1064
|
get id(): UUID;
|
|
898
1065
|
withId(id: UUID): ObjectBindingDeclarations;
|
|
@@ -912,8 +1079,8 @@ export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations
|
|
|
912
1079
|
get typeExpression(): TypeTree | null;
|
|
913
1080
|
withTypeExpression(typeExpression: TypeTree | null): ObjectBindingDeclarations;
|
|
914
1081
|
private readonly _bindings;
|
|
915
|
-
get bindings():
|
|
916
|
-
withBindings(bindings:
|
|
1082
|
+
get bindings(): J[];
|
|
1083
|
+
withBindings(bindings: J[]): ObjectBindingDeclarations;
|
|
917
1084
|
private readonly _initializer;
|
|
918
1085
|
get initializer(): Expression | null;
|
|
919
1086
|
withInitializer(initializer: Expression | null): ObjectBindingDeclarations;
|
|
@@ -921,8 +1088,8 @@ export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations
|
|
|
921
1088
|
get type(): JavaType | null;
|
|
922
1089
|
withType(type: JavaType): ObjectBindingDeclarations;
|
|
923
1090
|
get padding(): {
|
|
924
|
-
readonly bindings: JContainer<
|
|
925
|
-
withBindings(bindings: JContainer<
|
|
1091
|
+
readonly bindings: JContainer<J>;
|
|
1092
|
+
withBindings(bindings: JContainer<J>): ObjectBindingDeclarations;
|
|
926
1093
|
readonly initializer: JLeftPadded<Expression> | null;
|
|
927
1094
|
withInitializer(initializer: JLeftPadded<Expression> | null): ObjectBindingDeclarations;
|
|
928
1095
|
};
|
|
@@ -930,7 +1097,7 @@ export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations
|
|
|
930
1097
|
declare const PropertyAssignment_base: ((abstract new (...args: any[]) => {
|
|
931
1098
|
readonly prefix: Space;
|
|
932
1099
|
withPrefix(prefix: Space): JS;
|
|
933
|
-
readonly id:
|
|
1100
|
+
readonly id: UUID;
|
|
934
1101
|
withId(id: UUID): JS;
|
|
935
1102
|
readonly markers: Markers;
|
|
936
1103
|
withMarkers(markers: Markers): JS;
|
|
@@ -978,7 +1145,7 @@ export declare class PropertyAssignment extends PropertyAssignment_base implemen
|
|
|
978
1145
|
declare const SatisfiesExpression_base: ((abstract new (...args: any[]) => {
|
|
979
1146
|
readonly prefix: Space;
|
|
980
1147
|
withPrefix(prefix: Space): JS;
|
|
981
|
-
readonly id:
|
|
1148
|
+
readonly id: UUID;
|
|
982
1149
|
withId(id: UUID): JS;
|
|
983
1150
|
readonly markers: Markers;
|
|
984
1151
|
withMarkers(markers: Markers): JS;
|
|
@@ -1027,7 +1194,7 @@ export declare class SatisfiesExpression extends SatisfiesExpression_base implem
|
|
|
1027
1194
|
declare const ScopedVariableDeclarations_base: ((abstract new (...args: any[]) => {
|
|
1028
1195
|
readonly prefix: Space;
|
|
1029
1196
|
withPrefix(prefix: Space): JS;
|
|
1030
|
-
readonly id:
|
|
1197
|
+
readonly id: UUID;
|
|
1031
1198
|
withId(id: UUID): JS;
|
|
1032
1199
|
readonly markers: Markers;
|
|
1033
1200
|
withMarkers(markers: Markers): JS;
|
|
@@ -1085,7 +1252,7 @@ export declare namespace ScopedVariableDeclarations {
|
|
|
1085
1252
|
declare const TaggedTemplateExpression_base: ((abstract new (...args: any[]) => {
|
|
1086
1253
|
readonly prefix: Space;
|
|
1087
1254
|
withPrefix(prefix: Space): JS;
|
|
1088
|
-
readonly id:
|
|
1255
|
+
readonly id: UUID;
|
|
1089
1256
|
withId(id: UUID): JS;
|
|
1090
1257
|
readonly markers: Markers;
|
|
1091
1258
|
withMarkers(markers: Markers): JS;
|
|
@@ -1139,7 +1306,7 @@ export declare class TaggedTemplateExpression extends TaggedTemplateExpression_b
|
|
|
1139
1306
|
declare const TemplateExpression_base: ((abstract new (...args: any[]) => {
|
|
1140
1307
|
readonly prefix: Space;
|
|
1141
1308
|
withPrefix(prefix: Space): JS;
|
|
1142
|
-
readonly id:
|
|
1309
|
+
readonly id: UUID;
|
|
1143
1310
|
withId(id: UUID): JS;
|
|
1144
1311
|
readonly markers: Markers;
|
|
1145
1312
|
withMarkers(markers: Markers): JS;
|
|
@@ -1159,7 +1326,7 @@ declare const TemplateExpression_base: ((abstract new (...args: any[]) => {
|
|
|
1159
1326
|
isJava: boolean;
|
|
1160
1327
|
isJavaScript: boolean;
|
|
1161
1328
|
}) & ObjectConstructor;
|
|
1162
|
-
export declare class TemplateExpression extends TemplateExpression_base implements Statement, Expression {
|
|
1329
|
+
export declare class TemplateExpression extends TemplateExpression_base implements Statement, Expression, TypeTree {
|
|
1163
1330
|
constructor(id: UUID, prefix: Space, markers: Markers, head: Java.Literal, templateSpans: JRightPadded<TemplateExpression.TemplateSpan>[], _type: JavaType | null);
|
|
1164
1331
|
private readonly _id;
|
|
1165
1332
|
get id(): UUID;
|
|
@@ -1189,7 +1356,7 @@ export declare namespace TemplateExpression {
|
|
|
1189
1356
|
const TemplateSpan_base: ((abstract new (...args: any[]) => {
|
|
1190
1357
|
readonly prefix: Space;
|
|
1191
1358
|
withPrefix(prefix: Space): JS;
|
|
1192
|
-
readonly id:
|
|
1359
|
+
readonly id: UUID;
|
|
1193
1360
|
withId(id: UUID): JS;
|
|
1194
1361
|
readonly markers: Markers;
|
|
1195
1362
|
withMarkers(markers: Markers): JS;
|
|
@@ -1233,7 +1400,7 @@ export declare namespace TemplateExpression {
|
|
|
1233
1400
|
declare const Tuple_base: ((abstract new (...args: any[]) => {
|
|
1234
1401
|
readonly prefix: Space;
|
|
1235
1402
|
withPrefix(prefix: Space): JS;
|
|
1236
|
-
readonly id:
|
|
1403
|
+
readonly id: UUID;
|
|
1237
1404
|
withId(id: UUID): JS;
|
|
1238
1405
|
readonly markers: Markers;
|
|
1239
1406
|
withMarkers(markers: Markers): JS;
|
|
@@ -1279,7 +1446,7 @@ export declare class Tuple extends Tuple_base implements Expression, TypeTree {
|
|
|
1279
1446
|
declare const TypeDeclaration_base: ((abstract new (...args: any[]) => {
|
|
1280
1447
|
readonly prefix: Space;
|
|
1281
1448
|
withPrefix(prefix: Space): JS;
|
|
1282
|
-
readonly id:
|
|
1449
|
+
readonly id: UUID;
|
|
1283
1450
|
withId(id: UUID): JS;
|
|
1284
1451
|
readonly markers: Markers;
|
|
1285
1452
|
withMarkers(markers: Markers): JS;
|
|
@@ -1336,7 +1503,7 @@ export declare class TypeDeclaration extends TypeDeclaration_base implements Sta
|
|
|
1336
1503
|
declare const TypeOf_base: ((abstract new (...args: any[]) => {
|
|
1337
1504
|
readonly prefix: Space;
|
|
1338
1505
|
withPrefix(prefix: Space): JS;
|
|
1339
|
-
readonly id:
|
|
1506
|
+
readonly id: UUID;
|
|
1340
1507
|
withId(id: UUID): JS;
|
|
1341
1508
|
readonly markers: Markers;
|
|
1342
1509
|
withMarkers(markers: Markers): JS;
|
|
@@ -1378,7 +1545,7 @@ export declare class TypeOf extends TypeOf_base implements Expression {
|
|
|
1378
1545
|
declare const TypeQuery_base: ((abstract new (...args: any[]) => {
|
|
1379
1546
|
readonly prefix: Space;
|
|
1380
1547
|
withPrefix(prefix: Space): JS;
|
|
1381
|
-
readonly id:
|
|
1548
|
+
readonly id: UUID;
|
|
1382
1549
|
withId(id: UUID): JS;
|
|
1383
1550
|
readonly markers: Markers;
|
|
1384
1551
|
withMarkers(markers: Markers): JS;
|
|
@@ -1420,7 +1587,7 @@ export declare class TypeQuery extends TypeQuery_base implements Expression, Typ
|
|
|
1420
1587
|
declare const TypeOperator_base: ((abstract new (...args: any[]) => {
|
|
1421
1588
|
readonly prefix: Space;
|
|
1422
1589
|
withPrefix(prefix: Space): JS;
|
|
1423
|
-
readonly id:
|
|
1590
|
+
readonly id: UUID;
|
|
1424
1591
|
withId(id: UUID): JS;
|
|
1425
1592
|
readonly markers: Markers;
|
|
1426
1593
|
withMarkers(markers: Markers): JS;
|
|
@@ -1468,13 +1635,14 @@ export declare class TypeOperator extends TypeOperator_base implements Expressio
|
|
|
1468
1635
|
export declare namespace TypeOperator {
|
|
1469
1636
|
enum Type {
|
|
1470
1637
|
ReadOnly = 0,
|
|
1471
|
-
KeyOf = 1
|
|
1638
|
+
KeyOf = 1,
|
|
1639
|
+
Unique = 2
|
|
1472
1640
|
}
|
|
1473
1641
|
}
|
|
1474
1642
|
declare const TypePredicate_base: ((abstract new (...args: any[]) => {
|
|
1475
1643
|
readonly prefix: Space;
|
|
1476
1644
|
withPrefix(prefix: Space): JS;
|
|
1477
|
-
readonly id:
|
|
1645
|
+
readonly id: UUID;
|
|
1478
1646
|
withId(id: UUID): JS;
|
|
1479
1647
|
readonly markers: Markers;
|
|
1480
1648
|
withMarkers(markers: Markers): JS;
|
|
@@ -1528,7 +1696,7 @@ export declare class TypePredicate extends TypePredicate_base implements Express
|
|
|
1528
1696
|
declare const Unary_base: ((abstract new (...args: any[]) => {
|
|
1529
1697
|
readonly prefix: Space;
|
|
1530
1698
|
withPrefix(prefix: Space): JS;
|
|
1531
|
-
readonly id:
|
|
1699
|
+
readonly id: UUID;
|
|
1532
1700
|
withId(id: UUID): JS;
|
|
1533
1701
|
readonly markers: Markers;
|
|
1534
1702
|
withMarkers(markers: Markers): JS;
|
|
@@ -1580,13 +1748,14 @@ export declare namespace Unary {
|
|
|
1580
1748
|
Optional = 1,
|
|
1581
1749
|
Exclamation = 2,
|
|
1582
1750
|
QuestionDot = 3,
|
|
1583
|
-
QuestionDotWithDot = 4
|
|
1751
|
+
QuestionDotWithDot = 4,
|
|
1752
|
+
Asterisk = 5
|
|
1584
1753
|
}
|
|
1585
1754
|
}
|
|
1586
1755
|
declare const Union_base: ((abstract new (...args: any[]) => {
|
|
1587
1756
|
readonly prefix: Space;
|
|
1588
1757
|
withPrefix(prefix: Space): JS;
|
|
1589
|
-
readonly id:
|
|
1758
|
+
readonly id: UUID;
|
|
1590
1759
|
withId(id: UUID): JS;
|
|
1591
1760
|
readonly markers: Markers;
|
|
1592
1761
|
withMarkers(markers: Markers): JS;
|
|
@@ -1632,7 +1801,7 @@ export declare class Union extends Union_base implements Expression, TypeTree {
|
|
|
1632
1801
|
declare const Intersection_base: ((abstract new (...args: any[]) => {
|
|
1633
1802
|
readonly prefix: Space;
|
|
1634
1803
|
withPrefix(prefix: Space): JS;
|
|
1635
|
-
readonly id:
|
|
1804
|
+
readonly id: UUID;
|
|
1636
1805
|
withId(id: UUID): JS;
|
|
1637
1806
|
readonly markers: Markers;
|
|
1638
1807
|
withMarkers(markers: Markers): JS;
|
|
@@ -1678,7 +1847,7 @@ export declare class Intersection extends Intersection_base implements Expressio
|
|
|
1678
1847
|
declare const Void_base: ((abstract new (...args: any[]) => {
|
|
1679
1848
|
readonly prefix: Space;
|
|
1680
1849
|
withPrefix(prefix: Space): JS;
|
|
1681
|
-
readonly id:
|
|
1850
|
+
readonly id: UUID;
|
|
1682
1851
|
withId(id: UUID): JS;
|
|
1683
1852
|
readonly markers: Markers;
|
|
1684
1853
|
withMarkers(markers: Markers): JS;
|
|
@@ -1719,7 +1888,7 @@ export declare class Void extends Void_base implements Expression, Statement {
|
|
|
1719
1888
|
declare const Yield_base: ((abstract new (...args: any[]) => {
|
|
1720
1889
|
readonly prefix: Space;
|
|
1721
1890
|
withPrefix(prefix: Space): JS;
|
|
1722
|
-
readonly id:
|
|
1891
|
+
readonly id: UUID;
|
|
1723
1892
|
withId(id: UUID): JS;
|
|
1724
1893
|
readonly markers: Markers;
|
|
1725
1894
|
withMarkers(markers: Markers): JS;
|
|
@@ -1740,7 +1909,7 @@ declare const Yield_base: ((abstract new (...args: any[]) => {
|
|
|
1740
1909
|
isJavaScript: boolean;
|
|
1741
1910
|
}) & ObjectConstructor;
|
|
1742
1911
|
export declare class Yield extends Yield_base implements Expression {
|
|
1743
|
-
constructor(id: UUID, prefix: Space, markers: Markers, delegated: boolean
|
|
1912
|
+
constructor(id: UUID, prefix: Space, markers: Markers, delegated: JLeftPadded<boolean>, expression: Expression | null, _type: JavaType | null);
|
|
1744
1913
|
private readonly _id;
|
|
1745
1914
|
get id(): UUID;
|
|
1746
1915
|
withId(id: UUID): Yield;
|
|
@@ -1760,11 +1929,15 @@ export declare class Yield extends Yield_base implements Expression {
|
|
|
1760
1929
|
get type(): JavaType | null;
|
|
1761
1930
|
withType(_type: JavaType | null): Yield;
|
|
1762
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
|
+
};
|
|
1763
1936
|
}
|
|
1764
1937
|
declare const TypeInfo_base: ((abstract new (...args: any[]) => {
|
|
1765
1938
|
readonly prefix: Space;
|
|
1766
1939
|
withPrefix(prefix: Space): JS;
|
|
1767
|
-
readonly id:
|
|
1940
|
+
readonly id: UUID;
|
|
1768
1941
|
withId(id: UUID): JS;
|
|
1769
1942
|
readonly markers: Markers;
|
|
1770
1943
|
withMarkers(markers: Markers): JS;
|
|
@@ -1805,7 +1978,7 @@ export declare class TypeInfo extends TypeInfo_base implements Expression, TypeT
|
|
|
1805
1978
|
declare const JSVariableDeclarations_base: ((abstract new (...args: any[]) => {
|
|
1806
1979
|
readonly prefix: Space;
|
|
1807
1980
|
withPrefix(prefix: Space): JS;
|
|
1808
|
-
readonly id:
|
|
1981
|
+
readonly id: UUID;
|
|
1809
1982
|
withId(id: UUID): JS;
|
|
1810
1983
|
readonly markers: Markers;
|
|
1811
1984
|
withMarkers(markers: Markers): JS;
|
|
@@ -1863,7 +2036,7 @@ export declare namespace JSVariableDeclarations {
|
|
|
1863
2036
|
const JSNamedVariable_base: ((abstract new (...args: any[]) => {
|
|
1864
2037
|
readonly prefix: Space;
|
|
1865
2038
|
withPrefix(prefix: Space): JS;
|
|
1866
|
-
readonly id:
|
|
2039
|
+
readonly id: UUID;
|
|
1867
2040
|
withId(id: UUID): JS;
|
|
1868
2041
|
readonly markers: Markers;
|
|
1869
2042
|
withMarkers(markers: Markers): JS;
|
|
@@ -1921,7 +2094,7 @@ export declare namespace JSVariableDeclarations {
|
|
|
1921
2094
|
declare const JSMethodDeclaration_base: ((abstract new (...args: any[]) => {
|
|
1922
2095
|
readonly prefix: Space;
|
|
1923
2096
|
withPrefix(prefix: Space): JS;
|
|
1924
|
-
readonly id:
|
|
2097
|
+
readonly id: UUID;
|
|
1925
2098
|
withId(id: UUID): JS;
|
|
1926
2099
|
readonly markers: Markers;
|
|
1927
2100
|
withMarkers(markers: Markers): JS;
|
|
@@ -1997,7 +2170,7 @@ export declare class JSMethodDeclaration extends JSMethodDeclaration_base implem
|
|
|
1997
2170
|
declare const JSForOfLoop_base: ((abstract new (...args: any[]) => {
|
|
1998
2171
|
readonly prefix: Space;
|
|
1999
2172
|
withPrefix(prefix: Space): JS;
|
|
2000
|
-
readonly id:
|
|
2173
|
+
readonly id: UUID;
|
|
2001
2174
|
withId(id: UUID): JS;
|
|
2002
2175
|
readonly markers: Markers;
|
|
2003
2176
|
withMarkers(markers: Markers): JS;
|
|
@@ -2048,7 +2221,7 @@ export declare class JSForOfLoop extends JSForOfLoop_base implements Loop {
|
|
|
2048
2221
|
declare const JSForInLoop_base: ((abstract new (...args: any[]) => {
|
|
2049
2222
|
readonly prefix: Space;
|
|
2050
2223
|
withPrefix(prefix: Space): JS;
|
|
2051
|
-
readonly id:
|
|
2224
|
+
readonly id: UUID;
|
|
2052
2225
|
withId(id: UUID): JS;
|
|
2053
2226
|
readonly markers: Markers;
|
|
2054
2227
|
withMarkers(markers: Markers): JS;
|
|
@@ -2094,7 +2267,7 @@ export declare class JSForInLoop extends JSForInLoop_base implements Loop {
|
|
|
2094
2267
|
declare const JSForInOfLoopControl_base: ((abstract new (...args: any[]) => {
|
|
2095
2268
|
readonly prefix: Space;
|
|
2096
2269
|
withPrefix(prefix: Space): JS;
|
|
2097
|
-
readonly id:
|
|
2270
|
+
readonly id: UUID;
|
|
2098
2271
|
withId(id: UUID): JS;
|
|
2099
2272
|
readonly markers: Markers;
|
|
2100
2273
|
withMarkers(markers: Markers): JS;
|
|
@@ -2142,7 +2315,7 @@ export declare class JSForInOfLoopControl extends JSForInOfLoopControl_base {
|
|
|
2142
2315
|
declare const NamespaceDeclaration_base: ((abstract new (...args: any[]) => {
|
|
2143
2316
|
readonly prefix: Space;
|
|
2144
2317
|
withPrefix(prefix: Space): JS;
|
|
2145
|
-
readonly id:
|
|
2318
|
+
readonly id: UUID;
|
|
2146
2319
|
withId(id: UUID): JS;
|
|
2147
2320
|
readonly markers: Markers;
|
|
2148
2321
|
withMarkers(markers: Markers): JS;
|
|
@@ -2202,7 +2375,7 @@ export declare namespace NamespaceDeclaration {
|
|
|
2202
2375
|
declare const FunctionDeclaration_base: ((abstract new (...args: any[]) => {
|
|
2203
2376
|
readonly prefix: Space;
|
|
2204
2377
|
withPrefix(prefix: Space): JS;
|
|
2205
|
-
readonly id:
|
|
2378
|
+
readonly id: UUID;
|
|
2206
2379
|
withId(id: UUID): JS;
|
|
2207
2380
|
readonly markers: Markers;
|
|
2208
2381
|
withMarkers(markers: Markers): JS;
|
|
@@ -2223,7 +2396,7 @@ declare const FunctionDeclaration_base: ((abstract new (...args: any[]) => {
|
|
|
2223
2396
|
isJavaScript: boolean;
|
|
2224
2397
|
}) & ObjectConstructor;
|
|
2225
2398
|
export declare class FunctionDeclaration extends FunctionDeclaration_base implements Statement, Expression, TypedTree {
|
|
2226
|
-
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, _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);
|
|
2227
2400
|
private readonly _id;
|
|
2228
2401
|
get id(): UUID;
|
|
2229
2402
|
withId(id: UUID): FunctionDeclaration;
|
|
@@ -2252,8 +2425,8 @@ export declare class FunctionDeclaration extends FunctionDeclaration_base implem
|
|
|
2252
2425
|
get returnTypeExpression(): TypeTree | null;
|
|
2253
2426
|
withReturnTypeExpression(returnTypeExpression: TypeTree | null): FunctionDeclaration;
|
|
2254
2427
|
private readonly _body;
|
|
2255
|
-
get body(): J;
|
|
2256
|
-
withBody(body: J): FunctionDeclaration;
|
|
2428
|
+
get body(): J | null;
|
|
2429
|
+
withBody(body: J | null): FunctionDeclaration;
|
|
2257
2430
|
private readonly _type;
|
|
2258
2431
|
get type(): JavaType | null;
|
|
2259
2432
|
withType(_type: JavaType | null): FunctionDeclaration;
|
|
@@ -2270,7 +2443,7 @@ export declare class FunctionDeclaration extends FunctionDeclaration_base implem
|
|
|
2270
2443
|
declare const TypeLiteral_base: ((abstract new (...args: any[]) => {
|
|
2271
2444
|
readonly prefix: Space;
|
|
2272
2445
|
withPrefix(prefix: Space): JS;
|
|
2273
|
-
readonly id:
|
|
2446
|
+
readonly id: UUID;
|
|
2274
2447
|
withId(id: UUID): JS;
|
|
2275
2448
|
readonly markers: Markers;
|
|
2276
2449
|
withMarkers(markers: Markers): JS;
|
|
@@ -2312,7 +2485,7 @@ export declare class TypeLiteral extends TypeLiteral_base implements Expression,
|
|
|
2312
2485
|
declare const IndexSignatureDeclaration_base: ((abstract new (...args: any[]) => {
|
|
2313
2486
|
readonly prefix: Space;
|
|
2314
2487
|
withPrefix(prefix: Space): JS;
|
|
2315
|
-
readonly id:
|
|
2488
|
+
readonly id: UUID;
|
|
2316
2489
|
withId(id: UUID): JS;
|
|
2317
2490
|
readonly markers: Markers;
|
|
2318
2491
|
withMarkers(markers: Markers): JS;
|
|
@@ -2366,7 +2539,7 @@ export declare class IndexSignatureDeclaration extends IndexSignatureDeclaration
|
|
|
2366
2539
|
declare const ArrayBindingPattern_base: ((abstract new (...args: any[]) => {
|
|
2367
2540
|
readonly prefix: Space;
|
|
2368
2541
|
withPrefix(prefix: Space): JS;
|
|
2369
|
-
readonly id:
|
|
2542
|
+
readonly id: UUID;
|
|
2370
2543
|
withId(id: UUID): JS;
|
|
2371
2544
|
readonly markers: Markers;
|
|
2372
2545
|
withMarkers(markers: Markers): JS;
|
|
@@ -2412,7 +2585,7 @@ export declare class ArrayBindingPattern extends ArrayBindingPattern_base implem
|
|
|
2412
2585
|
declare const BindingElement_base: ((abstract new (...args: any[]) => {
|
|
2413
2586
|
readonly prefix: Space;
|
|
2414
2587
|
withPrefix(prefix: Space): JS;
|
|
2415
|
-
readonly id:
|
|
2588
|
+
readonly id: UUID;
|
|
2416
2589
|
withId(id: UUID): JS;
|
|
2417
2590
|
readonly markers: Markers;
|
|
2418
2591
|
withMarkers(markers: Markers): JS;
|
|
@@ -2468,7 +2641,7 @@ export declare class BindingElement extends BindingElement_base implements State
|
|
|
2468
2641
|
declare const ExportDeclaration_base: ((abstract new (...args: any[]) => {
|
|
2469
2642
|
readonly prefix: Space;
|
|
2470
2643
|
withPrefix(prefix: Space): JS;
|
|
2471
|
-
readonly id:
|
|
2644
|
+
readonly id: UUID;
|
|
2472
2645
|
withId(id: UUID): JS;
|
|
2473
2646
|
readonly markers: Markers;
|
|
2474
2647
|
withMarkers(markers: Markers): JS;
|
|
@@ -2522,7 +2695,7 @@ export declare class ExportDeclaration extends ExportDeclaration_base implements
|
|
|
2522
2695
|
declare const ExportAssignment_base: ((abstract new (...args: any[]) => {
|
|
2523
2696
|
readonly prefix: Space;
|
|
2524
2697
|
withPrefix(prefix: Space): JS;
|
|
2525
|
-
readonly id:
|
|
2698
|
+
readonly id: UUID;
|
|
2526
2699
|
withId(id: UUID): JS;
|
|
2527
2700
|
readonly markers: Markers;
|
|
2528
2701
|
withMarkers(markers: Markers): JS;
|
|
@@ -2571,7 +2744,7 @@ export declare class ExportAssignment extends ExportAssignment_base implements S
|
|
|
2571
2744
|
declare const NamedExports_base: ((abstract new (...args: any[]) => {
|
|
2572
2745
|
readonly prefix: Space;
|
|
2573
2746
|
withPrefix(prefix: Space): JS;
|
|
2574
|
-
readonly id:
|
|
2747
|
+
readonly id: UUID;
|
|
2575
2748
|
withId(id: UUID): JS;
|
|
2576
2749
|
readonly markers: Markers;
|
|
2577
2750
|
withMarkers(markers: Markers): JS;
|
|
@@ -2617,7 +2790,7 @@ export declare class NamedExports extends NamedExports_base implements Expressio
|
|
|
2617
2790
|
declare const ExportSpecifier_base: ((abstract new (...args: any[]) => {
|
|
2618
2791
|
readonly prefix: Space;
|
|
2619
2792
|
withPrefix(prefix: Space): JS;
|
|
2620
|
-
readonly id:
|
|
2793
|
+
readonly id: UUID;
|
|
2621
2794
|
withId(id: UUID): JS;
|
|
2622
2795
|
readonly markers: Markers;
|
|
2623
2796
|
withMarkers(markers: Markers): JS;
|
|
@@ -2666,7 +2839,7 @@ export declare class ExportSpecifier extends ExportSpecifier_base implements Exp
|
|
|
2666
2839
|
declare const IndexedAccessType_base: ((abstract new (...args: any[]) => {
|
|
2667
2840
|
readonly prefix: Space;
|
|
2668
2841
|
withPrefix(prefix: Space): JS;
|
|
2669
|
-
readonly id:
|
|
2842
|
+
readonly id: UUID;
|
|
2670
2843
|
withId(id: UUID): JS;
|
|
2671
2844
|
readonly markers: Markers;
|
|
2672
2845
|
withMarkers(markers: Markers): JS;
|
|
@@ -2687,7 +2860,7 @@ declare const IndexedAccessType_base: ((abstract new (...args: any[]) => {
|
|
|
2687
2860
|
isJavaScript: boolean;
|
|
2688
2861
|
}) & ObjectConstructor;
|
|
2689
2862
|
export declare class IndexedAccessType extends IndexedAccessType_base implements Expression, TypeTree {
|
|
2690
|
-
constructor(id: UUID, prefix: Space, markers: Markers, objectType: TypeTree, indexType:
|
|
2863
|
+
constructor(id: UUID, prefix: Space, markers: Markers, objectType: TypeTree, indexType: TypeTree, _type: JavaType | null);
|
|
2691
2864
|
private readonly _id;
|
|
2692
2865
|
get id(): UUID;
|
|
2693
2866
|
withId(id: UUID): IndexedAccessType;
|
|
@@ -2707,16 +2880,12 @@ export declare class IndexedAccessType extends IndexedAccessType_base implements
|
|
|
2707
2880
|
get type(): JavaType | null;
|
|
2708
2881
|
withType(_type: JavaType | null): IndexedAccessType;
|
|
2709
2882
|
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
2710
|
-
get padding(): {
|
|
2711
|
-
readonly indexType: JRightPadded<TypeTree>;
|
|
2712
|
-
withIndexType(indexType: JRightPadded<TypeTree>): IndexedAccessType;
|
|
2713
|
-
};
|
|
2714
2883
|
}
|
|
2715
2884
|
export declare namespace IndexedAccessType {
|
|
2716
2885
|
const IndexType_base: ((abstract new (...args: any[]) => {
|
|
2717
2886
|
readonly prefix: Space;
|
|
2718
2887
|
withPrefix(prefix: Space): JS;
|
|
2719
|
-
readonly id:
|
|
2888
|
+
readonly id: UUID;
|
|
2720
2889
|
withId(id: UUID): JS;
|
|
2721
2890
|
readonly markers: Markers;
|
|
2722
2891
|
withMarkers(markers: Markers): JS;
|
|
@@ -2764,7 +2933,7 @@ export declare namespace IndexedAccessType {
|
|
|
2764
2933
|
declare const JsAssignmentOperation_base: ((abstract new (...args: any[]) => {
|
|
2765
2934
|
readonly prefix: Space;
|
|
2766
2935
|
withPrefix(prefix: Space): JS;
|
|
2767
|
-
readonly id:
|
|
2936
|
+
readonly id: UUID;
|
|
2768
2937
|
withId(id: UUID): JS;
|
|
2769
2938
|
readonly markers: Markers;
|
|
2770
2939
|
withMarkers(markers: Markers): JS;
|
|
@@ -2817,8 +2986,50 @@ export declare namespace JsAssignmentOperation {
|
|
|
2817
2986
|
enum Type {
|
|
2818
2987
|
QuestionQuestion = 0,
|
|
2819
2988
|
And = 1,
|
|
2820
|
-
Or = 2
|
|
2989
|
+
Or = 2,
|
|
2990
|
+
Power = 3
|
|
2821
2991
|
}
|
|
2822
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
|
+
}
|
|
2823
3034
|
export {};
|
|
2824
3035
|
//# sourceMappingURL=tree.d.ts.map
|