| 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 import 'colors.dart' as colors; | 12 import 'colors.dart' as colors; |
| 13 import 'compiler.dart' as compiler; | 13 import 'compiler.dart' as compiler; |
| 14 import 'constants/constant_system.dart' as constants; | 14 import 'constants/constant_system.dart' as constants; |
| 15 import 'constants/constructors.dart' as constants; | 15 import 'constants/constructors.dart' as constants; |
| 16 import 'constants/evaluation.dart' as constants; | 16 import 'constants/evaluation.dart' as constants; |
| 17 import 'constants/expressions.dart' as constants; | 17 import 'constants/expressions.dart' as constants; |
| 18 import 'constants/values.dart' as constants; | 18 import 'constants/values.dart' as constants; |
| 19 import 'dart2js.dart' as dart2js; | 19 import 'dart2js.dart' as dart2js; |
| 20 import 'elements/resolution_types.dart' as dart_types; | 20 import 'elements/resolution_types.dart' as dart_types; |
| 21 import 'deferred_load.dart' as deferred_load; | 21 import 'deferred_load.dart' as deferred_load; |
| 22 import 'diagnostics/source_span.dart' as diagnostics; | 22 import 'diagnostics/source_span.dart' as diagnostics; |
| 23 import 'elements/elements.dart' as elements; | 23 import 'elements/elements.dart' as elements; |
| 24 import 'elements/modelx.dart' as modelx; | 24 import 'elements/modelx.dart' as modelx; |
| 25 import 'elements/operators.dart' as operators; |
| 25 import 'elements/visitor.dart' as elements_visitor; | 26 import 'elements/visitor.dart' as elements_visitor; |
| 26 import 'filenames.dart' as filenames; | 27 import 'filenames.dart' as filenames; |
| 27 import 'inferrer/type_graph_inferrer.dart' as type_graph_inferrer; | 28 import 'inferrer/type_graph_inferrer.dart' as type_graph_inferrer; |
| 28 import 'io/location_provider.dart' as io; | 29 import 'io/location_provider.dart' as io; |
| 29 import 'io/source_map_builder.dart' as io; | 30 import 'io/source_map_builder.dart' as io; |
| 30 import 'js/js.dart' as js; | 31 import 'js/js.dart' as js; |
| 31 import 'js_backend/js_backend.dart' as js_backend; | 32 import 'js_backend/js_backend.dart' as js_backend; |
| 32 import 'parser/partial_elements.dart' | 33 import 'parser/partial_elements.dart' |
| 33 show PartialClassElement, PartialFunctionElement; | 34 show PartialClassElement, PartialFunctionElement; |
| 34 import 'resolution/operators.dart' as operators; | |
| 35 import 'resolution/semantic_visitor.dart' as semantic_visitor; | 35 import 'resolution/semantic_visitor.dart' as semantic_visitor; |
| 36 import 'script.dart'; | 36 import 'script.dart'; |
| 37 import 'source_file_provider.dart' as source_file_provider; | 37 import 'source_file_provider.dart' as source_file_provider; |
| 38 import 'ssa/nodes.dart' as ssa; | 38 import 'ssa/nodes.dart' as ssa; |
| 39 import 'tree/tree.dart' as tree; | 39 import 'tree/tree.dart' as tree; |
| 40 import 'util/util.dart' as util; | 40 import 'util/util.dart' as util; |
| 41 import 'world.dart'; | 41 import 'world.dart'; |
| 42 | 42 |
| 43 class ElementVisitor extends elements_visitor.BaseElementVisitor { | 43 class ElementVisitor extends elements_visitor.BaseElementVisitor { |
| 44 visitElement(e, a) {} | 44 visitElement(e, a) {} |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 operators.UnaryOperator.fromKind(null); | 290 operators.UnaryOperator.fromKind(null); |
| 291 operators.BinaryOperator.fromKind(null); | 291 operators.BinaryOperator.fromKind(null); |
| 292 new semantic_visitor.BulkSendVisitor()..apply(null, null); | 292 new semantic_visitor.BulkSendVisitor()..apply(null, null); |
| 293 new semantic_visitor.TraversalVisitor(null).apply(null, null); | 293 new semantic_visitor.TraversalVisitor(null).apply(null, null); |
| 294 new semantic_visitor.BulkDeclarationVisitor().apply(null, null); | 294 new semantic_visitor.BulkDeclarationVisitor().apply(null, null); |
| 295 } | 295 } |
| 296 | 296 |
| 297 useDeferred([deferred_load.DeferredLoadTask task]) { | 297 useDeferred([deferred_load.DeferredLoadTask task]) { |
| 298 task.dump(); | 298 task.dump(); |
| 299 } | 299 } |
| OLD | NEW |