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

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

Issue 2823243002: Introduce initial plumbing for type inference in fasta. (Closed)
Patch Set: Created 3 years, 8 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 'lib/src/fasta', 61 'lib/src/fasta',
62 'lib/src/fasta/kernel', 62 'lib/src/fasta/kernel',
63 ]), 63 ]),
64 'lib/src/fasta/kernel': new SubpackageRules(allowedDependencies: [ 64 'lib/src/fasta/kernel': new SubpackageRules(allowedDependencies: [
65 'lib/src/fasta', 65 'lib/src/fasta',
66 'lib/src/fasta/builder', 66 'lib/src/fasta/builder',
67 'lib/src/fasta/dill', 67 'lib/src/fasta/dill',
68 'lib/src/fasta/parser', 68 'lib/src/fasta/parser',
69 'lib/src/fasta/scanner', 69 'lib/src/fasta/scanner',
70 'lib/src/fasta/source', 70 'lib/src/fasta/source',
71 'lib/src/fasta/type_inference',
71 'lib/src/fasta/util', 72 'lib/src/fasta/util',
72 ]), 73 ]),
73 'lib/src/fasta/parser': new SubpackageRules(allowedDependencies: [ 74 'lib/src/fasta/parser': new SubpackageRules(allowedDependencies: [
74 'lib/src/fasta', 75 'lib/src/fasta',
75 'lib/src/fasta/scanner', 76 'lib/src/fasta/scanner',
76 'lib/src/fasta/util', 77 'lib/src/fasta/util',
77 'lib/src/scanner', 78 'lib/src/scanner',
78 ]), 79 ]),
79 'lib/src/fasta/scanner': new SubpackageRules(allowedDependencies: [ 80 'lib/src/fasta/scanner': new SubpackageRules(allowedDependencies: [
80 'lib/src/fasta', 81 'lib/src/fasta',
81 // fasta scanner produces analyzer scanner tokens 82 // fasta scanner produces analyzer scanner tokens
82 'lib/src/scanner', 83 'lib/src/scanner',
83 'lib/src/fasta/util', 84 'lib/src/fasta/util',
84 ]), 85 ]),
85 'lib/src/fasta/source': new SubpackageRules(allowedDependencies: [ 86 'lib/src/fasta/source': new SubpackageRules(allowedDependencies: [
86 'lib/src/fasta', 87 'lib/src/fasta',
87 'lib/src/fasta/builder', 88 'lib/src/fasta/builder',
88 'lib/src/fasta/dill', 89 'lib/src/fasta/dill',
89 'lib/src/fasta/kernel', 90 'lib/src/fasta/kernel',
90 'lib/src/fasta/parser', 91 'lib/src/fasta/parser',
91 'lib/src/fasta/scanner', 92 'lib/src/fasta/scanner',
93 'lib/src/fasta/type_inference',
92 'lib/src/fasta/util', 94 'lib/src/fasta/util',
93 ]), 95 ]),
94 'lib/src/fasta/testing': 96 'lib/src/fasta/testing':
95 new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [ 97 new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [
96 'lib/src/fasta', 98 'lib/src/fasta',
97 'lib/src/fasta/dill', 99 'lib/src/fasta/dill',
98 'lib/src/fasta/kernel', 100 'lib/src/fasta/kernel',
99 'lib/src/fasta/analyzer', 101 'lib/src/fasta/analyzer',
100 'lib/src/fasta/scanner', 102 'lib/src/fasta/scanner',
101 ]), 103 ]),
104 'lib/src/fasta/type_inference': new SubpackageRules(),
102 'lib/src/fasta/util': new SubpackageRules(), 105 'lib/src/fasta/util': new SubpackageRules(),
103 'lib/src/scanner': new SubpackageRules(allowedDependencies: [ 106 'lib/src/scanner': new SubpackageRules(allowedDependencies: [
104 'lib/src/base', 107 'lib/src/base',
105 // For error codes. 108 // For error codes.
106 'lib/src/fasta', 109 'lib/src/fasta',
107 // fasta scanner produces analyzer scanner tokens 110 // fasta scanner produces analyzer scanner tokens
108 'lib/src/fasta/scanner', 111 'lib/src/fasta/scanner',
109 ]), 112 ]),
110 }; 113 };
111 114
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 if (subpackageRules[subpackage].allowSubdirs) { 268 if (subpackageRules[subpackage].allowSubdirs) {
266 subpackageRules[subpackage].actuallyHasSubdirs = true; 269 subpackageRules[subpackage].actuallyHasSubdirs = true;
267 } else { 270 } else {
268 problem('Uri $src is in a subfolder of $subpackage, but that ' 271 problem('Uri $src is in a subfolder of $subpackage, but that '
269 'subpackage does not allow dart files in subdirectories.'); 272 'subpackage does not allow dart files in subdirectories.');
270 } 273 }
271 } 274 }
272 return subpackage; 275 return subpackage;
273 } 276 }
274 } 277 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698