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

Unified Diff: pkg/compiler/lib/src/resolution/class_hierarchy.dart

Issue 1414913002: Introduce .isMalformed (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
Index: pkg/compiler/lib/src/resolution/class_hierarchy.dart
diff --git a/pkg/compiler/lib/src/resolution/class_hierarchy.dart b/pkg/compiler/lib/src/resolution/class_hierarchy.dart
index c156e8f77e5353a77f79e3ff583006d009dbbed0..a29bcbfb95c1968d624e88390810d2187b9c4712 100644
--- a/pkg/compiler/lib/src/resolution/class_hierarchy.dart
+++ b/pkg/compiler/lib/src/resolution/class_hierarchy.dart
@@ -211,7 +211,7 @@ class ClassResolverVisitor extends TypeDefinitionVisitor {
}
FunctionElement constructor =
new SynthesizedConstructorElementX.forDefault(superMember, element);
- if (superMember.isErroneous) {
+ if (superMember.isMalformed) {
compiler.elementsWithCompileTimeErrors.add(constructor);
}
element.setDefaultConstructor(constructor, reporter);

Powered by Google App Engine
This is Rietveld 408576698