Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Side by Side Diff: pkg/front_end/test/subpackage_relationships_test.dart

Issue 2865253003: (Reland) Start using FileState/FileSystemState to provide consistent view. (Closed)
Patch Set: New changes. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/front_end/test/incremental_kernel_generator_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 19 matching lines...) Expand all
30 'lib/src/fasta/dill', 30 'lib/src/fasta/dill',
31 'lib/src/fasta/kernel' 31 'lib/src/fasta/kernel'
32 ]), 32 ]),
33 'lib/src': new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [ 33 'lib/src': new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [
34 'lib', 34 'lib',
35 'lib/src/base', 35 'lib/src/base',
36 'lib/src/fasta', 36 'lib/src/fasta',
37 "lib/src/fasta/dill", 37 "lib/src/fasta/dill",
38 "lib/src/fasta/kernel", 38 "lib/src/fasta/kernel",
39 'lib/src/fasta/source', 39 'lib/src/fasta/source',
40 'lib/src/incremental',
40 ]), 41 ]),
41 'lib/src/base': new SubpackageRules( 42 'lib/src/base': new SubpackageRules(
42 mayImportAnalyzer: true, allowedDependencies: ['lib', "lib/src/fasta"]), 43 mayImportAnalyzer: true, allowedDependencies: ['lib', "lib/src/fasta"]),
43 'lib/src/codegen': new SubpackageRules(), 44 'lib/src/codegen': new SubpackageRules(),
44 'lib/src/fasta': new SubpackageRules(allowedDependencies: [ 45 'lib/src/fasta': new SubpackageRules(allowedDependencies: [
45 'lib', 46 'lib',
46 'lib/src/fasta/builder', 47 'lib/src/fasta/builder',
47 'lib/src/fasta/dill', 48 'lib/src/fasta/dill',
48 'lib/src/fasta/kernel', 49 'lib/src/fasta/kernel',
49 'lib/src/fasta/parser', 50 'lib/src/fasta/parser',
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 'lib/src/fasta/kernel', 106 'lib/src/fasta/kernel',
106 'lib/src/fasta/scanner', 107 'lib/src/fasta/scanner',
107 'lib/src/scanner', 108 'lib/src/scanner',
108 ]), 109 ]),
109 'lib/src/fasta/type_inference': new SubpackageRules(allowedDependencies: [ 110 'lib/src/fasta/type_inference': new SubpackageRules(allowedDependencies: [
110 'lib/src', 111 'lib/src',
111 'lib/src/base', 112 'lib/src/base',
112 'lib/src/fasta', 113 'lib/src/fasta',
113 ]), 114 ]),
114 'lib/src/fasta/util': new SubpackageRules(), 115 'lib/src/fasta/util': new SubpackageRules(),
116 'lib/src/incremental': new SubpackageRules(allowedDependencies: [
117 'lib',
118 'lib/src/fasta',
119 'lib/src/fasta/parser',
120 'lib/src/fasta/source',
121 ]),
115 'lib/src/scanner': new SubpackageRules(allowedDependencies: [ 122 'lib/src/scanner': new SubpackageRules(allowedDependencies: [
116 'lib/src/base', 123 'lib/src/base',
117 // For error codes. 124 // For error codes.
118 'lib/src/fasta', 125 'lib/src/fasta',
119 // fasta scanner produces analyzer scanner tokens 126 // fasta scanner produces analyzer scanner tokens
120 'lib/src/fasta/scanner', 127 'lib/src/fasta/scanner',
121 ]), 128 ]),
122 }; 129 };
123 130
124 /// Rules for what a subpackage may depend directly on. 131 /// Rules for what a subpackage may depend directly on.
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 if (subpackageRules[subpackage].allowSubdirs) { 284 if (subpackageRules[subpackage].allowSubdirs) {
278 subpackageRules[subpackage].actuallyHasSubdirs = true; 285 subpackageRules[subpackage].actuallyHasSubdirs = true;
279 } else { 286 } else {
280 problem('Uri $src is in a subfolder of $subpackage, but that ' 287 problem('Uri $src is in a subfolder of $subpackage, but that '
281 'subpackage does not allow dart files in subdirectories.'); 288 'subpackage does not allow dart files in subdirectories.');
282 } 289 }
283 } 290 }
284 return subpackage; 291 return subpackage;
285 } 292 }
286 } 293 }
OLDNEW
« no previous file with comments | « pkg/front_end/test/incremental_kernel_generator_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698