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

Side by Side Diff: pkg/compiler/lib/src/use_unused_api.dart

Issue 1173403002: dart2js: Fix hints in code base. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Updated to latest revision Created 5 years, 6 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /// This file use methods that aren't used by dart2js.dart, but that we wish to 5 /// This file use methods that aren't used by dart2js.dart, but that we wish to
6 /// keep anyway. This might be general API that isn't currently in use, 6 /// keep anyway. This might be general API that isn't currently in use,
7 /// debugging aids, or API only used for testing (see TODO below). 7 /// debugging aids, or API only used for testing (see TODO below).
8 8
9 library dart2js.use_unused_api; 9 library dart2js.use_unused_api;
10 10
(...skipping 30 matching lines...) Expand all
41 41
42 import 'scanner/scannerlib.dart' show 42 import 'scanner/scannerlib.dart' show
43 PartialClassElement, 43 PartialClassElement,
44 PartialFunctionElement; 44 PartialFunctionElement;
45 45
46 class ElementVisitor extends elements_visitor.BaseElementVisitor { 46 class ElementVisitor extends elements_visitor.BaseElementVisitor {
47 visitElement(e, a) {} 47 visitElement(e, a) {}
48 } 48 }
49 49
50 void main(List<String> arguments) { 50 void main(List<String> arguments) {
51 useApi(); 51 useApi(null);
52 dart2js.main(arguments); 52 dart2js.main(arguments);
53 dart2jslib.isPublicName(null); 53 dart2jslib.isPublicName(null);
54 useConstant(null, null, null, null, null); 54 useConstant(null, null, null, null, null);
55 useNode(null); 55 useNode(null);
56 useUtil(null); 56 useUtil(null);
57 useSetlet(null); 57 useSetlet(null);
58 useImmutableEmptySet(null); 58 useImmutableEmptySet(null);
59 useElementVisitor(new ElementVisitor()); 59 useElementVisitor(new ElementVisitor());
60 useJsNode(new js.Program(null)); 60 useJsNode(new js.Program(null));
61 useJsNode(new js.NamedFunction(null, null)); 61 useJsNode(new js.NamedFunction(null, null));
(...skipping 10 matching lines...) Expand all
72 useIr(null); 72 useIr(null);
73 useCompiler(null); 73 useCompiler(null);
74 useTypes(); 74 useTypes();
75 useCodeEmitterTask(null); 75 useCodeEmitterTask(null);
76 useScript(null); 76 useScript(null);
77 useProgramBuilder(null); 77 useProgramBuilder(null);
78 useSemanticVisitor(); 78 useSemanticVisitor();
79 useTreeVisitors(); 79 useTreeVisitors();
80 } 80 }
81 81
82 useApi() { 82 useApi(api.ReadStringFromUri uri) {
83 api.ReadStringFromUri uri;
84 } 83 }
85 84
85
karlklose 2015/06/11 10:56:16 Revert.
herhut 2015/06/11 12:48:55 Done.
86
86 void useConstant(constants.ConstantValue constant, 87 void useConstant(constants.ConstantValue constant,
87 constants.ConstantExpression expression, 88 constants.ConstantExpression expression,
88 constants.ConstructedConstantExpression constructedConstant, 89 constants.ConstructedConstantExpression constructedConstant,
89 constants.ConstantSystem cs, 90 constants.ConstantSystem cs,
90 constants.Environment env) { 91 constants.Environment env) {
91 constant.isObject; 92 constant.isObject;
92 cs.isBool(constant); 93 cs.isBool(constant);
93 constructedConstant.computeInstanceType(); 94 constructedConstant.computeInstanceType();
94 constructedConstant.computeInstanceFields(); 95 constructedConstant.computeInstanceFields();
95 expression.evaluate(null, null); 96 expression.evaluate(null, null);
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 303
303 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 304 class TreeVisitor1 extends tree_ir.ExpressionVisitor1
304 with tree_ir.StatementVisitor1 { 305 with tree_ir.StatementVisitor1 {
305 noSuchMethod(inv) {} 306 noSuchMethod(inv) {}
306 } 307 }
307 308
308 useTreeVisitors() { 309 useTreeVisitors() {
309 new TreeVisitor1().visitExpression(null, null); 310 new TreeVisitor1().visitExpression(null, null);
310 new TreeVisitor1().visitStatement(null, null); 311 new TreeVisitor1().visitStatement(null, null);
311 } 312 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698