| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 void useConstant(constants.ConstantValue constant, | 84 void useConstant(constants.ConstantValue constant, |
| 85 dart2jslib.ConstantSystem cs) { | 85 dart2jslib.ConstantSystem cs) { |
| 86 constant.isObject; | 86 constant.isObject; |
| 87 cs.isBool(constant); | 87 cs.isBool(constant); |
| 88 } | 88 } |
| 89 | 89 |
| 90 void useNode(tree.Node node) { | 90 void useNode(tree.Node node) { |
| 91 node | 91 node |
| 92 ..asAsyncModifier() | 92 ..asAsyncModifier() |
| 93 ..asAsyncForIn() | |
| 94 ..asAwait() | 93 ..asAwait() |
| 95 ..asBreakStatement() | 94 ..asBreakStatement() |
| 96 ..asCascade() | 95 ..asCascade() |
| 97 ..asCatchBlock() | 96 ..asCatchBlock() |
| 98 ..asClassNode() | 97 ..asClassNode() |
| 99 ..asCombinator() | 98 ..asCombinator() |
| 100 ..asConditional() | 99 ..asConditional() |
| 101 ..asContinueStatement() | 100 ..asContinueStatement() |
| 102 ..asEnum() | 101 ..asEnum() |
| 103 ..asErrorExpression() | 102 ..asErrorExpression() |
| (...skipping 16 matching lines...) Expand all Loading... |
| 120 ..asPartOf() | 119 ..asPartOf() |
| 121 ..asRethrow() | 120 ..asRethrow() |
| 122 ..asReturn() | 121 ..asReturn() |
| 123 ..asStatement() | 122 ..asStatement() |
| 124 ..asStringInterpolation() | 123 ..asStringInterpolation() |
| 125 ..asStringInterpolationPart() | 124 ..asStringInterpolationPart() |
| 126 ..asStringJuxtaposition() | 125 ..asStringJuxtaposition() |
| 127 ..asStringNode() | 126 ..asStringNode() |
| 128 ..asSwitchCase() | 127 ..asSwitchCase() |
| 129 ..asSwitchStatement() | 128 ..asSwitchStatement() |
| 130 ..asSyncForIn() | |
| 131 ..asTryStatement() | 129 ..asTryStatement() |
| 132 ..asTypeAnnotation() | 130 ..asTypeAnnotation() |
| 133 ..asTypeVariable() | 131 ..asTypeVariable() |
| 134 ..asTypedef() | 132 ..asTypedef() |
| 135 ..asWhile() | 133 ..asWhile() |
| 136 ..asYield(); | 134 ..asYield(); |
| 137 } | 135 } |
| 138 | 136 |
| 139 void useUtil(util.Link link) { | 137 void useUtil(util.Link link) { |
| 140 link.reversePrependAll(link); | 138 link.reversePrependAll(link); |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 visitFieldDefinition(tree_ir.FieldDefinition node) {} | 297 visitFieldDefinition(tree_ir.FieldDefinition node) {} |
| 300 | 298 |
| 301 visitFieldInitializer(tree_ir.FieldInitializer node) {} | 299 visitFieldInitializer(tree_ir.FieldInitializer node) {} |
| 302 visitSuperInitializer(tree_ir.SuperInitializer node) {} | 300 visitSuperInitializer(tree_ir.SuperInitializer node) {} |
| 303 } | 301 } |
| 304 | 302 |
| 305 useTreeVisitors() { | 303 useTreeVisitors() { |
| 306 new DummyTreeVisitor().visitRootNode(null); | 304 new DummyTreeVisitor().visitRootNode(null); |
| 307 new DummyTreeVisitor().visitInitializer(null); | 305 new DummyTreeVisitor().visitInitializer(null); |
| 308 } | 306 } |
| OLD | NEW |