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

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

Issue 1130813002: dart2js cps: Handle error cases. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Whitelist unused API due to semantic visitor being WIP Created 5 years, 7 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
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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';
(...skipping 11 matching lines...) Expand all
22 "The method 'asLiteralBool' is never called"], 22 "The method 'asLiteralBool' is never called"],
23 23
24 // Some things in dart_printer are not yet used 24 // Some things in dart_printer are not yet used
25 "lib/src/dart_backend/backend_ast_nodes.dart": const [" is never "], 25 "lib/src/dart_backend/backend_ast_nodes.dart": const [" is never "],
26 26
27 // Uncalled error methods in SemanticSendVisitor and subclasses. 27 // Uncalled error methods in SemanticSendVisitor and subclasses.
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 method 'error"], 31 "The method 'error"],
32 "lib/src/cps_ir/cps_ir_builder_task.dart": const [
33 "The method 'error"],
32 34
33 // Uncalled type predicate. Keep while related predicates are used. 35 // Uncalled type predicate. Keep while related predicates are used.
34 "lib/src/ssa/nodes.dart": const [ 36 "lib/src/ssa/nodes.dart": const [
35 "The method 'isArray' is never called"], 37 "The method 'isArray' is never called"],
36 }; 38 };
37 39
38 void main() { 40 void main() {
39 var uri = currentDirectory.resolve( 41 var uri = currentDirectory.resolve(
40 'pkg/compiler/lib/src/use_unused_api.dart'); 42 'pkg/compiler/lib/src/use_unused_api.dart');
41 asyncTest(() => analyze([uri], WHITE_LIST, 43 asyncTest(() => analyze([uri], WHITE_LIST,
(...skipping 19 matching lines...) Expand all
61 } else if (member.isTypedef) { 63 } else if (member.isTypedef) {
62 if (member.isResolved) { 64 if (member.isResolved) {
63 compiler.reportHint(member, MessageKind.GENERIC, 65 compiler.reportHint(member, MessageKind.GENERIC,
64 {'text': "Helper typedef in production code '$member'."}); 66 {'text': "Helper typedef in production code '$member'."});
65 } 67 }
66 } 68 }
67 } 69 }
68 compiler.libraryLoader.lookupLibrary(helperUri).forEachLocalMember(checkLive); 70 compiler.libraryLoader.lookupLibrary(helperUri).forEachLocalMember(checkLive);
69 return handler.checkResults(); 71 return handler.checkResults();
70 } 72 }
OLDNEW
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698