| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library pub.pubspec; | |
| 6 | |
| 7 import 'package:path/path.dart' as path; | 5 import 'package:path/path.dart' as path; |
| 8 import 'package:pub_semver/pub_semver.dart'; | 6 import 'package:pub_semver/pub_semver.dart'; |
| 9 import 'package:source_span/source_span.dart'; | 7 import 'package:source_span/source_span.dart'; |
| 10 import 'package:yaml/yaml.dart'; | 8 import 'package:yaml/yaml.dart'; |
| 11 | 9 |
| 12 import 'barback/transformer_config.dart'; | 10 import 'barback/transformer_config.dart'; |
| 13 import 'exceptions.dart'; | 11 import 'exceptions.dart'; |
| 14 import 'io.dart'; | 12 import 'io.dart'; |
| 15 import 'package.dart'; | 13 import 'package.dart'; |
| 16 import 'source_registry.dart'; | 14 import 'source_registry.dart'; |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 implements ApplicationException { | 608 implements ApplicationException { |
| 611 PubspecException(String message, SourceSpan span) | 609 PubspecException(String message, SourceSpan span) |
| 612 : super(message, span); | 610 : super(message, span); |
| 613 } | 611 } |
| 614 | 612 |
| 615 /// Returns whether [uri] is a file URI. | 613 /// Returns whether [uri] is a file URI. |
| 616 /// | 614 /// |
| 617 /// This is slightly more complicated than just checking if the scheme is | 615 /// This is slightly more complicated than just checking if the scheme is |
| 618 /// 'file', since relative URIs also refer to the filesystem on the VM. | 616 /// 'file', since relative URIs also refer to the filesystem on the VM. |
| 619 bool _isFileUri(Uri uri) => uri.scheme == 'file' || uri.scheme == ''; | 617 bool _isFileUri(Uri uri) => uri.scheme == 'file' || uri.scheme == ''; |
| OLD | NEW |