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

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

Issue 3003743002: Move tools to tool folder. (Closed)
Patch Set: Fix two problems that show up elsewhere. Created 3 years, 3 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 'lib/src/byte_store', 59 'lib/src/byte_store',
60 'lib/src/fasta', 60 'lib/src/fasta',
61 'lib/src/fasta/util', 61 'lib/src/fasta/util',
62 ]), 62 ]),
63 // Note: byte_store should never depend on other parts of front_end, since we 63 // Note: byte_store should never depend on other parts of front_end, since we
64 // may want to move it to its own package someday. 64 // may want to move it to its own package someday.
65 'lib/src/byte_store': new SubpackageRules(allowedDependencies: []), 65 'lib/src/byte_store': new SubpackageRules(allowedDependencies: []),
66 'lib/src/codegen': new SubpackageRules(), 66 'lib/src/codegen': new SubpackageRules(),
67 'lib/src/fasta': new SubpackageRules(allowedDependencies: [ 67 'lib/src/fasta': new SubpackageRules(allowedDependencies: [
68 'lib', 68 'lib',
69 'lib/src',
70 'lib/src/base', 69 'lib/src/base',
71 'lib/src/fasta/builder', 70 'lib/src/fasta/builder',
72 'lib/src/fasta/dill', 71 'lib/src/fasta/dill',
73 'lib/src/fasta/kernel', 72 'lib/src/fasta/kernel',
74 'lib/src/fasta/parser', 73 'lib/src/fasta/parser',
75 'lib/src/fasta/scanner', 74 'lib/src/fasta/scanner',
76 'lib/src/fasta/testing',
77 'lib/src/fasta/util', 75 'lib/src/fasta/util',
78 'lib/src/scanner', 76 'lib/src/scanner',
79 ]), 77 ]),
80 'lib/src/fasta/builder': new SubpackageRules(allowedDependencies: [ 78 'lib/src/fasta/builder': new SubpackageRules(allowedDependencies: [
81 'lib/src/fasta', 79 'lib/src/fasta',
82 'lib/src/fasta/parser', 80 'lib/src/fasta/parser',
83 'lib/src/fasta/source', 81 'lib/src/fasta/source',
84 'lib/src/fasta/util', 82 'lib/src/fasta/util',
85 ]), 83 ]),
86 'lib/src/fasta/dill': new SubpackageRules(allowedDependencies: [ 84 'lib/src/fasta/dill': new SubpackageRules(allowedDependencies: [
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 if (subpackageRules[subpackage].allowSubdirs) { 320 if (subpackageRules[subpackage].allowSubdirs) {
323 subpackageRules[subpackage].actuallyHasSubdirs = true; 321 subpackageRules[subpackage].actuallyHasSubdirs = true;
324 } else { 322 } else {
325 problem('Uri $src is in a subfolder of $subpackage, but that ' 323 problem('Uri $src is in a subfolder of $subpackage, but that '
326 'subpackage does not allow dart files in subdirectories.'); 324 'subpackage does not allow dart files in subdirectories.');
327 } 325 }
328 } 326 }
329 return subpackage; 327 return subpackage;
330 } 328 }
331 } 329 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698