Index: sdk/lib/_internal/compiler/samples/darttags/darttags.dart |
diff --git a/sdk/lib/_internal/compiler/samples/darttags/darttags.dart b/sdk/lib/_internal/compiler/samples/darttags/darttags.dart |
index 3a00fc6588cea99f34d6356848c1f96b8ef9cb03..690e943479464fe8225a02bff231126826849d19 100644 |
--- a/sdk/lib/_internal/compiler/samples/darttags/darttags.dart |
+++ b/sdk/lib/_internal/compiler/samples/darttags/darttags.dart |
@@ -110,7 +110,8 @@ emitTagsForCompilationUnit(compilationUnit) { |
compilationUnit.declarations.forEach((_, DeclarationMirror mirror) { |
var tagname = nameOf(mirror); |
- var byte_offset = mirror.location.offset; |
+ var location = mirror.location; |
+ var byte_offset = location.offset; |
var line_number = file.getLine(byte_offset) + 1; |
var lineStart = file.lineStarts[line_number - 1]; |