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 'lib/src/codegen': new SubpackageRules(), | 34 'lib/src/codegen': new SubpackageRules(), |
35 'lib/src/fasta': | 35 'lib/src/fasta': |
36 new SubpackageRules(mayImportAnalyzer: false, allowedDependencies: [ | 36 new SubpackageRules(mayImportAnalyzer: false, allowedDependencies: [ |
37 'lib/src/fasta/builder', | 37 'lib/src/fasta/builder', |
38 'lib/src/fasta/dill', | 38 'lib/src/fasta/dill', |
39 'lib/src/fasta/kernel', | 39 'lib/src/fasta/kernel', |
40 'lib/src/fasta/parser', | 40 'lib/src/fasta/parser', |
41 'lib/src/fasta/scanner', | 41 'lib/src/fasta/scanner', |
42 'lib/src/fasta/testing', | 42 'lib/src/fasta/testing', |
43 'lib/src/fasta/util', | 43 'lib/src/fasta/util', |
| 44 'lib/src/scanner', |
44 ]), | 45 ]), |
45 'lib/src/fasta/analyzer': | 46 'lib/src/fasta/analyzer': |
46 new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [ | 47 new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [ |
47 'lib/src/fasta', | 48 'lib/src/fasta', |
48 'lib/src/fasta/builder', | 49 'lib/src/fasta/builder', |
49 'lib/src/fasta/dill', | 50 'lib/src/fasta/dill', |
50 'lib/src/fasta/kernel', | 51 'lib/src/fasta/kernel', |
51 'lib/src/fasta/source', | 52 'lib/src/fasta/source', |
52 ]), | 53 ]), |
53 'lib/src/fasta/builder': new SubpackageRules(allowedDependencies: [ | 54 'lib/src/fasta/builder': new SubpackageRules(allowedDependencies: [ |
(...skipping 12 matching lines...) Expand all Loading... |
66 'lib/src/fasta/dill', | 67 'lib/src/fasta/dill', |
67 'lib/src/fasta/parser', | 68 'lib/src/fasta/parser', |
68 'lib/src/fasta/scanner', | 69 'lib/src/fasta/scanner', |
69 'lib/src/fasta/source', | 70 'lib/src/fasta/source', |
70 'lib/src/fasta/util', | 71 'lib/src/fasta/util', |
71 ]), | 72 ]), |
72 'lib/src/fasta/parser': new SubpackageRules(allowedDependencies: [ | 73 'lib/src/fasta/parser': new SubpackageRules(allowedDependencies: [ |
73 'lib/src/fasta', | 74 'lib/src/fasta', |
74 'lib/src/fasta/scanner', | 75 'lib/src/fasta/scanner', |
75 'lib/src/fasta/util', | 76 'lib/src/fasta/util', |
| 77 'lib/src/scanner', |
76 ]), | 78 ]), |
77 'lib/src/fasta/scanner': new SubpackageRules(allowedDependencies: [ | 79 'lib/src/fasta/scanner': new SubpackageRules(allowedDependencies: [ |
78 'lib/src/fasta', | 80 'lib/src/fasta', |
79 // fasta scanner produces analyzer scanner tokens | 81 // fasta scanner produces analyzer scanner tokens |
80 'lib/src/scanner', | 82 'lib/src/scanner', |
81 'lib/src/fasta/util', | 83 'lib/src/fasta/util', |
82 ]), | 84 ]), |
83 'lib/src/fasta/source': new SubpackageRules(allowedDependencies: [ | 85 'lib/src/fasta/source': new SubpackageRules(allowedDependencies: [ |
84 'lib/src/fasta', | 86 'lib/src/fasta', |
85 'lib/src/fasta/builder', | 87 'lib/src/fasta/builder', |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 if (subpackageRules[subpackage].allowSubdirs) { | 265 if (subpackageRules[subpackage].allowSubdirs) { |
264 subpackageRules[subpackage].actuallyHasSubdirs = true; | 266 subpackageRules[subpackage].actuallyHasSubdirs = true; |
265 } else { | 267 } else { |
266 problem('Uri $src is in a subfolder of $subpackage, but that ' | 268 problem('Uri $src is in a subfolder of $subpackage, but that ' |
267 'subpackage does not allow dart files in subdirectories.'); | 269 'subpackage does not allow dart files in subdirectories.'); |
268 } | 270 } |
269 } | 271 } |
270 return subpackage; | 272 return subpackage; |
271 } | 273 } |
272 } | 274 } |
OLD | NEW |