Index: pkg/compiler/lib/src/kernel/kernel_visitor.dart |
diff --git a/pkg/compiler/lib/src/kernel/kernel_visitor.dart b/pkg/compiler/lib/src/kernel/kernel_visitor.dart |
index 69fae3817eb167c8e5f225969367cfbfe1e37d20..543a705daea6628a82e7f237fd055d092efeae8c 100644 |
--- a/pkg/compiler/lib/src/kernel/kernel_visitor.dart |
+++ b/pkg/compiler/lib/src/kernel/kernel_visitor.dart |
@@ -1240,7 +1240,7 @@ class KernelVisitor extends Object |
@override |
ir.InvocationExpression visitBoolFromEnvironmentConstructorInvoke( |
NewExpression node, BoolFromEnvironmentConstantExpression constant, _) { |
- return buildConstructorInvoke(node, isConst: true); |
+ return associateNode(buildConstructorInvoke(node, isConst: true), node); |
} |
ir.TypeLiteral buildTypeLiteral(TypeConstantExpression constant) { |
@@ -1737,7 +1737,7 @@ class KernelVisitor extends Object |
@override |
ir.InvocationExpression visitIntFromEnvironmentConstructorInvoke( |
NewExpression node, IntFromEnvironmentConstantExpression constant, _) { |
- return buildConstructorInvoke(node, isConst: true); |
+ return associateNode(buildConstructorInvoke(node, isConst: true), node); |
} |
ir.IsExpression buildIs(Node expression, ResolutionDartType type) { |
@@ -2352,7 +2352,7 @@ class KernelVisitor extends Object |
@override |
ir.InvocationExpression visitStringFromEnvironmentConstructorInvoke( |
NewExpression node, StringFromEnvironmentConstantExpression constant, _) { |
- return buildConstructorInvoke(node, isConst: true); |
+ return associateNode(buildConstructorInvoke(node, isConst: true), node); |
} |
@override |