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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 pce.copyWithEnclosing(null); | 246 pce.copyWithEnclosing(null); |
247 pfe.copyWithEnclosing(null); | 247 pfe.copyWithEnclosing(null); |
248 } | 248 } |
249 | 249 |
250 useIr(ir_builder.IrBuilderTask task, | 250 useIr(ir_builder.IrBuilderTask task, |
251 ir_builder.IrBuilder builder) { | 251 ir_builder.IrBuilder builder) { |
252 task | 252 task |
253 ..hasIr(null) | 253 ..hasIr(null) |
254 ..getIr(null); | 254 ..getIr(null); |
255 builder | 255 builder |
256 ..buildIntegerLiteral(null) | 256 ..buildStringConstant(null) |
257 ..buildDoubleLiteral(null) | |
258 ..buildBooleanLiteral(null) | |
259 ..buildNullLiteral() | |
260 ..buildStringLiteral(null) | |
261 ..buildDynamicGet(null, null); | 257 ..buildDynamicGet(null, null); |
262 } | 258 } |
263 | 259 |
264 useCompiler(dart2jslib.Compiler compiler) { | 260 useCompiler(dart2jslib.Compiler compiler) { |
265 compiler.libraryLoader | 261 compiler.libraryLoader |
266 ..reset() | 262 ..reset() |
267 ..resetAsync(null) | 263 ..resetAsync(null) |
268 ..lookupLibrary(null); | 264 ..lookupLibrary(null); |
269 compiler.forgetElement(null); | 265 compiler.forgetElement(null); |
270 } | 266 } |
(...skipping 30 matching lines...) Expand all Loading... |
301 visitFieldDefinition(tree_ir.FieldDefinition node) {} | 297 visitFieldDefinition(tree_ir.FieldDefinition node) {} |
302 | 298 |
303 visitFieldInitializer(tree_ir.FieldInitializer node) {} | 299 visitFieldInitializer(tree_ir.FieldInitializer node) {} |
304 visitSuperInitializer(tree_ir.SuperInitializer node) {} | 300 visitSuperInitializer(tree_ir.SuperInitializer node) {} |
305 } | 301 } |
306 | 302 |
307 useTreeVisitors() { | 303 useTreeVisitors() { |
308 new DummyTreeVisitor().visitRootNode(null); | 304 new DummyTreeVisitor().visitRootNode(null); |
309 new DummyTreeVisitor().visitInitializer(null); | 305 new DummyTreeVisitor().visitInitializer(null); |
310 } | 306 } |
OLD | NEW |