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

Unified Diff: dart/lib/compiler/implementation/elements/elements.dart

Issue 10389143: Add locations to diagnostics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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
Index: dart/lib/compiler/implementation/elements/elements.dart
diff --git a/dart/lib/compiler/implementation/elements/elements.dart b/dart/lib/compiler/implementation/elements/elements.dart
index 5f879bd72a7791deaf29928a0f94002816631f02..55812ae7516a4a11f8a466f89904283e3f33e42d 100644
--- a/dart/lib/compiler/implementation/elements/elements.dart
+++ b/dart/lib/compiler/implementation/elements/elements.dart
@@ -646,7 +646,9 @@ class ConstructorBodyElement extends FunctionElement {
bool isInstanceMember() => true;
- FunctionType computeType(Compiler compiler) { unreachable(); }
+ FunctionType computeType(Compiler compiler) {
+ compiler.reportFatalError('Internal error: $this.computeType', this);
+ }
Node parseNode(DiagnosticListener listener) {
if (cachedNode !== null) return cachedNode;

Powered by Google App Engine
This is Rietveld 408576698