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

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

Issue 11364020: Issue 5722. Better 'missing part of' error message. Quick Fix for it. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/DartCompilerErrorCode.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 777f6773731fd3625af5c059f0809c5dd91fde3d..1d0eb2852d10b0bc68bdac262869ef47d33dd6c3 100644
--- a/compiler/java/com/google/dart/compiler/DartCompiler.java
+++ b/compiler/java/com/google/dart/compiler/DartCompiler.java
@@ -727,7 +727,7 @@ public class DartCompiler {
// 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));
+ DartCompilerErrorCode.MISSING_PART_OF_DIRECTIVE, lib.getName()));
}
} else if (directives.size() == 1 && directives.get(0) instanceof DartPartOfDirective) {
DartPartOfDirective directive = (DartPartOfDirective) directives.get(0);
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/DartCompilerErrorCode.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698