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

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

Issue 2676823002: Add option --compile-sdk to fasta compile and run. (Closed)
Patch Set: Created 3 years, 10 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 'lib/src/fasta/util', 83 'lib/src/fasta/util',
84 ]), 84 ]),
85 'lib/src/fasta/source': new SubpackageRules(allowedDependencies: [ 85 'lib/src/fasta/source': new SubpackageRules(allowedDependencies: [
86 'lib/src/fasta', 86 'lib/src/fasta',
87 'lib/src/fasta/analyzer', 87 'lib/src/fasta/analyzer',
88 'lib/src/fasta/builder', 88 'lib/src/fasta/builder',
89 'lib/src/fasta/dill', 89 'lib/src/fasta/dill',
90 'lib/src/fasta/kernel', 90 'lib/src/fasta/kernel',
91 'lib/src/fasta/parser', 91 'lib/src/fasta/parser',
92 'lib/src/fasta/scanner', 92 'lib/src/fasta/scanner',
93 'lib/src/fasta/util',
93 ]), 94 ]),
94 'lib/src/fasta/testing': 95 'lib/src/fasta/testing':
95 new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [ 96 new SubpackageRules(mayImportAnalyzer: true, allowedDependencies: [
96 'lib/src/fasta', 97 'lib/src/fasta',
97 'lib/src/fasta/dill', 98 'lib/src/fasta/dill',
98 'lib/src/fasta/kernel', 99 'lib/src/fasta/kernel',
99 ]), 100 ]),
100 'lib/src/fasta/util': new SubpackageRules(), 101 'lib/src/fasta/util': new SubpackageRules(),
101 'lib/src/scanner': new SubpackageRules(allowedDependencies: [ 102 'lib/src/scanner': new SubpackageRules(allowedDependencies: [
102 'lib/src/base', 103 'lib/src/base',
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 problem('Uri $src is inside package:front_end but is not in any known ' 227 problem('Uri $src is inside package:front_end but is not in any known '
227 'subpackage'); 228 'subpackage');
228 } else if (!subpackageRules[subpackage].allowSubdirs && 229 } else if (!subpackageRules[subpackage].allowSubdirs &&
229 pathWithinSubpackage.contains('/')) { 230 pathWithinSubpackage.contains('/')) {
230 problem('Uri $src is in a subfolder of $subpackage, but that ' 231 problem('Uri $src is in a subfolder of $subpackage, but that '
231 'subpackage does not allow dart files in subdirectories.'); 232 'subpackage does not allow dart files in subdirectories.');
232 } 233 }
233 return subpackage; 234 return subpackage;
234 } 235 }
235 } 236 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698