Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(462)

Unified Diff: sdk/lib/_internal/compiler/samples/darttags/darttags.dart

Issue 284203004: Work around warning in darttags. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status file.wq Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/lib/analyzer/analyze_library.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
« no previous file with comments | « no previous file | tests/lib/analyzer/analyze_library.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698