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

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

Issue 10391092: Update analysis server and indexer (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ParseLibraryFileTask.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ParseLibraryFileTask.java (revision 7590)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ParseLibraryFileTask.java (working copy)
@@ -43,7 +43,7 @@
this.libraryFile = libraryFile;
this.callback = callback;
URI fileUri = libraryFile.toURI();
- URI shortUri = server.getLibraryManager().getShortUri(fileUri);
+ URI shortUri = server.getLibraryManager().getRelativeUri(fileUri);
URI libUri = shortUri != null ? shortUri : fileUri;
this.librarySource = new UrlLibrarySource(libUri, server.getLibraryManager());
}
@@ -67,7 +67,7 @@
unit = context.getUnresolvedUnit(libraryFile);
if (unit == null) {
Set<String> prefixes = new HashSet<String>();
- unit = parse(server, libraryFile, librarySource, libraryFile, prefixes);
+ unit = parse(server, libraryFile, librarySource, libraryFile.getName(), prefixes);
context.cacheUnresolvedUnit(libraryFile, unit);
}
}

Powered by Google App Engine
This is Rietveld 408576698