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