| Index: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| diff --git a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| index cb153236ca96db7c2822d478bd91b711ecdcf5c3..15ee2bb2ef7b8ade391dc61c1491f9dcdf414227 100644
|
| --- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| +++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
|
| @@ -288,10 +288,13 @@ public class TypeAnalyzer implements DartCompilationPhase {
|
| }
|
|
|
| private void onError(SourceInfo errorTarget, ErrorCode errorCode, Object... arguments) {
|
| - if (suppressSdkWarnings && errorCode.getErrorSeverity() == ErrorSeverity.WARNING) {
|
| - Source source = errorTarget.getSource();
|
| - if (source != null && PackageLibraryManager.isDartUri(source.getUri())) {
|
| - return;
|
| + if (suppressSdkWarnings) {
|
| + ErrorSeverity errorSeverity = errorCode.getErrorSeverity();
|
| + if (errorSeverity == ErrorSeverity.WARNING || errorSeverity == ErrorSeverity.INFO) {
|
| + Source source = errorTarget.getSource();
|
| + if (source != null && PackageLibraryManager.isDartUri(source.getUri())) {
|
| + return;
|
| + }
|
| }
|
| }
|
| context.onError(new DartCompilationError(errorTarget, errorCode, arguments));
|
|
|