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

Unified Diff: pkg/front_end/tool/example.dart

Issue 2614063007: Use URIs rather than paths in front end API. (Closed)
Patch Set: Minor fixes Created 3 years, 11 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: pkg/front_end/tool/example.dart
diff --git a/pkg/front_end/tool/example.dart b/pkg/front_end/tool/example.dart
index 1d49b228759959446c8f8ffb560b6f9a4747ed5a..a637a7ffad9dbafa76843feb6d820e30e135edcc 100644
--- a/pkg/front_end/tool/example.dart
+++ b/pkg/front_end/tool/example.dart
@@ -13,8 +13,8 @@ Future dumpToSink(Program program, StreamSink<List<int>> sink) {
Future kernelToSink(Uri entry, StreamSink<List<int>> sink) async {
var program = await kernelForProgram(entry,
new CompilerOptions()
- ..sdkPath = 'sdk'
- ..packagesFilePath = '.packages'
+ ..sdkPath = new Uri.file('sdk')
+ ..packagesFilePath = new Uri.file('.packages')
..onError = (e) => print(e.message));
await dumpToSink(program, sink);

Powered by Google App Engine
This is Rietveld 408576698