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

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

Issue 1278503004: Revert "Move dart2jslib parts into separate libraries." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
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/src/dart2jslib.dart'; 9 import 'package:compiler/src/dart2jslib.dart';
10 import 'package:compiler/src/filenames.dart'; 10 import 'package:compiler/src/filenames.dart';
11 import 'package:compiler/src/messages.dart';
12 11
13 import 'analyze_helper.dart'; 12 import 'analyze_helper.dart';
14 13
15 // Do not remove WHITE_LIST even if it's empty. The error message for 14 // Do not remove WHITE_LIST even if it's empty. The error message for
16 // unused members refers to WHITE_LIST by name. 15 // unused members refers to WHITE_LIST by name.
17 const Map<String, List<String>> WHITE_LIST = const { 16 const Map<String, List<String>> WHITE_LIST = const {
18 // Helper methods for debugging should never be called from production code: 17 // Helper methods for debugging should never be called from production code:
19 "lib/src/helpers/": const [" is never "], 18 "lib/src/helpers/": const [" is never "],
20 19
21 // Node.asLiteralBool is never used. 20 // Node.asLiteralBool is never used.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } else if (member.isTypedef) { 82 } else if (member.isTypedef) {
84 if (member.isResolved) { 83 if (member.isResolved) {
85 compiler.reportHint(member, MessageKind.GENERIC, 84 compiler.reportHint(member, MessageKind.GENERIC,
86 {'text': "Helper typedef in production code '$member'."}); 85 {'text': "Helper typedef in production code '$member'."});
87 } 86 }
88 } 87 }
89 } 88 }
90 compiler.libraryLoader.lookupLibrary(helperUri).forEachLocalMember(checkLive); 89 compiler.libraryLoader.lookupLibrary(helperUri).forEachLocalMember(checkLive);
91 return handler.checkResults(); 90 return handler.checkResults();
92 } 91 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/analyze_helper.dart ('k') | tests/compiler/dart2js/async_await_js_transform_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698