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

Unified Diff: pkg/analyzer/lib/src/generated/source_io.dart

Issue 2386123004: Remove JavaFile.pathContext (Closed)
Patch Set: Created 4 years, 2 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 | « pkg/analyzer/lib/src/generated/java_io.dart ('k') | pkg/analyzer/test/generated/java_io_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/source_io.dart
diff --git a/pkg/analyzer/lib/src/generated/source_io.dart b/pkg/analyzer/lib/src/generated/source_io.dart
index 025e2095b3187669217ed8bd2381735e00cdd156..43dfb42947a6e0977e916b053dddcd9cda5b57b6 100644
--- a/pkg/analyzer/lib/src/generated/source_io.dart
+++ b/pkg/analyzer/lib/src/generated/source_io.dart
@@ -10,6 +10,7 @@ import 'package:analyzer/exception/exception.dart';
import 'package:analyzer/src/generated/engine.dart';
import 'package:analyzer/src/generated/java_io.dart';
import 'package:analyzer/src/generated/source.dart';
+import 'package:path/path.dart' as path;
export 'package:analyzer/src/generated/source.dart';
@@ -508,8 +509,7 @@ class PackageUriResolver extends UriResolver {
* Convert the given file path to a "file:" URI. On Windows, this transforms
* backslashes to forward slashes.
*/
- String _toFileUri(String filePath) =>
- JavaFile.pathContext.toUri(filePath).toString();
+ String _toFileUri(String filePath) => path.context.toUri(filePath).toString();
/**
* Return `true` if the given URI is a `package` URI.
« no previous file with comments | « pkg/analyzer/lib/src/generated/java_io.dart ('k') | pkg/analyzer/test/generated/java_io_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698