| 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 883706a4e55cae03f382fdf23fddfe832451d3e9..cdef6eac4ebf29ad19114e7ffc2f108aad6fd542 100644
|
| --- a/dart/pkg/compiler/lib/src/elements/modelx.dart
|
| +++ b/dart/pkg/compiler/lib/src/elements/modelx.dart
|
| @@ -329,7 +329,9 @@ class ErroneousElementX extends ElementX implements ErroneousElement {
|
| }
|
|
|
| /// A constructor that was synthesized to recover from a compile-time error.
|
| -class ErroneousConstructorElementX extends ErroneousElementX {
|
| +class ErroneousConstructorElementX extends ErroneousElementX
|
| + with PatchMixin<FunctionElement>
|
| + implements ConstructorElementX {
|
| // 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.
|
| @@ -340,6 +342,76 @@ class ErroneousConstructorElementX extends ErroneousElementX {
|
| String name,
|
| Element enclosing)
|
| : super(messageKind, messageArguments, name, enclosing);
|
| +
|
| + bool get isRedirectingFactory => false;
|
| +
|
| + get definingElement {
|
| + throw new UnsupportedError("definingElement");
|
| + }
|
| +
|
| + get asyncMarker {
|
| + throw new UnsupportedError("asyncMarker");
|
| + }
|
| +
|
| + set asyncMarker(_) {
|
| + throw new UnsupportedError("asyncMarker=");
|
| + }
|
| +
|
| + get internalEffectiveTarget {
|
| + throw new UnsupportedError("internalEffectiveTarget");
|
| + }
|
| +
|
| + set internalEffectiveTarget(_) {
|
| + throw new UnsupportedError("internalEffectiveTarget=");
|
| + }
|
| +
|
| + get effectiveTargetType {
|
| + throw new UnsupportedError("effectiveTargetType");
|
| + }
|
| +
|
| + set effectiveTargetType(_) {
|
| + throw new UnsupportedError("effectiveTargetType=");
|
| + }
|
| +
|
| + get typeCache {
|
| + throw new UnsupportedError("typeCache");
|
| + }
|
| +
|
| + set typeCache(_) {
|
| + throw new UnsupportedError("typeCache=");
|
| + }
|
| +
|
| + get immediateRedirectionTarget {
|
| + throw new UnsupportedError("immediateRedirectionTarget");
|
| + }
|
| +
|
| + set immediateRedirectionTarget(_) {
|
| + throw new UnsupportedError("immediateRedirectionTarget=");
|
| + }
|
| +
|
| + get functionSignatureCache {
|
| + throw new UnsupportedError("functionSignatureCache");
|
| + }
|
| +
|
| + set functionSignatureCache(_) {
|
| + throw new UnsupportedError("functionSignatureCache=");
|
| + }
|
| +
|
| + get nestedClosures {
|
| + throw new UnsupportedError("nestedClosures");
|
| + }
|
| +
|
| + set nestedClosures(_) {
|
| + throw new UnsupportedError("nestedClosures=");
|
| + }
|
| +
|
| + bool get hasNoBody => false;
|
| +
|
| + bool get _hasNoBody => false;
|
| +
|
| + void set effectiveTarget(_) {
|
| + throw new UnsupportedError("effectiveTarget=");
|
| + }
|
| }
|
|
|
| /// A message attached to a [WarnOnUseElementX].
|
|
|