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

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

Issue 852983002: Error recovery broke host checked mode, fix it. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 5 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 | dart/pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/compiler/lib/src/elements/modelx.dart
diff --git a/dart/pkg/compiler/lib/src/elements/modelx.dart b/dart/pkg/compiler/lib/src/elements/modelx.dart
index 7c18aaaa4d648f5d94b20b64bca2cd8d909da20f..96c979b5d7ac875d030f23cbada724c718b7ee35 100644
--- a/dart/pkg/compiler/lib/src/elements/modelx.dart
+++ b/dart/pkg/compiler/lib/src/elements/modelx.dart
@@ -330,7 +330,7 @@ class ErroneousElementX extends ElementX implements ErroneousElement {
/// A constructor that was synthesized to recover from a compile-time error.
class ErroneousConstructorElementX extends ErroneousElementX
- with PatchMixin<FunctionElement>
+ with PatchMixin<FunctionElement>, AnalyzableElementX
implements ConstructorElementX {
// TODO(ahe): Instead of subclassing [ErroneousElementX], this class should
// be more like [ErroneousFieldElementX]. In particular, its kind should be
@@ -553,6 +553,8 @@ class DuplicatedElementX extends AmbiguousElementX {
Element enclosingElement, Element existingElement, Element newElement)
: super(messageKind, messageArguments, enclosingElement, existingElement,
newElement);
+
+ bool get isErroneous => true;
}
class ScopeX {
« no previous file with comments | « no previous file | dart/pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698