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

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

Issue 330913004: Move Compiler.libraries to LibraryLoader. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix compiler_isolate.dart Created 6 years, 5 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/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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698