| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 'lib/src/fasta', | 48 'lib/src/fasta', |
| 49 'lib/src/fasta/builder', | 49 'lib/src/fasta/builder', |
| 50 'lib/src/fasta/dill', | 50 'lib/src/fasta/dill', |
| 51 'lib/src/fasta/kernel', | 51 'lib/src/fasta/kernel', |
| 52 'lib/src/fasta/source', | 52 'lib/src/fasta/source', |
| 53 ]), | 53 ]), |
| 54 'lib/src/fasta/builder': new SubpackageRules(allowedDependencies: [ | 54 'lib/src/fasta/builder': new SubpackageRules(allowedDependencies: [ |
| 55 'lib/src/fasta', | 55 'lib/src/fasta', |
| 56 'lib/src/fasta/parser', | 56 'lib/src/fasta/parser', |
| 57 'lib/src/fasta/source', | 57 'lib/src/fasta/source', |
| 58 'lib/src/fasta/type_inference', |
| 58 'lib/src/fasta/util', | 59 'lib/src/fasta/util', |
| 59 ]), | 60 ]), |
| 60 'lib/src/fasta/dill': new SubpackageRules(allowedDependencies: [ | 61 'lib/src/fasta/dill': new SubpackageRules(allowedDependencies: [ |
| 61 'lib/src/fasta', | 62 'lib/src/fasta', |
| 62 'lib/src/fasta/kernel', | 63 'lib/src/fasta/kernel', |
| 63 ]), | 64 ]), |
| 64 'lib/src/fasta/kernel': new SubpackageRules(allowedDependencies: [ | 65 'lib/src/fasta/kernel': new SubpackageRules(allowedDependencies: [ |
| 65 'lib/src/fasta', | 66 'lib/src/fasta', |
| 66 'lib/src/base', | 67 'lib/src/base', |
| 67 'lib/src/fasta/builder', | 68 'lib/src/fasta/builder', |
| (...skipping 30 matching lines...) Expand all Loading... |
| 98 'lib/src/fasta/testing': | 99 'lib/src/fasta/testing': |
| 99 new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [ | 100 new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [ |
| 100 'lib/src/fasta', | 101 'lib/src/fasta', |
| 101 'lib/src/base', | 102 'lib/src/base', |
| 102 'lib/src/fasta/dill', | 103 'lib/src/fasta/dill', |
| 103 'lib/src/fasta/kernel', | 104 'lib/src/fasta/kernel', |
| 104 'lib/src/fasta/analyzer', | 105 'lib/src/fasta/analyzer', |
| 105 'lib/src/fasta/scanner', | 106 'lib/src/fasta/scanner', |
| 106 ]), | 107 ]), |
| 107 'lib/src/fasta/type_inference': new SubpackageRules(allowedDependencies: [ | 108 'lib/src/fasta/type_inference': new SubpackageRules(allowedDependencies: [ |
| 109 'lib/src', |
| 108 'lib/src/base', | 110 'lib/src/base', |
| 109 ]), | 111 ]), |
| 110 'lib/src/fasta/util': new SubpackageRules(), | 112 'lib/src/fasta/util': new SubpackageRules(), |
| 111 'lib/src/scanner': new SubpackageRules(allowedDependencies: [ | 113 'lib/src/scanner': new SubpackageRules(allowedDependencies: [ |
| 112 'lib/src/base', | 114 'lib/src/base', |
| 113 // For error codes. | 115 // For error codes. |
| 114 'lib/src/fasta', | 116 'lib/src/fasta', |
| 115 // fasta scanner produces analyzer scanner tokens | 117 // fasta scanner produces analyzer scanner tokens |
| 116 'lib/src/fasta/scanner', | 118 'lib/src/fasta/scanner', |
| 117 ]), | 119 ]), |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 if (subpackageRules[subpackage].allowSubdirs) { | 275 if (subpackageRules[subpackage].allowSubdirs) { |
| 274 subpackageRules[subpackage].actuallyHasSubdirs = true; | 276 subpackageRules[subpackage].actuallyHasSubdirs = true; |
| 275 } else { | 277 } else { |
| 276 problem('Uri $src is in a subfolder of $subpackage, but that ' | 278 problem('Uri $src is in a subfolder of $subpackage, but that ' |
| 277 'subpackage does not allow dart files in subdirectories.'); | 279 'subpackage does not allow dart files in subdirectories.'); |
| 278 } | 280 } |
| 279 } | 281 } |
| 280 return subpackage; | 282 return subpackage; |
| 281 } | 283 } |
| 282 } | 284 } |
| OLD | NEW |