@openrewrite/rewrite 0.21.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 +45 -43
- package/dist/src/javascript/parser.d.ts.map +1 -1
- package/dist/src/javascript/parser.js +193 -107
- 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 +153 -20
- 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 +113 -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 +77 -40
- package/dist/src/javascript/tree/support_types.d.ts.map +1 -1
- package/dist/src/javascript/tree/support_types.js +75 -38
- package/dist/src/javascript/tree/support_types.js.map +1 -1
- package/dist/src/javascript/tree/tree.d.ts +636 -88
- package/dist/src/javascript/tree/tree.d.ts.map +1 -1
- package/dist/src/javascript/tree/tree.js +922 -175
- package/dist/src/javascript/tree/tree.js.map +1 -1
- package/dist/src/javascript/visitor.d.ts +13 -2
- package/dist/src/javascript/visitor.d.ts.map +1 -1
- package/dist/src/javascript/visitor.js +166 -15
- 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 } 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;
|
|
@@ -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[], parameters: Java.Lambda.Parameters, returnTypeExpression: TypeTree | null, arrow: Space, body: J, _type: JavaType | null);
|
|
169
|
+
constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Java.Annotation[], modifiers: Java.Modifier[], typeParameters: Java.TypeParameters | null, parameters: Java.Lambda.Parameters, returnTypeExpression: TypeTree | null, arrow: Space, body: J, _type: JavaType | null);
|
|
170
170
|
private readonly _id;
|
|
171
171
|
get id(): UUID;
|
|
172
172
|
withId(id: UUID): ArrowFunction;
|
|
@@ -182,6 +182,9 @@ export declare class ArrowFunction extends ArrowFunction_base implements Stateme
|
|
|
182
182
|
private readonly _modifiers;
|
|
183
183
|
get modifiers(): Java.Modifier[];
|
|
184
184
|
withModifiers(modifiers: Java.Modifier[]): ArrowFunction;
|
|
185
|
+
private readonly _typeParameters;
|
|
186
|
+
get typeParameters(): Java.TypeParameters | null;
|
|
187
|
+
withTypeParameters(typeParameters: Java.TypeParameters | null): ArrowFunction;
|
|
185
188
|
private readonly _parameters;
|
|
186
189
|
get parameters(): Java.Lambda.Parameters;
|
|
187
190
|
withParameters(parameters: Java.Lambda.Parameters): ArrowFunction;
|
|
@@ -409,7 +412,7 @@ declare const FunctionType_base: ((abstract new (...args: any[]) => {
|
|
|
409
412
|
isJavaScript: boolean;
|
|
410
413
|
}) & ObjectConstructor;
|
|
411
414
|
export declare class FunctionType extends FunctionType_base implements Expression, TypeTree {
|
|
412
|
-
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);
|
|
413
416
|
private readonly _id;
|
|
414
417
|
get id(): UUID;
|
|
415
418
|
withId(id: UUID): FunctionType;
|
|
@@ -419,6 +422,9 @@ export declare class FunctionType extends FunctionType_base implements Expressio
|
|
|
419
422
|
private readonly _markers;
|
|
420
423
|
get markers(): Markers;
|
|
421
424
|
withMarkers(markers: Markers): FunctionType;
|
|
425
|
+
private readonly _constructorType;
|
|
426
|
+
get constructorType(): boolean;
|
|
427
|
+
withConstructorType(constructorType: boolean): FunctionType;
|
|
422
428
|
private readonly _parameters;
|
|
423
429
|
get parameters(): Statement[];
|
|
424
430
|
withParameters(parameters: Statement[]): FunctionType;
|
|
@@ -433,6 +439,8 @@ export declare class FunctionType extends FunctionType_base implements Expressio
|
|
|
433
439
|
withType(_type: JavaType | null): FunctionType;
|
|
434
440
|
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
435
441
|
get padding(): {
|
|
442
|
+
readonly constructorType: JRightPadded<boolean>;
|
|
443
|
+
withConstructorType(constructorType: JRightPadded<boolean>): FunctionType;
|
|
436
444
|
readonly parameters: JContainer<Statement>;
|
|
437
445
|
withParameters(parameters: JContainer<Statement>): FunctionType;
|
|
438
446
|
};
|
|
@@ -461,7 +469,7 @@ declare const JsImport_base: ((abstract new (...args: any[]) => {
|
|
|
461
469
|
isJavaScript: boolean;
|
|
462
470
|
}) & ObjectConstructor;
|
|
463
471
|
export declare class JsImport extends JsImport_base implements Statement {
|
|
464
|
-
constructor(id: UUID, prefix: Space, markers: Markers, name: JRightPadded<Java.Identifier> | null, imports: JContainer<Expression> | null, _from: Space | null, target: Java.Literal | null, initializer: JLeftPadded<Expression> | null);
|
|
472
|
+
constructor(id: UUID, prefix: Space, markers: Markers, name: JRightPadded<Java.Identifier> | null, importType: JLeftPadded<boolean>, imports: JContainer<Expression> | null, _from: Space | null, target: Java.Literal | null, initializer: JLeftPadded<Expression> | null);
|
|
465
473
|
private readonly _id;
|
|
466
474
|
get id(): UUID;
|
|
467
475
|
withId(id: UUID): JsImport;
|
|
@@ -474,6 +482,9 @@ export declare class JsImport extends JsImport_base implements Statement {
|
|
|
474
482
|
private readonly _name;
|
|
475
483
|
get name(): Java.Identifier | null;
|
|
476
484
|
withName(name: Java.Identifier | null): JsImport;
|
|
485
|
+
private readonly _importType;
|
|
486
|
+
get importType(): boolean;
|
|
487
|
+
withImportType(importType: boolean): JsImport;
|
|
477
488
|
private readonly _imports;
|
|
478
489
|
get imports(): Expression[] | null;
|
|
479
490
|
withImports(imports: Expression[] | null): JsImport;
|
|
@@ -490,12 +501,63 @@ export declare class JsImport extends JsImport_base implements Statement {
|
|
|
490
501
|
get padding(): {
|
|
491
502
|
readonly name: JRightPadded<Java.Identifier> | null;
|
|
492
503
|
withName(name: JRightPadded<Java.Identifier> | null): JsImport;
|
|
504
|
+
readonly importType: JLeftPadded<boolean>;
|
|
505
|
+
withImportType(importType: JLeftPadded<boolean>): JsImport;
|
|
493
506
|
readonly imports: JContainer<Expression> | null;
|
|
494
507
|
withImports(imports: JContainer<Expression> | null): JsImport;
|
|
495
508
|
readonly initializer: JLeftPadded<Expression> | null;
|
|
496
509
|
withInitializer(initializer: JLeftPadded<Expression> | null): JsImport;
|
|
497
510
|
};
|
|
498
511
|
}
|
|
512
|
+
declare const JsImportSpecifier_base: ((abstract new (...args: any[]) => {
|
|
513
|
+
readonly prefix: Space;
|
|
514
|
+
withPrefix(prefix: Space): JS;
|
|
515
|
+
readonly id: Uint8Array;
|
|
516
|
+
withId(id: UUID): JS;
|
|
517
|
+
readonly markers: Markers;
|
|
518
|
+
withMarkers(markers: Markers): JS;
|
|
519
|
+
isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
|
|
520
|
+
accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
|
|
521
|
+
acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
|
|
522
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
523
|
+
constructor: Function;
|
|
524
|
+
toString(): string;
|
|
525
|
+
toLocaleString(): string;
|
|
526
|
+
valueOf(): Object;
|
|
527
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
528
|
+
isPrototypeOf(v: Object): boolean;
|
|
529
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
530
|
+
}) & {
|
|
531
|
+
isTree: boolean;
|
|
532
|
+
isJava: boolean;
|
|
533
|
+
isJavaScript: boolean;
|
|
534
|
+
}) & ObjectConstructor;
|
|
535
|
+
export declare class JsImportSpecifier extends JsImportSpecifier_base implements Expression, TypedTree {
|
|
536
|
+
constructor(id: UUID, prefix: Space, markers: Markers, importType: JLeftPadded<boolean>, specifier: Expression, _type: JavaType | null);
|
|
537
|
+
private readonly _id;
|
|
538
|
+
get id(): UUID;
|
|
539
|
+
withId(id: UUID): JsImportSpecifier;
|
|
540
|
+
private readonly _prefix;
|
|
541
|
+
get prefix(): Space;
|
|
542
|
+
withPrefix(prefix: Space): JsImportSpecifier;
|
|
543
|
+
private readonly _markers;
|
|
544
|
+
get markers(): Markers;
|
|
545
|
+
withMarkers(markers: Markers): JsImportSpecifier;
|
|
546
|
+
private readonly _importType;
|
|
547
|
+
get importType(): boolean;
|
|
548
|
+
withImportType(importType: boolean): JsImportSpecifier;
|
|
549
|
+
private readonly _specifier;
|
|
550
|
+
get specifier(): Expression;
|
|
551
|
+
withSpecifier(specifier: Expression): JsImportSpecifier;
|
|
552
|
+
private readonly _type;
|
|
553
|
+
get type(): JavaType | null;
|
|
554
|
+
withType(_type: JavaType | null): JsImportSpecifier;
|
|
555
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
556
|
+
get padding(): {
|
|
557
|
+
readonly importType: JLeftPadded<boolean>;
|
|
558
|
+
withImportType(importType: JLeftPadded<boolean>): JsImportSpecifier;
|
|
559
|
+
};
|
|
560
|
+
}
|
|
499
561
|
declare const JsBinary_base: ((abstract new (...args: any[]) => {
|
|
500
562
|
readonly prefix: Space;
|
|
501
563
|
withPrefix(prefix: Space): JS;
|
|
@@ -580,8 +642,8 @@ declare const ObjectBindingDeclarations_base: ((abstract new (...args: any[]) =>
|
|
|
580
642
|
isJava: boolean;
|
|
581
643
|
isJavaScript: boolean;
|
|
582
644
|
}) & ObjectConstructor;
|
|
583
|
-
export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations_base implements
|
|
584
|
-
constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Java.Annotation[], modifiers: Java.Modifier[], typeExpression: TypeTree | null, bindings: JContainer<
|
|
645
|
+
export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations_base implements Expression, TypedTree {
|
|
646
|
+
constructor(id: UUID, prefix: Space, markers: Markers, leadingAnnotations: Java.Annotation[], modifiers: Java.Modifier[], typeExpression: TypeTree | null, bindings: JContainer<BindingElement>, initializer: JLeftPadded<Expression> | null);
|
|
585
647
|
private readonly _id;
|
|
586
648
|
get id(): UUID;
|
|
587
649
|
withId(id: UUID): ObjectBindingDeclarations;
|
|
@@ -601,8 +663,8 @@ export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations
|
|
|
601
663
|
get typeExpression(): TypeTree | null;
|
|
602
664
|
withTypeExpression(typeExpression: TypeTree | null): ObjectBindingDeclarations;
|
|
603
665
|
private readonly _bindings;
|
|
604
|
-
get bindings():
|
|
605
|
-
withBindings(bindings:
|
|
666
|
+
get bindings(): BindingElement[];
|
|
667
|
+
withBindings(bindings: BindingElement[]): ObjectBindingDeclarations;
|
|
606
668
|
private readonly _initializer;
|
|
607
669
|
get initializer(): Expression | null;
|
|
608
670
|
withInitializer(initializer: Expression | null): ObjectBindingDeclarations;
|
|
@@ -610,77 +672,12 @@ export declare class ObjectBindingDeclarations extends ObjectBindingDeclarations
|
|
|
610
672
|
get type(): JavaType | null;
|
|
611
673
|
withType(type: JavaType): ObjectBindingDeclarations;
|
|
612
674
|
get padding(): {
|
|
613
|
-
readonly bindings: JContainer<
|
|
614
|
-
withBindings(bindings: JContainer<
|
|
675
|
+
readonly bindings: JContainer<BindingElement>;
|
|
676
|
+
withBindings(bindings: JContainer<BindingElement>): ObjectBindingDeclarations;
|
|
615
677
|
readonly initializer: JLeftPadded<Expression> | null;
|
|
616
678
|
withInitializer(initializer: JLeftPadded<Expression> | null): ObjectBindingDeclarations;
|
|
617
679
|
};
|
|
618
680
|
}
|
|
619
|
-
export declare namespace ObjectBindingDeclarations {
|
|
620
|
-
const Binding_base: ((abstract new (...args: any[]) => {
|
|
621
|
-
readonly prefix: Space;
|
|
622
|
-
withPrefix(prefix: Space): JS;
|
|
623
|
-
readonly id: Uint8Array;
|
|
624
|
-
withId(id: UUID): JS;
|
|
625
|
-
readonly markers: Markers;
|
|
626
|
-
withMarkers(markers: Markers): JS;
|
|
627
|
-
isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
|
|
628
|
-
accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
|
|
629
|
-
acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
|
|
630
|
-
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
631
|
-
constructor: Function;
|
|
632
|
-
toString(): string;
|
|
633
|
-
toLocaleString(): string;
|
|
634
|
-
valueOf(): Object;
|
|
635
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
636
|
-
isPrototypeOf(v: Object): boolean;
|
|
637
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
638
|
-
}) & {
|
|
639
|
-
isTree: boolean;
|
|
640
|
-
isJava: boolean;
|
|
641
|
-
isJavaScript: boolean;
|
|
642
|
-
}) & ObjectConstructor;
|
|
643
|
-
export class Binding extends Binding_base implements NameTree {
|
|
644
|
-
constructor(id: UUID, prefix: Space, markers: Markers, propertyName: JRightPadded<Java.Identifier> | null, name: Java.Identifier, dimensionsAfterName: JLeftPadded<Space>[], afterVararg: Space | null, initializer: JLeftPadded<Expression> | null, variableType: JavaType.Variable | null);
|
|
645
|
-
private readonly _id;
|
|
646
|
-
get id(): UUID;
|
|
647
|
-
withId(id: UUID): ObjectBindingDeclarations.Binding;
|
|
648
|
-
private readonly _prefix;
|
|
649
|
-
get prefix(): Space;
|
|
650
|
-
withPrefix(prefix: Space): ObjectBindingDeclarations.Binding;
|
|
651
|
-
private readonly _markers;
|
|
652
|
-
get markers(): Markers;
|
|
653
|
-
withMarkers(markers: Markers): ObjectBindingDeclarations.Binding;
|
|
654
|
-
private readonly _propertyName;
|
|
655
|
-
get propertyName(): Java.Identifier | null;
|
|
656
|
-
withPropertyName(propertyName: Java.Identifier | null): ObjectBindingDeclarations.Binding;
|
|
657
|
-
private readonly _name;
|
|
658
|
-
get name(): Java.Identifier;
|
|
659
|
-
withName(name: Java.Identifier): ObjectBindingDeclarations.Binding;
|
|
660
|
-
private readonly _dimensionsAfterName;
|
|
661
|
-
get dimensionsAfterName(): JLeftPadded<Space>[];
|
|
662
|
-
withDimensionsAfterName(dimensionsAfterName: JLeftPadded<Space>[]): ObjectBindingDeclarations.Binding;
|
|
663
|
-
private readonly _afterVararg;
|
|
664
|
-
get afterVararg(): Space | null;
|
|
665
|
-
withAfterVararg(afterVararg: Space | null): ObjectBindingDeclarations.Binding;
|
|
666
|
-
private readonly _initializer;
|
|
667
|
-
get initializer(): Expression | null;
|
|
668
|
-
withInitializer(initializer: Expression | null): ObjectBindingDeclarations.Binding;
|
|
669
|
-
private readonly _variableType;
|
|
670
|
-
get variableType(): JavaType.Variable | null;
|
|
671
|
-
withVariableType(variableType: JavaType.Variable | null): ObjectBindingDeclarations.Binding;
|
|
672
|
-
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
673
|
-
get type(): JavaType | null;
|
|
674
|
-
withType(type: JavaType): ObjectBindingDeclarations.Binding;
|
|
675
|
-
get padding(): {
|
|
676
|
-
readonly propertyName: JRightPadded<Java.Identifier> | null;
|
|
677
|
-
withPropertyName(propertyName: JRightPadded<Java.Identifier> | null): ObjectBindingDeclarations.Binding;
|
|
678
|
-
readonly initializer: JLeftPadded<Expression> | null;
|
|
679
|
-
withInitializer(initializer: JLeftPadded<Expression> | null): ObjectBindingDeclarations.Binding;
|
|
680
|
-
};
|
|
681
|
-
}
|
|
682
|
-
export {};
|
|
683
|
-
}
|
|
684
681
|
declare const PropertyAssignment_base: ((abstract new (...args: any[]) => {
|
|
685
682
|
readonly prefix: Space;
|
|
686
683
|
withPrefix(prefix: Space): JS;
|
|
@@ -705,7 +702,7 @@ declare const PropertyAssignment_base: ((abstract new (...args: any[]) => {
|
|
|
705
702
|
isJavaScript: boolean;
|
|
706
703
|
}) & ObjectConstructor;
|
|
707
704
|
export declare class PropertyAssignment extends PropertyAssignment_base implements Statement, TypedTree {
|
|
708
|
-
constructor(id: UUID, prefix: Space, markers: Markers, name: JRightPadded<Expression>, initializer: Expression);
|
|
705
|
+
constructor(id: UUID, prefix: Space, markers: Markers, name: JRightPadded<Expression>, initializer: Expression | null);
|
|
709
706
|
private readonly _id;
|
|
710
707
|
get id(): UUID;
|
|
711
708
|
withId(id: UUID): PropertyAssignment;
|
|
@@ -719,8 +716,8 @@ export declare class PropertyAssignment extends PropertyAssignment_base implemen
|
|
|
719
716
|
get name(): Expression;
|
|
720
717
|
withName(name: Expression): PropertyAssignment;
|
|
721
718
|
private readonly _initializer;
|
|
722
|
-
get initializer(): Expression;
|
|
723
|
-
withInitializer(initializer: Expression): PropertyAssignment;
|
|
719
|
+
get initializer(): Expression | null;
|
|
720
|
+
withInitializer(initializer: Expression | null): PropertyAssignment;
|
|
724
721
|
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
725
722
|
get type(): JavaType | null;
|
|
726
723
|
withType(type: JavaType): PropertyAssignment;
|
|
@@ -753,7 +750,7 @@ declare const ScopedVariableDeclarations_base: ((abstract new (...args: any[]) =
|
|
|
753
750
|
isJavaScript: boolean;
|
|
754
751
|
}) & ObjectConstructor;
|
|
755
752
|
export declare class ScopedVariableDeclarations extends ScopedVariableDeclarations_base implements Statement {
|
|
756
|
-
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>[]);
|
|
757
754
|
private readonly _id;
|
|
758
755
|
get id(): UUID;
|
|
759
756
|
withId(id: UUID): ScopedVariableDeclarations;
|
|
@@ -770,14 +767,14 @@ export declare class ScopedVariableDeclarations extends ScopedVariableDeclaratio
|
|
|
770
767
|
get scope(): ScopedVariableDeclarations.Scope | null;
|
|
771
768
|
withScope(scope: ScopedVariableDeclarations.Scope | null): ScopedVariableDeclarations;
|
|
772
769
|
private readonly _variables;
|
|
773
|
-
get variables():
|
|
774
|
-
withVariables(variables:
|
|
770
|
+
get variables(): J[];
|
|
771
|
+
withVariables(variables: J[]): ScopedVariableDeclarations;
|
|
775
772
|
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
776
773
|
get padding(): {
|
|
777
774
|
readonly scope: JLeftPadded<ScopedVariableDeclarations.Scope> | null;
|
|
778
775
|
withScope(scope: JLeftPadded<ScopedVariableDeclarations.Scope> | null): ScopedVariableDeclarations;
|
|
779
|
-
readonly variables: JRightPadded<
|
|
780
|
-
withVariables(variables: JRightPadded<
|
|
776
|
+
readonly variables: JRightPadded<J>[];
|
|
777
|
+
withVariables(variables: JRightPadded<J>[]): ScopedVariableDeclarations;
|
|
781
778
|
};
|
|
782
779
|
}
|
|
783
780
|
export declare namespace ScopedVariableDeclarations {
|
|
@@ -957,7 +954,7 @@ declare const TypeDeclaration_base: ((abstract new (...args: any[]) => {
|
|
|
957
954
|
isJavaScript: boolean;
|
|
958
955
|
}) & ObjectConstructor;
|
|
959
956
|
export declare class TypeDeclaration extends TypeDeclaration_base implements Statement, TypedTree {
|
|
960
|
-
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);
|
|
961
958
|
private readonly _id;
|
|
962
959
|
get id(): UUID;
|
|
963
960
|
withId(id: UUID): TypeDeclaration;
|
|
@@ -967,9 +964,6 @@ export declare class TypeDeclaration extends TypeDeclaration_base implements Sta
|
|
|
967
964
|
private readonly _markers;
|
|
968
965
|
get markers(): Markers;
|
|
969
966
|
withMarkers(markers: Markers): TypeDeclaration;
|
|
970
|
-
private readonly _leadingAnnotations;
|
|
971
|
-
get leadingAnnotations(): Java.Annotation[];
|
|
972
|
-
withLeadingAnnotations(leadingAnnotations: Java.Annotation[]): TypeDeclaration;
|
|
973
967
|
private readonly _modifiers;
|
|
974
968
|
get modifiers(): Java.Modifier[];
|
|
975
969
|
withModifiers(modifiers: Java.Modifier[]): TypeDeclaration;
|
|
@@ -1033,6 +1027,48 @@ export declare class TypeOf extends TypeOf_base implements Expression {
|
|
|
1033
1027
|
withType(_type: JavaType | null): TypeOf;
|
|
1034
1028
|
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1035
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
|
+
}
|
|
1036
1072
|
declare const TypeOperator_base: ((abstract new (...args: any[]) => {
|
|
1037
1073
|
readonly prefix: Space;
|
|
1038
1074
|
withPrefix(prefix: Space): JS;
|
|
@@ -1141,7 +1177,8 @@ export declare namespace Unary {
|
|
|
1141
1177
|
Spread = 0,
|
|
1142
1178
|
Optional = 1,
|
|
1143
1179
|
Exclamation = 2,
|
|
1144
|
-
QuestionDot = 3
|
|
1180
|
+
QuestionDot = 3,
|
|
1181
|
+
QuestionDotWithDot = 4
|
|
1145
1182
|
}
|
|
1146
1183
|
}
|
|
1147
1184
|
declare const Union_base: ((abstract new (...args: any[]) => {
|
|
@@ -1190,6 +1227,52 @@ export declare class Union extends Union_base implements Expression, TypeTree {
|
|
|
1190
1227
|
withTypes(types: JRightPadded<Expression>[]): Union;
|
|
1191
1228
|
};
|
|
1192
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
|
+
}
|
|
1193
1276
|
declare const Void_base: ((abstract new (...args: any[]) => {
|
|
1194
1277
|
readonly prefix: Space;
|
|
1195
1278
|
withPrefix(prefix: Space): JS;
|
|
@@ -1509,6 +1592,212 @@ export declare class JSMethodDeclaration extends JSMethodDeclaration_base implem
|
|
|
1509
1592
|
withDefaultValue(defaultValue: JLeftPadded<Expression> | null): JSMethodDeclaration;
|
|
1510
1593
|
};
|
|
1511
1594
|
}
|
|
1595
|
+
declare const JSMethodInvocation_base: ((abstract new (...args: any[]) => {
|
|
1596
|
+
readonly prefix: Space;
|
|
1597
|
+
withPrefix(prefix: Space): JS;
|
|
1598
|
+
readonly id: Uint8Array;
|
|
1599
|
+
withId(id: UUID): JS;
|
|
1600
|
+
readonly markers: Markers;
|
|
1601
|
+
withMarkers(markers: Markers): JS;
|
|
1602
|
+
isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
|
|
1603
|
+
accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
|
|
1604
|
+
acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
|
|
1605
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1606
|
+
constructor: Function;
|
|
1607
|
+
toString(): string;
|
|
1608
|
+
toLocaleString(): string;
|
|
1609
|
+
valueOf(): Object;
|
|
1610
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
1611
|
+
isPrototypeOf(v: Object): boolean;
|
|
1612
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
1613
|
+
}) & {
|
|
1614
|
+
isTree: boolean;
|
|
1615
|
+
isJava: boolean;
|
|
1616
|
+
isJavaScript: boolean;
|
|
1617
|
+
}) & ObjectConstructor;
|
|
1618
|
+
export declare class JSMethodInvocation extends JSMethodInvocation_base implements Statement, TypedTree, MethodCall {
|
|
1619
|
+
constructor(id: UUID, prefix: Space, markers: Markers, select: JRightPadded<Expression> | null, typeParameters: JContainer<Expression> | null, name: Expression, _arguments: JContainer<Expression>, methodType: JavaType.Method | null);
|
|
1620
|
+
private readonly _id;
|
|
1621
|
+
get id(): UUID;
|
|
1622
|
+
withId(id: UUID): JSMethodInvocation;
|
|
1623
|
+
private readonly _prefix;
|
|
1624
|
+
get prefix(): Space;
|
|
1625
|
+
withPrefix(prefix: Space): JSMethodInvocation;
|
|
1626
|
+
private readonly _markers;
|
|
1627
|
+
get markers(): Markers;
|
|
1628
|
+
withMarkers(markers: Markers): JSMethodInvocation;
|
|
1629
|
+
private readonly _select;
|
|
1630
|
+
get select(): Expression | null;
|
|
1631
|
+
withSelect(select: Expression | null): JSMethodInvocation;
|
|
1632
|
+
private readonly _typeParameters;
|
|
1633
|
+
get typeParameters(): Expression[] | null;
|
|
1634
|
+
withTypeParameters(typeParameters: Expression[] | null): JSMethodInvocation;
|
|
1635
|
+
private readonly _name;
|
|
1636
|
+
get name(): Expression;
|
|
1637
|
+
withName(name: Expression): JSMethodInvocation;
|
|
1638
|
+
private readonly _arguments;
|
|
1639
|
+
get arguments(): Expression[];
|
|
1640
|
+
withArguments(_arguments: Expression[]): JSMethodInvocation;
|
|
1641
|
+
private readonly _methodType;
|
|
1642
|
+
get methodType(): JavaType.Method | null;
|
|
1643
|
+
withMethodType(methodType: JavaType.Method | null): JSMethodInvocation;
|
|
1644
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1645
|
+
get type(): JavaType | null;
|
|
1646
|
+
withType(type: JavaType): JSMethodInvocation;
|
|
1647
|
+
get padding(): {
|
|
1648
|
+
readonly select: JRightPadded<Expression> | null;
|
|
1649
|
+
withSelect(select: JRightPadded<Expression> | null): JSMethodInvocation;
|
|
1650
|
+
readonly typeParameters: JContainer<Expression> | null;
|
|
1651
|
+
withTypeParameters(typeParameters: JContainer<Expression> | null): JSMethodInvocation;
|
|
1652
|
+
readonly arguments: JContainer<Expression>;
|
|
1653
|
+
withArguments(_arguments: JContainer<Expression>): JSMethodInvocation;
|
|
1654
|
+
};
|
|
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
|
+
}
|
|
1512
1801
|
declare const NamespaceDeclaration_base: ((abstract new (...args: any[]) => {
|
|
1513
1802
|
readonly prefix: Space;
|
|
1514
1803
|
withPrefix(prefix: Space): JS;
|
|
@@ -1569,5 +1858,264 @@ export declare namespace NamespaceDeclaration {
|
|
|
1569
1858
|
Module = 1
|
|
1570
1859
|
}
|
|
1571
1860
|
}
|
|
1861
|
+
declare const FunctionDeclaration_base: ((abstract new (...args: any[]) => {
|
|
1862
|
+
readonly prefix: Space;
|
|
1863
|
+
withPrefix(prefix: Space): JS;
|
|
1864
|
+
readonly id: Uint8Array;
|
|
1865
|
+
withId(id: UUID): JS;
|
|
1866
|
+
readonly markers: Markers;
|
|
1867
|
+
withMarkers(markers: Markers): JS;
|
|
1868
|
+
isAcceptable<P>(v: TreeVisitor<Tree, P>, p: P): boolean;
|
|
1869
|
+
accept<R extends Tree, P>(v: TreeVisitor<R, P>, p: P): R | null;
|
|
1870
|
+
acceptJava<P>(v: import("../../java").JavaVisitor<P>, p: P): J | null;
|
|
1871
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1872
|
+
constructor: Function;
|
|
1873
|
+
toString(): string;
|
|
1874
|
+
toLocaleString(): string;
|
|
1875
|
+
valueOf(): Object;
|
|
1876
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
1877
|
+
isPrototypeOf(v: Object): boolean;
|
|
1878
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
1879
|
+
}) & {
|
|
1880
|
+
isTree: boolean;
|
|
1881
|
+
isJava: boolean;
|
|
1882
|
+
isJavaScript: boolean;
|
|
1883
|
+
}) & ObjectConstructor;
|
|
1884
|
+
export declare class FunctionDeclaration extends FunctionDeclaration_base implements Statement, Expression, TypedTree {
|
|
1885
|
+
constructor(id: UUID, prefix: Space, markers: Markers, modifiers: Java.Modifier[], name: Java.Identifier | null, typeParameters: Java.TypeParameters | null, parameters: JContainer<Statement>, returnTypeExpression: TypeTree | null, body: J, _type: JavaType | null);
|
|
1886
|
+
private readonly _id;
|
|
1887
|
+
get id(): UUID;
|
|
1888
|
+
withId(id: UUID): FunctionDeclaration;
|
|
1889
|
+
private readonly _prefix;
|
|
1890
|
+
get prefix(): Space;
|
|
1891
|
+
withPrefix(prefix: Space): FunctionDeclaration;
|
|
1892
|
+
private readonly _markers;
|
|
1893
|
+
get markers(): Markers;
|
|
1894
|
+
withMarkers(markers: Markers): FunctionDeclaration;
|
|
1895
|
+
private readonly _modifiers;
|
|
1896
|
+
get modifiers(): Java.Modifier[];
|
|
1897
|
+
withModifiers(modifiers: Java.Modifier[]): FunctionDeclaration;
|
|
1898
|
+
private readonly _name;
|
|
1899
|
+
get name(): Java.Identifier | null;
|
|
1900
|
+
withName(name: Java.Identifier | null): FunctionDeclaration;
|
|
1901
|
+
private readonly _typeParameters;
|
|
1902
|
+
get typeParameters(): Java.TypeParameters | null;
|
|
1903
|
+
withTypeParameters(typeParameters: Java.TypeParameters | null): FunctionDeclaration;
|
|
1904
|
+
private readonly _parameters;
|
|
1905
|
+
get parameters(): Statement[];
|
|
1906
|
+
withParameters(parameters: Statement[]): FunctionDeclaration;
|
|
1907
|
+
private readonly _returnTypeExpression;
|
|
1908
|
+
get returnTypeExpression(): TypeTree | null;
|
|
1909
|
+
withReturnTypeExpression(returnTypeExpression: TypeTree | null): FunctionDeclaration;
|
|
1910
|
+
private readonly _body;
|
|
1911
|
+
get body(): J;
|
|
1912
|
+
withBody(body: J): FunctionDeclaration;
|
|
1913
|
+
private readonly _type;
|
|
1914
|
+
get type(): JavaType | null;
|
|
1915
|
+
withType(_type: JavaType | null): FunctionDeclaration;
|
|
1916
|
+
acceptJavaScript<P>(v: JavaScriptVisitor<P>, p: P): J | null;
|
|
1917
|
+
get padding(): {
|
|
1918
|
+
readonly parameters: JContainer<Statement>;
|
|
1919
|
+
withParameters(parameters: JContainer<Statement>): FunctionDeclaration;
|
|
1920
|
+
};
|
|
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
|
+
}
|
|
1572
2120
|
export {};
|
|
1573
2121
|
//# sourceMappingURL=tree.d.ts.map
|