| Index: pkg/kernel/lib/clone.dart
|
| diff --git a/pkg/kernel/lib/clone.dart b/pkg/kernel/lib/clone.dart
|
| index 70b8d1042e076399e99ce3f20ac0b9b2d5012c1a..c9bfadb8dfb7fa650878dbd3c8229eb226be1286 100644
|
| --- a/pkg/kernel/lib/clone.dart
|
| +++ b/pkg/kernel/lib/clone.dart
|
| @@ -68,63 +68,64 @@ class CloneVisitor extends TreeVisitor {
|
| }
|
|
|
| visitPropertyGet(PropertyGet node) {
|
| - return new PropertyGet(
|
| - clone(node.receiver), node.name, node.interfaceTarget);
|
| + return new PropertyGet.byBox(
|
| + clone(node.receiver), node.name, node.interfaceTargetBox);
|
| }
|
|
|
| visitPropertySet(PropertySet node) {
|
| - return new PropertySet(clone(node.receiver), node.name, clone(node.value),
|
| - node.interfaceTarget);
|
| + return new PropertySet.byBox(clone(node.receiver), node.name,
|
| + clone(node.value), node.interfaceTargetBox);
|
| }
|
|
|
| visitDirectPropertyGet(DirectPropertyGet node) {
|
| - return new DirectPropertyGet(clone(node.receiver), node.target);
|
| + return new DirectPropertyGet.byBox(clone(node.receiver), node.targetBox);
|
| }
|
|
|
| visitDirectPropertySet(DirectPropertySet node) {
|
| - return new DirectPropertySet(
|
| - clone(node.receiver), node.target, clone(node.value));
|
| + return new DirectPropertySet.byBox(
|
| + clone(node.receiver), node.targetBox, clone(node.value));
|
| }
|
|
|
| visitSuperPropertyGet(SuperPropertyGet node) {
|
| - return new SuperPropertyGet(node.name, node.interfaceTarget);
|
| + return new SuperPropertyGet.byBox(node.name, node.interfaceTargetBox);
|
| }
|
|
|
| visitSuperPropertySet(SuperPropertySet node) {
|
| - return new SuperPropertySet(
|
| - node.name, clone(node.value), node.interfaceTarget);
|
| + return new SuperPropertySet.byBox(
|
| + node.name, clone(node.value), node.interfaceTargetBox);
|
| }
|
|
|
| visitStaticGet(StaticGet node) {
|
| - return new StaticGet(node.target);
|
| + return new StaticGet.byBox(node.targetBox);
|
| }
|
|
|
| visitStaticSet(StaticSet node) {
|
| - return new StaticSet(node.target, clone(node.value));
|
| + return new StaticSet.byBox(node.targetBox, clone(node.value));
|
| }
|
|
|
| visitMethodInvocation(MethodInvocation node) {
|
| - return new MethodInvocation(clone(node.receiver), node.name,
|
| - clone(node.arguments), node.interfaceTarget);
|
| + return new MethodInvocation.byBox(clone(node.receiver), node.name,
|
| + clone(node.arguments), node.interfaceTargetBox);
|
| }
|
|
|
| visitDirectMethodInvocation(DirectMethodInvocation node) {
|
| - return new DirectMethodInvocation(
|
| - clone(node.receiver), node.target, clone(node.arguments));
|
| + return new DirectMethodInvocation.byBox(
|
| + clone(node.receiver), node.targetBox, clone(node.arguments));
|
| }
|
|
|
| visitSuperMethodInvocation(SuperMethodInvocation node) {
|
| - return new SuperMethodInvocation(
|
| - node.name, clone(node.arguments), node.interfaceTarget);
|
| + return new SuperMethodInvocation.byBox(
|
| + node.name, clone(node.arguments), node.interfaceTargetBox);
|
| }
|
|
|
| visitStaticInvocation(StaticInvocation node) {
|
| - return new StaticInvocation(node.target, clone(node.arguments),
|
| + return new StaticInvocation.byBox(node.targetBox, clone(node.arguments),
|
| isConst: node.isConst);
|
| }
|
|
|
| visitConstructorInvocation(ConstructorInvocation node) {
|
| - return new ConstructorInvocation(node.target, clone(node.arguments),
|
| + return new ConstructorInvocation.byBox(
|
| + node.targetBox, clone(node.arguments),
|
| isConst: node.isConst);
|
| }
|
|
|
|
|