| 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 |
| 11 import '../compiler.dart' as api; | 11 import '../compiler.dart' as api; |
| 12 | |
| 13 import 'colors.dart' as colors; | 12 import 'colors.dart' as colors; |
| 14 import 'compiler.dart' as compiler; | 13 import 'compiler.dart' as compiler; |
| 15 import 'constants/constant_system.dart' as constants; | 14 import 'constants/constant_system.dart' as constants; |
| 16 import 'constants/constructors.dart' as constants; | 15 import 'constants/constructors.dart' as constants; |
| 17 import 'constants/evaluation.dart' as constants; | 16 import 'constants/evaluation.dart' as constants; |
| 18 import 'constants/expressions.dart' as constants; | 17 import 'constants/expressions.dart' as constants; |
| 19 import 'constants/values.dart' as constants; | 18 import 'constants/values.dart' as constants; |
| 20 import 'cps_ir/cps_ir_builder.dart' as ir_builder; | 19 import 'cps_ir/cps_ir_builder.dart' as ir_builder; |
| 21 import 'cps_ir/cps_ir_builder_task.dart' as ir_builder; | 20 import 'cps_ir/cps_ir_builder_task.dart' as ir_builder; |
| 22 import 'tree_ir/tree_ir_nodes.dart' as tree_ir; | 21 import 'dart2js.dart' as dart2js; |
| 23 import 'dart_types.dart' as dart_types; | 22 import 'dart_types.dart' as dart_types; |
| 24 import 'dart2js.dart' as dart2js; | |
| 25 import 'deferred_load.dart' as deferred; | 23 import 'deferred_load.dart' as deferred; |
| 26 import 'diagnostics/source_span.dart' as diagnostics; | 24 import 'diagnostics/source_span.dart' as diagnostics; |
| 27 import 'elements/elements.dart' as elements; | 25 import 'elements/elements.dart' as elements; |
| 28 import 'elements/modelx.dart' as modelx; | 26 import 'elements/modelx.dart' as modelx; |
| 29 import 'elements/visitor.dart' as elements_visitor; | 27 import 'elements/visitor.dart' as elements_visitor; |
| 30 import 'filenames.dart' as filenames; | 28 import 'filenames.dart' as filenames; |
| 31 import 'inferrer/type_graph_inferrer.dart' as type_graph_inferrer; | 29 import 'inferrer/type_graph_inferrer.dart' as type_graph_inferrer; |
| 32 import 'io/line_column_provider.dart' as io; | 30 import 'io/line_column_provider.dart' as io; |
| 33 import 'io/source_map_builder.dart' as io; | 31 import 'io/source_map_builder.dart' as io; |
| 34 import 'js/js.dart' as js; | 32 import 'js/js.dart' as js; |
| 35 import 'js_backend/js_backend.dart' as js_backend; | 33 import 'js_backend/js_backend.dart' as js_backend; |
| 34 import 'js_emitter/full_emitter/emitter.dart' as full; |
| 36 import 'js_emitter/js_emitter.dart' as js_emitter; | 35 import 'js_emitter/js_emitter.dart' as js_emitter; |
| 37 import 'js_emitter/full_emitter/emitter.dart' as full; | |
| 38 import 'js_emitter/program_builder/program_builder.dart' as program_builder; | 36 import 'js_emitter/program_builder/program_builder.dart' as program_builder; |
| 37 import 'parser/partial_elements.dart' |
| 38 show PartialClassElement, PartialFunctionElement; |
| 39 import 'resolution/operators.dart' as operators; |
| 39 import 'resolution/semantic_visitor.dart' as semantic_visitor; | 40 import 'resolution/semantic_visitor.dart' as semantic_visitor; |
| 40 import 'resolution/operators.dart' as operators; | |
| 41 import 'script.dart'; | 41 import 'script.dart'; |
| 42 import 'source_file_provider.dart' as source_file_provider; | 42 import 'source_file_provider.dart' as source_file_provider; |
| 43 import 'ssa/nodes.dart' as ssa; | 43 import 'ssa/nodes.dart' as ssa; |
| 44 import 'tree/tree.dart' as tree; | 44 import 'tree/tree.dart' as tree; |
| 45 import 'tree_ir/tree_ir_nodes.dart' as tree_ir; |
| 45 import 'util/util.dart' as util; | 46 import 'util/util.dart' as util; |
| 46 import 'world.dart'; | 47 import 'world.dart'; |
| 47 | 48 |
| 48 import 'parser/partial_elements.dart' | |
| 49 show PartialClassElement, PartialFunctionElement; | |
| 50 | |
| 51 class ElementVisitor extends elements_visitor.BaseElementVisitor { | 49 class ElementVisitor extends elements_visitor.BaseElementVisitor { |
| 52 visitElement(e, a) {} | 50 visitElement(e, a) {} |
| 53 } | 51 } |
| 54 | 52 |
| 55 void main(List<String> arguments) { | 53 void main(List<String> arguments) { |
| 56 useApi(null); | 54 useApi(null); |
| 57 dart2js.main(arguments); | 55 dart2js.main(arguments); |
| 58 elements.Name.isPublicName(null); | 56 elements.Name.isPublicName(null); |
| 59 useConstant(); | 57 useConstant(); |
| 60 useNode(null); | 58 useNode(null); |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 } | 328 } |
| 331 | 329 |
| 332 useTreeVisitors() { | 330 useTreeVisitors() { |
| 333 new TreeVisitor1().visitExpression(null, null); | 331 new TreeVisitor1().visitExpression(null, null); |
| 334 new TreeVisitor1().visitStatement(null, null); | 332 new TreeVisitor1().visitStatement(null, null); |
| 335 } | 333 } |
| 336 | 334 |
| 337 useDeferred([deferred.DeferredLoadTask task]) { | 335 useDeferred([deferred.DeferredLoadTask task]) { |
| 338 task.dump(); | 336 task.dump(); |
| 339 } | 337 } |
| OLD | NEW |