| 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 useScript(dart2jslib.Script script) { | 283 useScript(dart2jslib.Script script) { |
| 284 script.copyWithFile(null); | 284 script.copyWithFile(null); |
| 285 } | 285 } |
| 286 | 286 |
| 287 useProgramBuilder(program_builder.ProgramBuilder builder) { | 287 useProgramBuilder(program_builder.ProgramBuilder builder) { |
| 288 builder.buildMethodHackForIncrementalCompilation(null); | 288 builder.buildMethodHackForIncrementalCompilation(null); |
| 289 builder.buildFieldsHackForIncrementalCompilation(null); | 289 builder.buildFieldsHackForIncrementalCompilation(null); |
| 290 } | 290 } |
| 291 | 291 |
| 292 useSemanticVisitor() { | 292 useSemanticVisitor() { |
| 293 new semantic_visitor.BulkSendVisitor().apply(null, null); | 293 new semantic_visitor.BulkSendVisitor() |
| 294 ..apply(null, null) |
| 295 ..visitSuperFieldFieldCompound(null, null, null, null, null, null); |
| 294 new semantic_visitor.TraversalVisitor(null).apply(null, null); | 296 new semantic_visitor.TraversalVisitor(null).apply(null, null); |
| 295 new semantic_visitor.BulkDeclarationVisitor().apply(null, null); | 297 new semantic_visitor.BulkDeclarationVisitor().apply(null, null); |
| 296 } | 298 } |
| 297 | 299 |
| 298 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 | 300 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 |
| 299 with tree_ir.StatementVisitor1 { | 301 with tree_ir.StatementVisitor1 { |
| 300 noSuchMethod(inv) {} | 302 noSuchMethod(inv) {} |
| 301 } | 303 } |
| 302 | 304 |
| 303 useTreeVisitors() { | 305 useTreeVisitors() { |
| 304 new TreeVisitor1().visitExpression(null, null); | 306 new TreeVisitor1().visitExpression(null, null); |
| 305 new TreeVisitor1().visitStatement(null, null); | 307 new TreeVisitor1().visitStatement(null, null); |
| 306 } | 308 } |
| OLD | NEW |