Chromium Code Reviews| 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 4643e1cbb4496ba58f66197f0d93682eb29cc4c8..d45c00debc20c97e9989d79cf3096e087d45f973 100644 |
| --- a/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java |
| +++ b/compiler/java/com/google/dart/compiler/DartCompilerMainContext.java |
| @@ -11,6 +11,7 @@ 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.Elements; |
| import java.io.IOException; |
| import java.io.Reader; |
| @@ -55,6 +56,12 @@ final class DartCompilerMainContext implements DartCompilerListener, DartCompile |
| @Override |
| public void onError(DartCompilationError event) { |
| + // problems in dart:core are not interesting |
| + // http://code.google.com/p/dart/issues/detail?id=7128 |
| + if (Elements.isCoreLibrarySource(event.getSource())) { |
|
Brian Wilkerson
2012/12/04 19:14:15
Hm. I thought we had a request from the core libra
scheglov
2012/12/04 19:42:15
We show the same problems like "Expected constant
|
| + return; |
| + } |
| + |
| // Remember error. |
| { |
| Source source = event.getSource(); |