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

Unified Diff: lib/devc.dart

Issue 1013363002: locating runtime files automatically (fixes #96) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 | lib/src/dependency_graph.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/devc.dart
diff --git a/lib/devc.dart b/lib/devc.dart
index c14f9ac71f2895a1fbd94160fc929480de90224f..0628fa97a6219890d4111561f935dadee76f8a61 100644
--- a/lib/devc.dart
+++ b/lib/devc.dart
@@ -136,8 +136,9 @@ class Compiler {
// location. These can be external dependencies or pieces of the
// dev_compiler runtime.
if (_options.outputDir == null || _options.outputDart) return;
- assert(node.uri.scheme == 'package');
- var filepath = path.join(_options.outputDir, resourceOutputPath(node.uri));
+ var filepath = resourceOutputPath(node.uri);
+ assert(filepath != null);
+ filepath = path.join(_options.outputDir, filepath);
var dir = path.dirname(filepath);
new Directory(dir).createSync(recursive: true);
var text = node.source.contents.data;
« no previous file with comments | « no previous file | lib/src/dependency_graph.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698