| 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 28 matching lines...) Expand all Loading... |
| 39 import 'js_emitter/program_builder/program_builder.dart' as program_builder; | 39 import 'js_emitter/program_builder/program_builder.dart' as program_builder; |
| 40 import 'resolution/semantic_visitor.dart' as semantic_visitor; | 40 import 'resolution/semantic_visitor.dart' as semantic_visitor; |
| 41 import 'resolution/operators.dart' as operators; | 41 import 'resolution/operators.dart' as operators; |
| 42 import 'script.dart'; | 42 import 'script.dart'; |
| 43 import 'source_file_provider.dart' as source_file_provider; | 43 import 'source_file_provider.dart' as source_file_provider; |
| 44 import 'ssa/ssa.dart' as ssa; | 44 import 'ssa/ssa.dart' as ssa; |
| 45 import 'tree/tree.dart' as tree; | 45 import 'tree/tree.dart' as tree; |
| 46 import 'util/util.dart' as util; | 46 import 'util/util.dart' as util; |
| 47 import 'world.dart'; | 47 import 'world.dart'; |
| 48 | 48 |
| 49 import 'parser/class_element_parser.dart' show | 49 import 'parser/partial_elements.dart' show |
| 50 PartialClassElement; | 50 PartialClassElement, |
| 51 import 'parser/listener.dart' show | |
| 52 PartialFunctionElement; | 51 PartialFunctionElement; |
| 53 | 52 |
| 54 class ElementVisitor extends elements_visitor.BaseElementVisitor { | 53 class ElementVisitor extends elements_visitor.BaseElementVisitor { |
| 55 visitElement(e, a) {} | 54 visitElement(e, a) {} |
| 56 } | 55 } |
| 57 | 56 |
| 58 void main(List<String> arguments) { | 57 void main(List<String> arguments) { |
| 59 useApi(null); | 58 useApi(null); |
| 60 dart2js.main(arguments); | 59 dart2js.main(arguments); |
| 61 elements.Name.isPublicName(null); | 60 elements.Name.isPublicName(null); |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 | 336 |
| 338 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 | 337 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 |
| 339 with tree_ir.StatementVisitor1 { | 338 with tree_ir.StatementVisitor1 { |
| 340 noSuchMethod(inv) {} | 339 noSuchMethod(inv) {} |
| 341 } | 340 } |
| 342 | 341 |
| 343 useTreeVisitors() { | 342 useTreeVisitors() { |
| 344 new TreeVisitor1().visitExpression(null, null); | 343 new TreeVisitor1().visitExpression(null, null); |
| 345 new TreeVisitor1().visitStatement(null, null); | 344 new TreeVisitor1().visitStatement(null, null); |
| 346 } | 345 } |
| OLD | NEW |