| 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 22 matching lines...) Expand all Loading... |
| 33 ]), | 33 ]), |
| 34 'lib/src': new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [ | 34 'lib/src': new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [ |
| 35 'lib', | 35 'lib', |
| 36 'lib/src/base', | 36 'lib/src/base', |
| 37 'lib/src/fasta', | 37 'lib/src/fasta', |
| 38 "lib/src/fasta/dill", | 38 "lib/src/fasta/dill", |
| 39 "lib/src/fasta/kernel", | 39 "lib/src/fasta/kernel", |
| 40 'lib/src/fasta/source', | 40 'lib/src/fasta/source', |
| 41 'lib/src/incremental', | 41 'lib/src/incremental', |
| 42 ]), | 42 ]), |
| 43 'lib/src/base': new SubpackageRules(allowedDependencies: [ | 43 'lib/src/base': new SubpackageRules( |
| 44 'lib', | 44 mayImportAnalyzer: true, |
| 45 'lib/src', | 45 allowedDependencies: ['lib', "lib/src/fasta", 'lib/src/incremental']), |
| 46 'lib/src/fasta', | |
| 47 'lib/src/incremental' | |
| 48 ]), | |
| 49 'lib/src/codegen': new SubpackageRules(), | 46 'lib/src/codegen': new SubpackageRules(), |
| 50 'lib/src/fasta': new SubpackageRules(allowedDependencies: [ | 47 'lib/src/fasta': new SubpackageRules(allowedDependencies: [ |
| 51 'lib', | 48 'lib', |
| 52 'lib/src/fasta/builder', | 49 'lib/src/fasta/builder', |
| 53 'lib/src/fasta/dill', | 50 'lib/src/fasta/dill', |
| 54 'lib/src/fasta/kernel', | 51 'lib/src/fasta/kernel', |
| 55 'lib/src/fasta/parser', | 52 'lib/src/fasta/parser', |
| 56 'lib/src/fasta/scanner', | 53 'lib/src/fasta/scanner', |
| 57 'lib/src/fasta/testing', | 54 'lib/src/fasta/testing', |
| 58 'lib/src/fasta/util', | 55 'lib/src/fasta/util', |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 if (subpackageRules[subpackage].allowSubdirs) { | 292 if (subpackageRules[subpackage].allowSubdirs) { |
| 296 subpackageRules[subpackage].actuallyHasSubdirs = true; | 293 subpackageRules[subpackage].actuallyHasSubdirs = true; |
| 297 } else { | 294 } else { |
| 298 problem('Uri $src is in a subfolder of $subpackage, but that ' | 295 problem('Uri $src is in a subfolder of $subpackage, but that ' |
| 299 'subpackage does not allow dart files in subdirectories.'); | 296 'subpackage does not allow dart files in subdirectories.'); |
| 300 } | 297 } |
| 301 } | 298 } |
| 302 return subpackage; | 299 return subpackage; |
| 303 } | 300 } |
| 304 } | 301 } |
| OLD | NEW |