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

Unified Diff: pkg/stub_core_library/lib/stub_core_library.dart

Issue 398003005: Properly handle windows paths in stub_core_library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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: pkg/stub_core_library/lib/stub_core_library.dart
diff --git a/pkg/stub_core_library/lib/stub_core_library.dart b/pkg/stub_core_library/lib/stub_core_library.dart
index 6d68fbb7b0080264effa8329a7c47084563c6b3a..d61053e24a9cfd679fed4a90e06a774639214593 100644
--- a/pkg/stub_core_library/lib/stub_core_library.dart
+++ b/pkg/stub_core_library/lib/stub_core_library.dart
@@ -66,7 +66,7 @@ class _StubVisitor extends ToSourceVisitor {
_StubVisitor._(String path, Map<String, String> importReplacements,
PrintStringWriter writer)
- : _root = p.url.dirname(path),
+ : _root = p.dirname(path),
_importReplacements = importReplacements == null ? const {} :
importReplacements,
_writer = writer,
@@ -86,7 +86,7 @@ class _StubVisitor extends ToSourceVisitor {
visitPartDirective(PartDirective node) {
// Inline parts directly in the output file.
- var path = p.fromUri(p.url.join(_root, node.uri.stringValue));
+ var path = p.url.join(_root, p.fromUri(node.uri.stringValue));
parseDartFile(path).accept(new _StubVisitor._(path, const {}, _writer));
}
« 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