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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 12184017: MetadataAnnotation should be spannable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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
Index: dart/sdk/lib/_internal/compiler/implementation/compiler.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/compiler.dart b/dart/sdk/lib/_internal/compiler/implementation/compiler.dart
index 6bf404ec8a796e7711e5351d223579a5f944cbe0..aebbee6df5ee8d25619dc2bbb4c17afd90cb1d99 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/compiler.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/compiler.dart
@@ -450,6 +450,8 @@ abstract class Compiler implements DiagnosticListener {
return spanFromHInstruction(node);
} else if (node is Element) {
return spanFromElement(node);
+ } else if (node is MetadataAnnotation) {
+ return spanFromTokens(node.beginToken, node.endToken);
} else {
throw 'No error location.';
}

Powered by Google App Engine
This is Rietveld 408576698