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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/Library.java

Issue 10541165: Skip null prefix from DartC http://code.google.com/p/dart/issues/detail?id=3423 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/Library.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/Library.java (revision 8650)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/Library.java (working copy)
@@ -58,9 +58,12 @@
String relPath;
if (directive instanceof DartImportDirective) {
DartImportDirective importDirective = (DartImportDirective) directive;
- DartStringLiteral prefix = importDirective.getPrefix();
- if (prefix != null) {
- prefixes.add(prefix.getValue());
+ DartStringLiteral prefixLiteral = importDirective.getPrefix();
+ if (prefixLiteral != null) {
+ String prefix = prefixLiteral.getValue();
+ if (prefix != null) {
+ prefixes.add(prefix);
+ }
}
relPath = importDirective.getLibraryUri().getValue();
File file = server.resolvePath(base, relPath);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698