Index: compiler/java/com/google/dart/compiler/DartCompilerMainContext.java |
diff --git a/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java b/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java |
index 71fb140f7e47dad9ab1ea375ba060e37a777d4d3..84708e649dfb70020a1a04c1fa8ad96afd4a36ff 100644 |
--- a/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java |
+++ b/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java |
@@ -8,7 +8,6 @@ import com.google.dart.compiler.ast.DartUnit; |
import com.google.dart.compiler.ast.LibraryUnit; |
import com.google.dart.compiler.metrics.CompilerMetrics; |
import com.google.dart.compiler.parser.DartParser; |
-import com.google.dart.compiler.resolver.ResolverErrorCode; |
import com.google.dart.compiler.resolver.TypeErrorCode; |
import java.io.IOException; |
@@ -54,7 +53,10 @@ final class DartCompilerMainContext extends DartCompilerListener implements |
if (event.getErrorCode().getSubSystem() == SubSystem.STATIC_TYPE |
&& (!shouldWarnOnNoSuchType() || ( |
(event.getErrorCode() != TypeErrorCode.CANNOT_BE_RESOLVED) && |
- (event.getErrorCode() != TypeErrorCode.NO_SUCH_TYPE) && |
+ (event.getErrorCode() != TypeErrorCode.NO_SUCH_TYPE_FIELD) && |
+ (event.getErrorCode() != TypeErrorCode.NO_SUCH_TYPE_PARAMETER) && |
+ (event.getErrorCode() != TypeErrorCode.NO_SUCH_TYPE_RETURN) && |
+ (event.getErrorCode() != TypeErrorCode.NO_SUCH_TYPE_VARIABLE_STATEMENT) && |
(event.getErrorCode() != TypeErrorCode.INTERFACE_HAS_NO_METHOD_NAMED)))) { |
incrementTypeErrorCount(); |
} else if (event.getErrorCode().getErrorSeverity() == ErrorSeverity.ERROR) { |