| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 useScript(dart2jslib.Script script) { | 281 useScript(dart2jslib.Script script) { |
| 282 script.copyWithFile(null); | 282 script.copyWithFile(null); |
| 283 } | 283 } |
| 284 | 284 |
| 285 useProgramBuilder(program_builder.ProgramBuilder builder) { | 285 useProgramBuilder(program_builder.ProgramBuilder builder) { |
| 286 builder.buildMethodHackForIncrementalCompilation(null); | 286 builder.buildMethodHackForIncrementalCompilation(null); |
| 287 builder.buildFieldsHackForIncrementalCompilation(null); | 287 builder.buildFieldsHackForIncrementalCompilation(null); |
| 288 } | 288 } |
| 289 | 289 |
| 290 useSemanticVisitor() { | 290 useSemanticVisitor() { |
| 291 new semantic_visitor.BulkVisitor().apply(null, null); | 291 new semantic_visitor.BulkSendVisitor().apply(null, null); |
| 292 new semantic_visitor.TraversalVisitor(null).apply(null, null); | 292 new semantic_visitor.TraversalVisitor(null).apply(null, null); |
| 293 new semantic_visitor.BulkDeclarationVisitor().apply(null, null); |
| 293 } | 294 } |
| 294 | 295 |
| 295 class DummyTreeVisitor extends tree_ir.RootVisitor | 296 class DummyTreeVisitor extends tree_ir.RootVisitor |
| 296 with tree_ir.InitializerVisitor { | 297 with tree_ir.InitializerVisitor { |
| 297 visitFunctionDefinition(tree_ir.FunctionDefinition node) {} | 298 visitFunctionDefinition(tree_ir.FunctionDefinition node) {} |
| 298 visitConstructorDefinition(tree_ir.ConstructorDefinition node) {} | 299 visitConstructorDefinition(tree_ir.ConstructorDefinition node) {} |
| 299 visitFieldDefinition(tree_ir.FieldDefinition node) {} | 300 visitFieldDefinition(tree_ir.FieldDefinition node) {} |
| 300 | 301 |
| 301 visitFieldInitializer(tree_ir.FieldInitializer node) {} | 302 visitFieldInitializer(tree_ir.FieldInitializer node) {} |
| 302 visitSuperInitializer(tree_ir.SuperInitializer node) {} | 303 visitSuperInitializer(tree_ir.SuperInitializer node) {} |
| 303 } | 304 } |
| 304 | 305 |
| 305 useTreeVisitors() { | 306 useTreeVisitors() { |
| 306 new DummyTreeVisitor().visitRootNode(null); | 307 new DummyTreeVisitor().visitRootNode(null); |
| 307 new DummyTreeVisitor().visitInitializer(null); | 308 new DummyTreeVisitor().visitInitializer(null); |
| 308 } | 309 } |
| OLD | NEW |