OLD | NEW |
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/compiler.dart'; | 9 import 'package:compiler/src/compiler.dart'; |
10 import 'package:compiler/src/diagnostics/messages.dart'; | 10 import 'package:compiler/src/diagnostics/messages.dart'; |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 // Serialization code is only used in test. | 38 // Serialization code is only used in test. |
39 "lib/src/serialization/": const [ | 39 "lib/src/serialization/": const [ |
40 "is never"], | 40 "is never"], |
41 | 41 |
42 // Nested functions are currently kept alive in the IR. | 42 // Nested functions are currently kept alive in the IR. |
43 "lib/src/tree_ir/": const [ | 43 "lib/src/tree_ir/": const [ |
44 "accept", "FunctionExpression", "CreateFunction" | 44 "accept", "FunctionExpression", "CreateFunction" |
45 ], | 45 ], |
46 | 46 |
47 // AllInfo.fromJson and visit methods are not used yet. | |
48 "lib/src/info/info.dart": const [ "is never" ], | |
49 | |
50 "lib/src/universe/universe.dart": const [ | 47 "lib/src/universe/universe.dart": const [ |
51 "The method 'getterInvocationsByName' is never called.", | 48 "The method 'getterInvocationsByName' is never called.", |
52 "The method 'setterInvocationsByName' is never called."], | 49 "The method 'setterInvocationsByName' is never called."], |
53 | 50 |
54 "lib/src/cps_ir/": const [ | 51 "lib/src/cps_ir/": const [ |
55 "accept", "CreateFunction", | 52 "accept", "CreateFunction", |
56 ], | 53 ], |
57 | 54 |
58 "/lib/src/dart_backend/backend_ast_to_frontend_ast.dart": const [ | 55 "/lib/src/dart_backend/backend_ast_to_frontend_ast.dart": const [ |
59 " is never " | 56 " is never " |
(...skipping 26 matching lines...) Expand all Loading... |
86 } else if (member.isTypedef) { | 83 } else if (member.isTypedef) { |
87 if (member.isResolved) { | 84 if (member.isResolved) { |
88 compiler.reportHint(member, MessageKind.GENERIC, | 85 compiler.reportHint(member, MessageKind.GENERIC, |
89 {'text': "Helper typedef in production code '$member'."}); | 86 {'text': "Helper typedef in production code '$member'."}); |
90 } | 87 } |
91 } | 88 } |
92 } | 89 } |
93 compiler.libraryLoader.lookupLibrary(helperUri).forEachLocalMember(checkLive); | 90 compiler.libraryLoader.lookupLibrary(helperUri).forEachLocalMember(checkLive); |
94 return handler.checkResults(); | 91 return handler.checkResults(); |
95 } | 92 } |
OLD | NEW |