| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.barback.dependency_computer; | |
| 6 | |
| 7 import 'package:barback/barback.dart'; | 5 import 'package:barback/barback.dart'; |
| 8 import 'package:path/path.dart' as p; | 6 import 'package:path/path.dart' as p; |
| 9 | 7 |
| 10 import '../dart.dart'; | 8 import '../dart.dart'; |
| 11 import '../io.dart'; | 9 import '../io.dart'; |
| 12 import '../package.dart'; | 10 import '../package.dart'; |
| 13 import '../package_graph.dart'; | 11 import '../package_graph.dart'; |
| 14 import '../pubspec.dart'; | 12 import '../pubspec.dart'; |
| 15 import '../utils.dart'; | 13 import '../utils.dart'; |
| 16 import 'cycle_exception.dart'; | 14 import 'cycle_exception.dart'; |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 return null; | 452 return null; |
| 455 } | 453 } |
| 456 | 454 |
| 457 _directives[libraryUri] = | 455 _directives[libraryUri] = |
| 458 parseImportsAndExports(readTextFile(library), name: library) | 456 parseImportsAndExports(readTextFile(library), name: library) |
| 459 .map((directive) => Uri.parse(directive.uri.stringValue)) | 457 .map((directive) => Uri.parse(directive.uri.stringValue)) |
| 460 .toSet(); | 458 .toSet(); |
| 461 return _directives[libraryUri]; | 459 return _directives[libraryUri]; |
| 462 } | 460 } |
| 463 } | 461 } |
| OLD | NEW |