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

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

Issue 2879783002: Compute topologically sorted library cycles. (Closed)
Patch Set: 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
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 'lib/src/scanner', 108 'lib/src/scanner',
109 ]), 109 ]),
110 'lib/src/fasta/type_inference': new SubpackageRules(allowedDependencies: [ 110 'lib/src/fasta/type_inference': new SubpackageRules(allowedDependencies: [
111 'lib/src', 111 'lib/src',
112 'lib/src/base', 112 'lib/src/base',
113 'lib/src/fasta', 113 'lib/src/fasta',
114 ]), 114 ]),
115 'lib/src/fasta/util': new SubpackageRules(), 115 'lib/src/fasta/util': new SubpackageRules(),
116 'lib/src/incremental': new SubpackageRules(allowedDependencies: [ 116 'lib/src/incremental': new SubpackageRules(allowedDependencies: [
117 'lib', 117 'lib',
118 'lib/src',
118 'lib/src/fasta', 119 'lib/src/fasta',
119 'lib/src/fasta/parser', 120 'lib/src/fasta/parser',
120 'lib/src/fasta/source', 121 'lib/src/fasta/source',
121 ]), 122 ]),
122 'lib/src/scanner': new SubpackageRules(allowedDependencies: [ 123 'lib/src/scanner': new SubpackageRules(allowedDependencies: [
123 'lib/src/base', 124 'lib/src/base',
124 // For error codes. 125 // For error codes.
125 'lib/src/fasta', 126 'lib/src/fasta',
126 // fasta scanner produces analyzer scanner tokens 127 // fasta scanner produces analyzer scanner tokens
127 'lib/src/fasta/scanner', 128 'lib/src/fasta/scanner',
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 if (subpackageRules[subpackage].allowSubdirs) { 285 if (subpackageRules[subpackage].allowSubdirs) {
285 subpackageRules[subpackage].actuallyHasSubdirs = true; 286 subpackageRules[subpackage].actuallyHasSubdirs = true;
286 } else { 287 } else {
287 problem('Uri $src is in a subfolder of $subpackage, but that ' 288 problem('Uri $src is in a subfolder of $subpackage, but that '
288 'subpackage does not allow dart files in subdirectories.'); 289 'subpackage does not allow dart files in subdirectories.');
289 } 290 }
290 } 291 }
291 return subpackage; 292 return subpackage;
292 } 293 }
293 } 294 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698