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

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

Issue 1799283002: Delete support for source mirrors (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: new attempt Created 4 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) 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 12 matching lines...) Expand all
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. 27 // TODO(johnniwinther): Support canonical URIs as keys.
28 const Map<String, List/*<String|MessageKind>*/> WHITE_LIST = const { 28 const Map<String, List/*<String|MessageKind>*/> WHITE_LIST = const {
29 "/test/src/util/": const [ 29 "/test/src/util/": const [
30 "Library 'package:async/async.dart' doesn't export a " 30 "Library 'package:async/async.dart' doesn't export a "
31 "'ForkableStream' declaration.", 31 "'ForkableStream' declaration.",
32 ], 32 ],
33 "mirrors_test.dart": const [
34 MessageKind.INVALID_SYMBOL,
35 MessageKind.PRIVATE_IDENTIFIER,
36 ],
37 }; 33 };
38 34
39 const List<String> SKIP_LIST = const <String>[ 35 const List<String> SKIP_LIST = const <String>[
40 // Helper files: 36 // Helper files:
41 "/data/", 37 "/data/",
42 "http_launch_data/", 38 "http_launch_data/",
43 "mirrors_helper.dart", 39 "mirrors_helper.dart",
44 "path%20with%20spaces/", 40 "path%20with%20spaces/",
45 "cps_ir/input/", 41 "cps_ir/input/",
46 // No longer maintained: 42 // No longer maintained:
47 "backend_dart/", 43 "backend_dart/",
48 // Broken tests: 44 // Broken tests:
49 "quarantined/http_test.dart", 45 "quarantined/http_test.dart",
50 // Package directory 46 // Package directory
51 "packages/", 47 "packages/",
52 ]; 48 ];
53 49
54 const List<MessageKind> MESSAGE_SKIP_LIST = const <MessageKind>[
55 // TODO(johnniwinther): Support checking of this warning. (Issue 26132)
56 MessageKind.IMPORT_EXPERIMENTAL_MIRRORS,
57 ];
58
59 main(List<String> arguments) { 50 main(List<String> arguments) {
60 List<String> options = <String>[]; 51 List<String> options = <String>[];
61 List<Uri> uriList = <Uri>[]; 52 List<Uri> uriList = <Uri>[];
62 String filter; 53 String filter;
63 bool first = true; 54 bool first = true;
64 for (String argument in arguments) { 55 for (String argument in arguments) {
65 if (argument.startsWith('-')) { 56 if (argument.startsWith('-')) {
66 options.add(argument == '-v' ? Flags.verbose : argument); 57 options.add(argument == '-v' ? Flags.verbose : argument);
67 } else if (first) { 58 } else if (first) {
68 File file = new File(argument); 59 File file = new File(argument);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 if (!SKIP_LIST.any((skip) => file.path.contains(skip))) { 92 if (!SKIP_LIST.any((skip) => file.path.contains(skip))) {
102 uriList.add(file); 93 uriList.add(file);
103 } 94 }
104 } 95 }
105 } 96 }
106 } 97 }
107 await analyze( 98 await analyze(
108 uriList, 99 uriList,
109 WHITE_LIST, 100 WHITE_LIST,
110 mode: AnalysisMode.URI, 101 mode: AnalysisMode.URI,
111 options: options, 102 options: options);
112 skipList: MESSAGE_SKIP_LIST);
113 }); 103 });
114 } 104 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/mirrors/source_mirrors.dart ('k') | tests/compiler/dart2js/memory_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698