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

Unified Diff: pkg/fasta/lib/src/translate_uri.dart

Issue 2641833004: Don't crash on missing dart: URI. (Closed)
Patch Set: 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
« 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/fasta/lib/src/translate_uri.dart
diff --git a/pkg/fasta/lib/src/translate_uri.dart b/pkg/fasta/lib/src/translate_uri.dart
index 6af35a9b7cc804f3ab817755e9330b41f262a38d..5ca6eae58450ea46300c73d4e1d9d699742463c4 100644
--- a/pkg/fasta/lib/src/translate_uri.dart
+++ b/pkg/fasta/lib/src/translate_uri.dart
@@ -13,9 +13,6 @@ import 'dart:io' show
import 'package:package_config/packages_file.dart' as packages_file show
parse;
-import 'errors.dart' show
- internalError;
-
class TranslateUri {
final Map<String, Uri> packages;
@@ -27,9 +24,9 @@ class TranslateUri {
return null;
}
- Uri translateDartUri(Uri uri) {
- throw internalError("dart: URIs not implemented yet.");
- }
+ // TODO(ahe): Implement loading platform file on demand. This method must
+ // become async for that to happen.
+ Uri translateDartUri(Uri uri) => null;
Uri translatePackageUri(Uri uri) {
int index = uri.path.indexOf("/");
« 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