| OLD | NEW |
| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 } | 97 } |
| 98 | 98 |
| 99 void useConstant( | 99 void useConstant( |
| 100 [constants.ConstantValue constant, | 100 [constants.ConstantValue constant, |
| 101 constants.ConstantExpression expression, | 101 constants.ConstantExpression expression, |
| 102 constants.ConstructedConstantExpression constructedConstant, | 102 constants.ConstructedConstantExpression constructedConstant, |
| 103 constants.ConstantSystem cs, | 103 constants.ConstantSystem cs, |
| 104 constants.Environment env]) { | 104 constants.Environment env]) { |
| 105 constant.isObject; | 105 constant.isObject; |
| 106 cs.isBool(constant); | 106 cs.isBool(constant); |
| 107 constructedConstant.computeInstanceType(); | 107 constructedConstant.computeInstanceType(null); |
| 108 constructedConstant.computeInstanceFields(); | 108 constructedConstant.computeInstanceFields(null); |
| 109 expression.evaluate(null, null); | 109 expression.evaluate(null, null); |
| 110 new NullConstantConstructorVisitor() | 110 new NullConstantConstructorVisitor() |
| 111 ..visit(null, null) | 111 ..visit(null, null) |
| 112 ..visitGenerative(null, null) | 112 ..visitGenerative(null, null) |
| 113 ..visitRedirectingFactory(null, null) | 113 ..visitRedirectingFactory(null, null) |
| 114 ..visitRedirectingGenerative(null, null); | 114 ..visitRedirectingGenerative(null, null); |
| 115 } | 115 } |
| 116 | 116 |
| 117 void useNode(tree.Node node) { | 117 void useNode(tree.Node node) { |
| 118 node | 118 node |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 operators.UnaryOperator.fromKind(null); | 309 operators.UnaryOperator.fromKind(null); |
| 310 operators.BinaryOperator.fromKind(null); | 310 operators.BinaryOperator.fromKind(null); |
| 311 new semantic_visitor.BulkSendVisitor()..apply(null, null); | 311 new semantic_visitor.BulkSendVisitor()..apply(null, null); |
| 312 new semantic_visitor.TraversalVisitor(null).apply(null, null); | 312 new semantic_visitor.TraversalVisitor(null).apply(null, null); |
| 313 new semantic_visitor.BulkDeclarationVisitor().apply(null, null); | 313 new semantic_visitor.BulkDeclarationVisitor().apply(null, null); |
| 314 } | 314 } |
| 315 | 315 |
| 316 useDeferred([deferred.DeferredLoadTask task]) { | 316 useDeferred([deferred.DeferredLoadTask task]) { |
| 317 task.dump(); | 317 task.dump(); |
| 318 } | 318 } |
| OLD | NEW |