| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'dart:io'; | 6 import 'dart:io'; |
| 7 | 7 |
| 8 import 'package:front_end/compiler_options.dart'; | 8 import 'package:front_end/compiler_options.dart'; |
| 9 import 'package:front_end/dependency_grapher.dart'; | 9 import 'package:front_end/dependency_grapher.dart'; |
| 10 import 'package:path/path.dart' as pathos; | 10 import 'package:path/path.dart' as pathos; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 /// | 34 /// |
| 35 /// Each listed directory is considered a subpackage. Each package contains all | 35 /// Each listed directory is considered a subpackage. Each package contains all |
| 36 /// of its descendant files that are not in a more deeply nested subpackage. | 36 /// of its descendant files that are not in a more deeply nested subpackage. |
| 37 /// | 37 /// |
| 38 /// TODO(paulberry): stuff in lib/src shouldn't depend on lib; lib should just | 38 /// TODO(paulberry): stuff in lib/src shouldn't depend on lib; lib should just |
| 39 /// re-export stuff in lib/src. | 39 /// re-export stuff in lib/src. |
| 40 final subpackageRules = { | 40 final subpackageRules = { |
| 41 'lib': new SubpackageRules(allowedDependencies: [ | 41 'lib': new SubpackageRules(allowedDependencies: [ |
| 42 'lib/src', | 42 'lib/src', |
| 43 'lib/src/base', | 43 'lib/src/base', |
| 44 'lib/src/fasta', |
| 44 'lib/src/incremental', | 45 'lib/src/incremental', |
| 45 ]), | 46 ]), |
| 46 'lib/src': new SubpackageRules(allowedDependencies: [ | 47 'lib/src': new SubpackageRules(allowedDependencies: [ |
| 47 'lib', | 48 'lib', |
| 48 'lib/src/base', | 49 'lib/src/base', |
| 49 'lib/src/fasta', | 50 'lib/src/fasta', |
| 50 "lib/src/fasta/dill", | 51 "lib/src/fasta/dill", |
| 51 "lib/src/fasta/kernel", | 52 "lib/src/fasta/kernel", |
| 52 'lib/src/fasta/source', | 53 'lib/src/fasta/source', |
| 53 'lib/src/incremental', | 54 'lib/src/incremental', |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 if (subpackageRules[subpackage].allowSubdirs) { | 317 if (subpackageRules[subpackage].allowSubdirs) { |
| 317 subpackageRules[subpackage].actuallyHasSubdirs = true; | 318 subpackageRules[subpackage].actuallyHasSubdirs = true; |
| 318 } else { | 319 } else { |
| 319 problem('Uri $src is in a subfolder of $subpackage, but that ' | 320 problem('Uri $src is in a subfolder of $subpackage, but that ' |
| 320 'subpackage does not allow dart files in subdirectories.'); | 321 'subpackage does not allow dart files in subdirectories.'); |
| 321 } | 322 } |
| 322 } | 323 } |
| 323 return subpackage; | 324 return subpackage; |
| 324 } | 325 } |
| 325 } | 326 } |
| OLD | NEW |