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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 } | 318 } |
319 | 319 |
320 useProgramBuilder(program_builder.ProgramBuilder builder) { | 320 useProgramBuilder(program_builder.ProgramBuilder builder) { |
321 builder.buildMethodHackForIncrementalCompilation(null); | 321 builder.buildMethodHackForIncrementalCompilation(null); |
322 builder.buildFieldsHackForIncrementalCompilation(null); | 322 builder.buildFieldsHackForIncrementalCompilation(null); |
323 } | 323 } |
324 | 324 |
325 useSemanticVisitor() { | 325 useSemanticVisitor() { |
326 operators.UnaryOperator.fromKind(null); | 326 operators.UnaryOperator.fromKind(null); |
327 operators.BinaryOperator.fromKind(null); | 327 operators.BinaryOperator.fromKind(null); |
328 new semantic_visitor.BulkSendVisitor() | 328 new semantic_visitor.BulkSendVisitor()..apply(null, null); |
329 ..apply(null, null) | |
330 ..visitSuperFieldFieldCompound(null, null, null, null, null, null); | |
331 new semantic_visitor.TraversalVisitor(null).apply(null, null); | 329 new semantic_visitor.TraversalVisitor(null).apply(null, null); |
332 new semantic_visitor.BulkDeclarationVisitor().apply(null, null); | 330 new semantic_visitor.BulkDeclarationVisitor().apply(null, null); |
333 } | 331 } |
334 | 332 |
335 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 | 333 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 |
336 with tree_ir.StatementVisitor1 { | 334 with tree_ir.StatementVisitor1 { |
337 noSuchMethod(inv) {} | 335 noSuchMethod(inv) {} |
338 } | 336 } |
339 | 337 |
340 useTreeVisitors() { | 338 useTreeVisitors() { |
341 new TreeVisitor1().visitExpression(null, null); | 339 new TreeVisitor1().visitExpression(null, null); |
342 new TreeVisitor1().visitStatement(null, null); | 340 new TreeVisitor1().visitStatement(null, null); |
343 } | 341 } |
OLD | NEW |