| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [ | 50 new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [ |
| 51 'lib/src/fasta', | 51 'lib/src/fasta', |
| 52 'lib/src/fasta/builder', | 52 'lib/src/fasta/builder', |
| 53 'lib/src/fasta/dill', | 53 'lib/src/fasta/dill', |
| 54 'lib/src/fasta/kernel', | 54 'lib/src/fasta/kernel', |
| 55 'lib/src/fasta/source', | 55 'lib/src/fasta/source', |
| 56 ]), | 56 ]), |
| 57 'lib/src/fasta/builder': new SubpackageRules(allowedDependencies: [ | 57 'lib/src/fasta/builder': new SubpackageRules(allowedDependencies: [ |
| 58 'lib/src/fasta', | 58 'lib/src/fasta', |
| 59 'lib/src/fasta/parser', | 59 'lib/src/fasta/parser', |
| 60 'lib/src/fasta/scanner', |
| 60 'lib/src/fasta/source', | 61 'lib/src/fasta/source', |
| 61 'lib/src/fasta/type_inference', | 62 'lib/src/fasta/type_inference', |
| 62 'lib/src/fasta/util', | 63 'lib/src/fasta/util', |
| 63 ]), | 64 ]), |
| 64 'lib/src/fasta/dill': new SubpackageRules(allowedDependencies: [ | 65 'lib/src/fasta/dill': new SubpackageRules(allowedDependencies: [ |
| 65 'lib/src/fasta', | 66 'lib/src/fasta', |
| 66 'lib/src/fasta/kernel', | 67 'lib/src/fasta/kernel', |
| 67 ]), | 68 ]), |
| 68 'lib/src/fasta/kernel': new SubpackageRules(allowedDependencies: [ | 69 'lib/src/fasta/kernel': new SubpackageRules(allowedDependencies: [ |
| 69 'lib/src/fasta', | 70 'lib/src/fasta', |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 if (subpackageRules[subpackage].allowSubdirs) { | 279 if (subpackageRules[subpackage].allowSubdirs) { |
| 279 subpackageRules[subpackage].actuallyHasSubdirs = true; | 280 subpackageRules[subpackage].actuallyHasSubdirs = true; |
| 280 } else { | 281 } else { |
| 281 problem('Uri $src is in a subfolder of $subpackage, but that ' | 282 problem('Uri $src is in a subfolder of $subpackage, but that ' |
| 282 'subpackage does not allow dart files in subdirectories.'); | 283 'subpackage does not allow dart files in subdirectories.'); |
| 283 } | 284 } |
| 284 } | 285 } |
| 285 return subpackage; | 286 return subpackage; |
| 286 } | 287 } |
| 287 } | 288 } |
| OLD | NEW |