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 e6ed1e475a1b2cc5d6d200fa58713f8de56e429d..06d6f460b85ad6eff8307d7df69808004f15c98d 100644 |
--- a/pkg/compiler/lib/src/kernel/kernel_visitor.dart |
+++ b/pkg/compiler/lib/src/kernel/kernel_visitor.dart |
@@ -1930,7 +1930,7 @@ class KernelVisitor extends Object |
@override |
ir.Expression handleStaticFieldGet(Send node, FieldElement field, _) { |
- return buildStaticGet(field); |
+ return associateNode(buildStaticGet(field), node); |
} |
@override |
@@ -2137,7 +2137,8 @@ class KernelVisitor extends Object |
NodeList arguments, |
CallStructure callStructure, |
_) { |
- return buildStaticInvoke(function, arguments, isConst: false); |
+ return associateNode( |
+ buildStaticInvoke(function, arguments, isConst: false), node); |
} |
@override |
@@ -2762,7 +2763,7 @@ class KernelVisitor extends Object |
FieldElement field = currentElement; |
return field.isMalformed |
? new ir.InvalidExpression() |
- : visitForValue(field.initializer); |
+ : associateNode(visitForValue(field.initializer), field.initializer); |
}); |
} |
} |