Index: pkg/compiler/lib/src/resolution/resolution.dart |
diff --git a/pkg/compiler/lib/src/resolution/resolution.dart b/pkg/compiler/lib/src/resolution/resolution.dart |
index 2b65e42e00f48965b702a86d27a98400b5601e59..ade41f96391e1e7ab8dfa5d82920b339ca2ee24b 100644 |
--- a/pkg/compiler/lib/src/resolution/resolution.dart |
+++ b/pkg/compiler/lib/src/resolution/resolution.dart |
@@ -72,7 +72,7 @@ class ResolverTask extends CompilerTask { |
ResolutionImpact resolve(Element element) { |
return measure(() { |
- if (Elements.isErroneous(element)) { |
+ if (Elements.isMalformed(element)) { |
// TODO(johnniwinther): Add a predicate for this. |
assert(invariant(element, element is! ErroneousElement, |
message: "Element $element expected to have parse errors.")); |
@@ -297,12 +297,12 @@ class ResolverTask extends CompilerTask { |
// resolved. This is the only place where the resolver is |
// seeing this element. |
element.computeType(resolution); |
- if (!target.isErroneous) { |
+ if (!target.isMalformed) { |
registry.registerImplicitSuperCall(target); |
} |
return registry.worldImpact; |
} else { |
- assert(element.isDeferredLoaderGetter || element.isErroneous); |
+ assert(element.isDeferredLoaderGetter || element.isMalformed); |
_ensureTreeElements(element); |
return const ResolutionImpact(); |
} |
@@ -831,7 +831,7 @@ class ResolverTask extends CompilerTask { |
reporter.internalError(member, |
"No abstract field for accessor"); |
} else if (!identical(lookupElement.kind, ElementKind.ABSTRACT_FIELD)) { |
- if (lookupElement.isErroneous || lookupElement.isAmbiguous) return; |
+ if (lookupElement.isMalformed || lookupElement.isAmbiguous) return; |
reporter.internalError(member, |
"Inaccessible abstract field for accessor"); |
} |