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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompiler.java

Issue 11464004: Enabled reporting problems in some libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/parser/DartParser.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/DartCompiler.java
diff --git a/compiler/java/com/google/dart/compiler/DartCompiler.java b/compiler/java/com/google/dart/compiler/DartCompiler.java
index f8dd7d954d2ff61016df55ab0760c96aeaad2ab7..5deca30837677caf68962202055b0d3ce87d6c2c 100644
--- a/compiler/java/com/google/dart/compiler/DartCompiler.java
+++ b/compiler/java/com/google/dart/compiler/DartCompiler.java
@@ -704,11 +704,8 @@ public class DartCompiler {
// analyze directives
List<DartDirective> directives = unit.getDirectives();
if (directives.isEmpty()) {
- // TODO(scheglov) Remove after http://code.google.com/p/dart/issues/detail?id=6121
- if (!StringUtils.startsWith(lib.getName(), "dart:")) {
- context.onError(new DartCompilationError(unitSource,
- DartCompilerErrorCode.MISSING_PART_OF_DIRECTIVE, lib.getName()));
- }
+ context.onError(new DartCompilationError(unitSource,
+ DartCompilerErrorCode.MISSING_PART_OF_DIRECTIVE, lib.getName()));
} else if (directives.size() == 1 && directives.get(0) instanceof DartPartOfDirective) {
DartPartOfDirective directive = (DartPartOfDirective) directives.get(0);
String dirName = directive.getLibraryName();
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/parser/DartParser.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698