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

Unified Diff: pkg/compiler/lib/src/compiler.dart

Issue 2666553002: Add KernelWorldBuilder and KElement model. (Closed)
Patch Set: Cleanup. Created 3 years, 11 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 | pkg/compiler/lib/src/elements/types.dart » ('j') | pkg/compiler/lib/src/kernel/elements.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/compiler.dart
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart
index 405724fa6f91c1d1344a347e353a72861bee3771..ccc2071305295908e9b9f3a874ad536f20773654 100644
--- a/pkg/compiler/lib/src/compiler.dart
+++ b/pkg/compiler/lib/src/compiler.dart
@@ -1559,6 +1559,8 @@ class CompilerDiagnosticReporter extends DiagnosticReporter {
} else if (node is Local) {
Local local = node;
return spanFromElement(local.executableContext);
+ } else if (node is Entity) {
+ return spanFromElement(currentElement);
} else {
throw 'No error location.';
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/types.dart » ('j') | pkg/compiler/lib/src/kernel/elements.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698