| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 ..visitVariableElement(null) | 169 ..visitVariableElement(null) |
| 170 ..visitWarnOnUseElement(null); | 170 ..visitWarnOnUseElement(null); |
| 171 } | 171 } |
| 172 | 172 |
| 173 useJs(js.Node node) { | 173 useJs(js.Node node) { |
| 174 node.asVariableUse(); | 174 node.asVariableUse(); |
| 175 } | 175 } |
| 176 | 176 |
| 177 useJsBackend(js_backend.JavaScriptBackend backend) { | 177 useJsBackend(js_backend.JavaScriptBackend backend) { |
| 178 backend.assembleCode(null); | 178 backend.assembleCode(null); |
| 179 backend.annotations.noInlining(null); |
| 180 backend.annotations.trustTypeAnnotations(null); |
| 181 backend.annotations.assumeDynamic(null); |
| 179 } | 182 } |
| 180 | 183 |
| 181 useConcreteTypesInferrer(concrete_types_inferrer.ConcreteTypesInferrer c) { | 184 useConcreteTypesInferrer(concrete_types_inferrer.ConcreteTypesInferrer c) { |
| 182 c.debug(); | 185 c.debug(); |
| 183 } | 186 } |
| 184 | 187 |
| 185 useColor() { | 188 useColor() { |
| 186 colors.white(null); | 189 colors.white(null); |
| 187 colors.blue(null); | 190 colors.blue(null); |
| 188 colors.yellow(null); | 191 colors.yellow(null); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 } | 283 } |
| 281 | 284 |
| 282 useScript(dart2jslib.Script script) { | 285 useScript(dart2jslib.Script script) { |
| 283 script.copyWithFile(null); | 286 script.copyWithFile(null); |
| 284 } | 287 } |
| 285 | 288 |
| 286 useProgramBuilder(program_builder.ProgramBuilder builder) { | 289 useProgramBuilder(program_builder.ProgramBuilder builder) { |
| 287 builder.buildMethodHackForIncrementalCompilation(null); | 290 builder.buildMethodHackForIncrementalCompilation(null); |
| 288 builder.buildFieldsHackForIncrementalCompilation(null); | 291 builder.buildFieldsHackForIncrementalCompilation(null); |
| 289 } | 292 } |
| OLD | NEW |