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

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

Issue 1126173002: Refactor handling of compounds. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status. Created 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 analyze_unused_dart2js; 5 library analyze_unused_dart2js;
6 6
7 import 'package:async_helper/async_helper.dart'; 7 import 'package:async_helper/async_helper.dart';
8 8
9 import 'package:compiler/src/dart2jslib.dart'; 9 import 'package:compiler/src/dart2jslib.dart';
10 import 'package:compiler/src/filenames.dart'; 10 import 'package:compiler/src/filenames.dart';
11 11
12 import 'analyze_helper.dart'; 12 import 'analyze_helper.dart';
13 13
14 // Do not remove WHITE_LIST even if it's empty. The error message for 14 // Do not remove WHITE_LIST even if it's empty. The error message for
15 // unused members refers to WHITE_LIST by name. 15 // unused members refers to WHITE_LIST by name.
16 const Map<String, List<String>> WHITE_LIST = const { 16 const Map<String, List<String>> WHITE_LIST = const {
17 // Helper methods for debugging should never be called from production code: 17 // Helper methods for debugging should never be called from production code:
18 "lib/src/helpers/": const [" is never "], 18 "lib/src/helpers/": const [" is never "],
19 19
20 // Node.asLiteralBool is never used. 20 // Node.asLiteralBool is never used.
21 "lib/src/tree/nodes.dart": const [ 21 "lib/src/tree/nodes.dart": const [
22 "The method 'asLiteralBool' is never called"], 22 "The method 'asLiteralBool' is never called"],
23 23
24 // Some things in dart_printer are not yet used 24 // Some things in dart_printer are not yet used
25 "lib/src/dart_backend/backend_ast_nodes.dart": const [" is never "], 25 "lib/src/dart_backend/backend_ast_nodes.dart": const [" is never "],
26 26
27 // Uncalled error methods in SemanticSendVisitor and subclasses. 27 // Uncalled methods in SemanticSendVisitor and subclasses.
28 "lib/src/resolution/semantic_visitor.dart": const [ 28 "lib/src/resolution/semantic_visitor.dart": const [
29 "The method 'error"], 29 "The method 'error", "The method 'visit"],
30 "lib/src/resolution/semantic_visitor_mixins.dart": const [ 30 "lib/src/resolution/semantic_visitor_mixins.dart": const [
31 "The method 'error"], 31 "The class 'Base", "The method 'error", "The method 'visit"],
32 "lib/src/cps_ir/cps_ir_builder_task.dart": const [
33 "The method 'error"],
34 32
35 // Uncalled type predicate. Keep while related predicates are used. 33 // Uncalled type predicate. Keep while related predicates are used.
36 "lib/src/ssa/nodes.dart": const [ 34 "lib/src/ssa/nodes.dart": const [
37 "The method 'isArray' is never called"], 35 "The method 'isArray' is never called"],
38 36
39 // Method in abstract class. Currently only instantiated trough tests. 37 // Method in abstract class. Currently only instantiated trough tests.
40 "lib/src/constants/expressions.dart": const [ 38 "lib/src/constants/expressions.dart": const [
41 "The method 'readFromEnvironment' is never called"], 39 "The method 'readFromEnvironment' is never called"],
42 }; 40 };
43 41
(...skipping 23 matching lines...) Expand all
67 } else if (member.isTypedef) { 65 } else if (member.isTypedef) {
68 if (member.isResolved) { 66 if (member.isResolved) {
69 compiler.reportHint(member, MessageKind.GENERIC, 67 compiler.reportHint(member, MessageKind.GENERIC,
70 {'text': "Helper typedef in production code '$member'."}); 68 {'text': "Helper typedef in production code '$member'."});
71 } 69 }
72 } 70 }
73 } 71 }
74 compiler.libraryLoader.lookupLibrary(helperUri).forEachLocalMember(checkLive); 72 compiler.libraryLoader.lookupLibrary(helperUri).forEachLocalMember(checkLive);
75 return handler.checkResults(); 73 return handler.checkResults();
76 } 74 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolved_visitor.dart ('k') | tests/compiler/dart2js/semantic_visitor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698