| 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 17 matching lines...) Expand all Loading... |
| 28 "lib/src/resolution/semantic_visitor.dart": const [ | 28 "lib/src/resolution/semantic_visitor.dart": const [ |
| 29 "The method 'error"], | 29 "The method 'error"], |
| 30 "lib/src/resolution/semantic_visitor_mixins.dart": const [ | 30 "lib/src/resolution/semantic_visitor_mixins.dart": const [ |
| 31 "The class 'Base", "The method 'error", "The method 'visit"], | 31 "The class 'Base", "The method 'error", "The method 'visit"], |
| 32 | 32 |
| 33 // Uncalled type predicate. Keep while related predicates are used. | 33 // Uncalled type predicate. Keep while related predicates are used. |
| 34 "lib/src/ssa/nodes.dart": const [ | 34 "lib/src/ssa/nodes.dart": const [ |
| 35 "The method 'isArray' is never called"], | 35 "The method 'isArray' is never called"], |
| 36 | 36 |
| 37 // Method in abstract class. Currently only instantiated trough tests. | 37 // Method in abstract class. Currently only instantiated trough tests. |
| 38 "lib/src/constants/expressions.dart": const [ | 38 "lib/src/constants/evaluation.dart": const [ |
| 39 "The method 'readFromEnvironment' is never called"], | 39 "The method 'readFromEnvironment' is never called"], |
| 40 | 40 |
| 41 // Serialization code is only used in test. | 41 // Serialization code is only used in test. |
| 42 "lib/src/serialization/": const [ | 42 "lib/src/serialization/": const [ |
| 43 "is never"], | 43 "is never"], |
| 44 | 44 |
| 45 // Nested functions are currently kept alive in the IR. | 45 // Nested functions are currently kept alive in the IR. |
| 46 "lib/src/tree_ir/": const [ | 46 "lib/src/tree_ir/": const [ |
| 47 "accept", "FunctionExpression", "CreateFunction" | 47 "accept", "FunctionExpression", "CreateFunction" |
| 48 ], | 48 ], |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 } else if (member.isTypedef) { | 86 } else if (member.isTypedef) { |
| 87 if (member.isResolved) { | 87 if (member.isResolved) { |
| 88 compiler.reportHint(member, MessageKind.GENERIC, | 88 compiler.reportHint(member, MessageKind.GENERIC, |
| 89 {'text': "Helper typedef in production code '$member'."}); | 89 {'text': "Helper typedef in production code '$member'."}); |
| 90 } | 90 } |
| 91 } | 91 } |
| 92 } | 92 } |
| 93 compiler.libraryLoader.lookupLibrary(helperUri).forEachLocalMember(checkLive); | 93 compiler.libraryLoader.lookupLibrary(helperUri).forEachLocalMember(checkLive); |
| 94 return handler.checkResults(); | 94 return handler.checkResults(); |
| 95 } | 95 } |
| OLD | NEW |