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

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

Issue 2869563002: Initial version of Fasta based IncrementalKernelGenerator. (Closed)
Patch Set: Add mock SDK. 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 16 matching lines...) Expand all
27 'lib/src', 27 'lib/src',
28 'lib/src/base', 28 'lib/src/base',
29 'lib/src/fasta', 29 'lib/src/fasta',
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",
38 "lib/src/fasta/kernel",
37 'lib/src/fasta/source', 39 'lib/src/fasta/source',
38 ]), 40 ]),
39 'lib/src/base': new SubpackageRules( 41 'lib/src/base': new SubpackageRules(
40 mayImportAnalyzer: true, allowedDependencies: ['lib']), 42 mayImportAnalyzer: true, allowedDependencies: ['lib', "lib/src/fasta"]),
41 'lib/src/codegen': new SubpackageRules(), 43 'lib/src/codegen': new SubpackageRules(),
42 'lib/src/fasta': new SubpackageRules(allowedDependencies: [ 44 'lib/src/fasta': new SubpackageRules(allowedDependencies: [
43 'lib', 45 'lib',
44 'lib/src/fasta/builder', 46 'lib/src/fasta/builder',
45 'lib/src/fasta/dill', 47 'lib/src/fasta/dill',
46 'lib/src/fasta/kernel', 48 'lib/src/fasta/kernel',
47 'lib/src/fasta/parser', 49 'lib/src/fasta/parser',
48 'lib/src/fasta/scanner', 50 'lib/src/fasta/scanner',
49 'lib/src/fasta/testing', 51 'lib/src/fasta/testing',
50 'lib/src/fasta/util', 52 'lib/src/fasta/util',
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 if (subpackageRules[subpackage].allowSubdirs) { 276 if (subpackageRules[subpackage].allowSubdirs) {
275 subpackageRules[subpackage].actuallyHasSubdirs = true; 277 subpackageRules[subpackage].actuallyHasSubdirs = true;
276 } else { 278 } else {
277 problem('Uri $src is in a subfolder of $subpackage, but that ' 279 problem('Uri $src is in a subfolder of $subpackage, but that '
278 'subpackage does not allow dart files in subdirectories.'); 280 'subpackage does not allow dart files in subdirectories.');
279 } 281 }
280 } 282 }
281 return subpackage; 283 return subpackage;
282 } 284 }
283 } 285 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698