OLD | NEW |
(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 } |
OLD | NEW |