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

Side by Side Diff: lib/src/no_package_resolver.dart

Issue 2132443003: Add package implementation. (Closed) Base URL: git@github.com:dart-lang/package_resolver@master
Patch Set: Code review changes Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « lib/src/current_isolate_resolver.dart ('k') | lib/src/package_config_resolver.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'async_package_resolver.dart';
6 import 'package_resolver.dart';
7 import 'sync_package_resolver.dart';
8 import 'utils.dart';
9
10 /// A package resolution strategy that is unable to resolve any `package:` URIs.
11 class NoPackageResolver implements SyncPackageResolver {
12 Map<String, Uri> get packageConfigMap => null;
13 Uri get packageConfigUri => null;
14 Uri get packageRoot => null;
15 String get processArgument => null;
16
17 PackageResolver get asAsync => new AsyncPackageResolver(this);
18
19 Uri resolveUri(packageUri) {
20 // Verify that the URI is valid.
21 asPackageUri(packageUri, "packageUri");
22 return null;
23 }
24
25 Uri urlFor(String package, [String path]) => null;
26
27 Uri packageUriFor(url) {
28 // Verify that the URI is a valid type.
29 asUri(url, "url");
30 return null;
31 }
32
33 String packagePath(String package) => null;
34 }
OLDNEW
« no previous file with comments | « lib/src/current_isolate_resolver.dart ('k') | lib/src/package_config_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698