Index: packages/smoke/lib/codegen/recorder.dart |
diff --git a/packages/smoke/lib/codegen/recorder.dart b/packages/smoke/lib/codegen/recorder.dart |
index 545455a0f7af7c1ba88eb6635297ba8c5259a52e..8a9ebf1323891c1ebeb38e6ce9397d78e32a5352 100644 |
--- a/packages/smoke/lib/codegen/recorder.dart |
+++ b/packages/smoke/lib/codegen/recorder.dart |
@@ -253,7 +253,7 @@ class Recorder { |
/// Copy metadata associated with the declaration of [target]. |
List<ConstExpression> _copyAnnotations(Element target) { |
- var node = target.node; |
+ var node = target.computeNode(); |
// [node] is the initialization expression, we walk up to get to the actual |
// member declaration where the metadata is attached to. |
while (node is! ClassMember) node = node.parent; |