| 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/implementation/dart2jslib.dart'; | 9 import 'package:compiler/implementation/dart2jslib.dart'; |
| 10 import 'package:compiler/implementation/filenames.dart'; | 10 import 'package:compiler/implementation/filenames.dart'; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 } else { | 49 } else { |
| 50 member.forEachLocalMember(checkLive); | 50 member.forEachLocalMember(checkLive); |
| 51 } | 51 } |
| 52 } else if (member.isTypedef) { | 52 } else if (member.isTypedef) { |
| 53 if (member.isResolved) { | 53 if (member.isResolved) { |
| 54 compiler.reportHint(member, MessageKind.GENERIC, | 54 compiler.reportHint(member, MessageKind.GENERIC, |
| 55 {'text': "Helper typedef in production code '$member'."}); | 55 {'text': "Helper typedef in production code '$member'."}); |
| 56 } | 56 } |
| 57 } | 57 } |
| 58 } | 58 } |
| 59 compiler.libraries['$helperUri'].forEachLocalMember(checkLive); | 59 compiler.libraryLoader.lookupLibrary(helperUri).forEachLocalMember(checkLive); |
| 60 return handler.checkResults(); | 60 return handler.checkResults(); |
| 61 } | 61 } |
| OLD | NEW |