Index: pkg/compiler/lib/src/closure.dart |
diff --git a/pkg/compiler/lib/src/closure.dart b/pkg/compiler/lib/src/closure.dart |
index 5a94e8555e84cbaea0837a59250cff47b674f400..f9e5b33adf91eb26c4c84bafab4cfbb9fb0f9171 100644 |
--- a/pkg/compiler/lib/src/closure.dart |
+++ b/pkg/compiler/lib/src/closure.dart |
@@ -405,8 +405,7 @@ class ClosureFieldElement extends ElementX |
bool get hasNode => false; |
VariableDefinitions get node { |
- throw new SpannableAssertionFailure( |
- local, 'Should not access node of ClosureFieldElement.'); |
+ throw failedAt(local, 'Should not access node of ClosureFieldElement.'); |
} |
bool get hasResolvedAst => hasTreeElements; |
@@ -417,7 +416,7 @@ class ClosureFieldElement extends ElementX |
} |
Expression get initializer { |
- throw new SpannableAssertionFailure( |
+ throw failedAt( |
local, 'Should not access initializer of ClosureFieldElement.'); |
} |