| 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 17 matching lines...) Expand all Loading... |
| 28 allowedDependencies: ['lib/src', 'lib/src/base']), | 28 allowedDependencies: ['lib/src', 'lib/src/base']), |
| 29 'lib/src': new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [ | 29 'lib/src': new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [ |
| 30 'lib', | 30 'lib', |
| 31 'lib/src/base', | 31 'lib/src/base', |
| 32 'lib/src/fasta', | 32 'lib/src/fasta', |
| 33 'lib/src/fasta/source', | 33 'lib/src/fasta/source', |
| 34 ]), | 34 ]), |
| 35 'lib/src/base': new SubpackageRules( | 35 'lib/src/base': new SubpackageRules( |
| 36 mayImportAnalyzer: true, allowedDependencies: ['lib']), | 36 mayImportAnalyzer: true, allowedDependencies: ['lib']), |
| 37 'lib/src/codegen': new SubpackageRules(), | 37 'lib/src/codegen': new SubpackageRules(), |
| 38 'lib/src/fasta': | 38 'lib/src/fasta': new SubpackageRules(allowedDependencies: [ |
| 39 new SubpackageRules(mayImportAnalyzer: false, allowedDependencies: [ | |
| 40 'lib/src/fasta/builder', | 39 'lib/src/fasta/builder', |
| 41 'lib/src/fasta/dill', | 40 'lib/src/fasta/dill', |
| 42 'lib/src/fasta/kernel', | 41 'lib/src/fasta/kernel', |
| 43 'lib/src/fasta/parser', | 42 'lib/src/fasta/parser', |
| 44 'lib/src/fasta/scanner', | 43 'lib/src/fasta/scanner', |
| 45 'lib/src/fasta/testing', | 44 'lib/src/fasta/testing', |
| 46 'lib/src/fasta/util', | 45 'lib/src/fasta/util', |
| 47 'lib/src/scanner', | 46 'lib/src/scanner', |
| 48 ]), | 47 ]), |
| 49 'lib/src/fasta/analyzer': | |
| 50 new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [ | |
| 51 'lib/src/fasta', | |
| 52 'lib/src/fasta/builder', | |
| 53 'lib/src/fasta/dill', | |
| 54 'lib/src/fasta/kernel', | |
| 55 'lib/src/fasta/source', | |
| 56 ]), | |
| 57 'lib/src/fasta/builder': new SubpackageRules(allowedDependencies: [ | 48 'lib/src/fasta/builder': new SubpackageRules(allowedDependencies: [ |
| 58 'lib/src/fasta', | 49 'lib/src/fasta', |
| 59 'lib/src/fasta/parser', | 50 'lib/src/fasta/parser', |
| 60 'lib/src/fasta/source', | 51 'lib/src/fasta/source', |
| 61 'lib/src/fasta/type_inference', | 52 'lib/src/fasta/type_inference', |
| 62 'lib/src/fasta/util', | 53 'lib/src/fasta/util', |
| 63 ]), | 54 ]), |
| 64 'lib/src/fasta/dill': new SubpackageRules(allowedDependencies: [ | 55 'lib/src/fasta/dill': new SubpackageRules(allowedDependencies: [ |
| 65 'lib/src/fasta', | 56 'lib/src/fasta', |
| 66 'lib/src/fasta/kernel', | 57 'lib/src/fasta/kernel', |
| (...skipping 25 matching lines...) Expand all Loading... |
| 92 'lib/src/fasta', | 83 'lib/src/fasta', |
| 93 'lib/src/base', | 84 'lib/src/base', |
| 94 'lib/src/fasta/builder', | 85 'lib/src/fasta/builder', |
| 95 'lib/src/fasta/dill', | 86 'lib/src/fasta/dill', |
| 96 'lib/src/fasta/kernel', | 87 'lib/src/fasta/kernel', |
| 97 'lib/src/fasta/parser', | 88 'lib/src/fasta/parser', |
| 98 'lib/src/fasta/scanner', | 89 'lib/src/fasta/scanner', |
| 99 'lib/src/fasta/type_inference', | 90 'lib/src/fasta/type_inference', |
| 100 'lib/src/fasta/util', | 91 'lib/src/fasta/util', |
| 101 ]), | 92 ]), |
| 102 'lib/src/fasta/testing': | 93 'lib/src/fasta/testing': new SubpackageRules(allowedDependencies: [ |
| 103 new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [ | |
| 104 'lib/src/fasta', | 94 'lib/src/fasta', |
| 105 'lib/src/base', | 95 'lib/src/base', |
| 106 'lib/src/fasta/dill', | |
| 107 'lib/src/fasta/kernel', | 96 'lib/src/fasta/kernel', |
| 108 'lib/src/fasta/analyzer', | |
| 109 'lib/src/fasta/scanner', | 97 'lib/src/fasta/scanner', |
| 110 ]), | 98 ]), |
| 111 'lib/src/fasta/type_inference': new SubpackageRules(allowedDependencies: [ | 99 'lib/src/fasta/type_inference': new SubpackageRules(allowedDependencies: [ |
| 112 'lib/src', | 100 'lib/src', |
| 113 'lib/src/base', | 101 'lib/src/base', |
| 114 'lib/src/fasta', | 102 'lib/src/fasta', |
| 115 ]), | 103 ]), |
| 116 'lib/src/fasta/util': new SubpackageRules(), | 104 'lib/src/fasta/util': new SubpackageRules(), |
| 117 'lib/src/scanner': new SubpackageRules(allowedDependencies: [ | 105 'lib/src/scanner': new SubpackageRules(allowedDependencies: [ |
| 118 'lib/src/base', | 106 'lib/src/base', |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 if (subpackageRules[subpackage].allowSubdirs) { | 267 if (subpackageRules[subpackage].allowSubdirs) { |
| 280 subpackageRules[subpackage].actuallyHasSubdirs = true; | 268 subpackageRules[subpackage].actuallyHasSubdirs = true; |
| 281 } else { | 269 } else { |
| 282 problem('Uri $src is in a subfolder of $subpackage, but that ' | 270 problem('Uri $src is in a subfolder of $subpackage, but that ' |
| 283 'subpackage does not allow dart files in subdirectories.'); | 271 'subpackage does not allow dart files in subdirectories.'); |
| 284 } | 272 } |
| 285 } | 273 } |
| 286 return subpackage; | 274 return subpackage; |
| 287 } | 275 } |
| 288 } | 276 } |
| OLD | NEW |