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

Unified Diff: pkg/front_end/lib/src/fasta/source/source_loader.dart

Issue 3006483002: Remove check for scheme in source-loader. (Closed)
Patch Set: Created 3 years, 4 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/front_end/lib/src/fasta/source/source_loader.dart
diff --git a/pkg/front_end/lib/src/fasta/source/source_loader.dart b/pkg/front_end/lib/src/fasta/source/source_loader.dart
index 638598d4494f17fb86f20b74a180dbf487d1cbcd..c15da0140620f092b8d7e315ffc73954c4c13467 100644
--- a/pkg/front_end/lib/src/fasta/source/source_loader.dart
+++ b/pkg/front_end/lib/src/fasta/source/source_loader.dart
@@ -96,12 +96,6 @@ class SourceLoader<L> extends Loader<L> {
Future<Token> tokenize(SourceLibraryBuilder library,
{bool suppressLexicalErrors: false}) async {
Uri uri = library.fileUri;
- // TODO(sigmund): source-loader shouldn't check schemes, but defer to the
- // underlying file system to decide whether it is supported.
- if (uri == null || uri.scheme != "file" && uri.scheme != "multi-root") {
Siggi Cherem (dart-lang) 2017/08/23 20:38:33 note that the `fileSystem.entityForUri` call below
ahe 2017/08/24 10:08:53 The following situations are still erroneous at th
Siggi Cherem (dart-lang) 2017/08/24 18:55:19 Done - as you suggested now I'm checking for null
ahe 2017/08/25 08:52:31 That's odd. When I ran the test with this code rem
- return deprecated_inputError(
- library.uri, -1, "Not found: ${library.uri}.");
- }
// Get the library text from the cache, or read from the file system.
List<int> bytes = sourceBytes[uri];
« 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