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

Unified Diff: pkg/front_end/lib/src/dependency_grapher_impl.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/lib/src/dependency_grapher_impl.dart
diff --git a/pkg/front_end/lib/src/dependency_grapher_impl.dart b/pkg/front_end/lib/src/dependency_grapher_impl.dart
index 5dbe12d998d7f96c0bdbb839d03b8abeab5d07e7..6a480e8014922716e8a146b18461ad4d3df9edd9 100644
--- a/pkg/front_end/lib/src/dependency_grapher_impl.dart
+++ b/pkg/front_end/lib/src/dependency_grapher_impl.dart
@@ -105,7 +105,7 @@ class _WalkerNode extends Node<_WalkerNode> {
// in the proper way and continue.
throw new StateError('Invalid URI: $uri');
}
- var contents = await walker.fileSystem.entityForPath(path).readAsString();
+ var contents = await walker.fileSystem.entityForUri(path).readAsString();
danrubel 2017/01/08 17:07:38 rename "path" to "resolvedUri" ? "fileUri"?
var scanner = new _Scanner(contents);
var token = scanner.tokenize();
// TODO(paulberry): report errors.

Powered by Google App Engine
This is Rietveld 408576698