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

Side by Side Diff: tests/compiler/dart2js/analyze_test_test.dart

Issue 1601383003: Add mirrors to whitelist again. It was removed in a previous cl, because it was (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 library dart2js.analyze_test.test; 5 library dart2js.analyze_test.test;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:async_helper/async_helper.dart'; 9 import 'package:async_helper/async_helper.dart';
10 import 'package:compiler/src/apiimpl.dart' show 10 import 'package:compiler/src/apiimpl.dart' show
(...skipping 11 matching lines...) Expand all
22 * Map of white-listed warnings and errors. 22 * Map of white-listed warnings and errors.
23 * 23 *
24 * Use an identifiable suffix of the file uri as key. Use a fixed substring of 24 * Use an identifiable suffix of the file uri as key. Use a fixed substring of
25 * the error/warning message in the list of white-listings for each file. 25 * the error/warning message in the list of white-listings for each file.
26 */ 26 */
27 // TODO(johnniwinther): Support canonical URIs as keys and message kinds as 27 // TODO(johnniwinther): Support canonical URIs as keys and message kinds as
28 // values. 28 // values.
29 const Map<String, List/*<String|MessageKind>*/> WHITE_LIST = const { 29 const Map<String, List/*<String|MessageKind>*/> WHITE_LIST = const {
30 // Several tests import mirrors; any of these might trigger the warning. 30 // Several tests import mirrors; any of these might trigger the warning.
31 ".dart": const [ 31 ".dart": const [
32 MessageKind.IMPORT_EXPERIMENTAL_MIRRORS,
32 ], 33 ],
33 "/test/src/util/": const [ 34 "/test/src/util/": const [
34 "Library 'package:async/async.dart' doesn't export a " 35 "Library 'package:async/async.dart' doesn't export a "
35 "'ForkableStream' declaration.", 36 "'ForkableStream' declaration.",
36 ], 37 ],
37 "mirrors_test.dart": const [ 38 "mirrors_test.dart": const [
38 MessageKind.INVALID_SYMBOL, 39 MessageKind.INVALID_SYMBOL,
39 MessageKind.PRIVATE_IDENTIFIER, 40 MessageKind.PRIVATE_IDENTIFIER,
40 ], 41 ],
41 }; 42 };
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 if (entity is File && entity.path.endsWith('.dart')) { 74 if (entity is File && entity.path.endsWith('.dart')) {
74 Uri file = Uri.base.resolve(nativeToUriPath(entity.path)); 75 Uri file = Uri.base.resolve(nativeToUriPath(entity.path));
75 if (!SKIP_LIST.any((skip) => file.path.contains(skip))) { 76 if (!SKIP_LIST.any((skip) => file.path.contains(skip))) {
76 uriList.add(file); 77 uriList.add(file);
77 } 78 }
78 } 79 }
79 } 80 }
80 await analyze(uriList, WHITE_LIST, mode: AnalysisMode.URI); 81 await analyze(uriList, WHITE_LIST, mode: AnalysisMode.URI);
81 }); 82 });
82 } 83 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698