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

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

Issue 837563004: Address comments from 820093006 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add missing import. 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 e1b4f516821e8a965f4eca959cb8ef3797eebb25..959a5926c73a73afcf0c55ec1a30e6bec712ac3f 100644
--- a/dart/pkg/compiler/lib/src/elements/modelx.dart
+++ b/dart/pkg/compiler/lib/src/elements/modelx.dart
@@ -329,6 +329,20 @@ class ErroneousElementX extends ElementX implements ErroneousElement {
accept(ElementVisitor visitor) => visitor.visitErroneousElement(this);
}
+/// A constructor that was synthesized to recover from a compile-time error.
+class ErroneousConstructorElementX extends ErroneousElementX {
+ // TODO(ahe): Instead of subclassing [ErroneousElementX], this class should
+ // be more like [ErroneousFieldElementX]. In particular, its kind should be
+ // [ElementKind.GENERATIVE_CONSTRUCTOR], and it shouldn't throw as much.
+
+ ErroneousConstructorElementX(
+ MessageKind messageKind,
+ Map messageArguments,
+ String name,
+ Element enclosing)
+ : super(messageKind, messageArguments, name, enclosing);
+}
+
/// A message attached to a [WarnOnUseElementX].
class WrappedMessage {
/// The message position. If [:null:] the position of the reference to the
« 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