| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library dart2js.js_emitter; | 5 library dart2js.js_emitter; |
| 6 | 6 |
| 7 import 'package:js_ast/src/precedence.dart' as js_precedence; | 7 import 'package:js_ast/src/precedence.dart' as js_precedence; |
| 8 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; | 8 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; |
| 9 import 'package:js_runtime/shared/embedded_names.dart' show JsBuiltin; | 9 import 'package:js_runtime/shared/embedded_names.dart' show JsBuiltin; |
| 10 | 10 |
| 11 import '../closure.dart' |
| 12 show ClosureClassElement, ClosureClassMap, ClosureFieldElement; |
| 11 import '../common.dart'; | 13 import '../common.dart'; |
| 12 import '../common/names.dart' show Identifiers; | 14 import '../common/names.dart' show Identifiers; |
| 13 import '../common/tasks.dart' show CompilerTask; | 15 import '../common/tasks.dart' show CompilerTask; |
| 14 import '../compiler.dart' show Compiler; | 16 import '../compiler.dart' show Compiler; |
| 15 import '../constants/values.dart'; | 17 import '../constants/values.dart'; |
| 16 import '../closure.dart' | |
| 17 show | |
| 18 ClosureClassElement, | |
| 19 ClosureClassMap, | |
| 20 ClosureFieldElement, | |
| 21 CapturedVariable; | |
| 22 import '../core_types.dart' show CoreClasses; | 18 import '../core_types.dart' show CoreClasses; |
| 23 import '../dart_types.dart' | 19 import '../dart_types.dart' |
| 24 show | 20 show |
| 25 DartType, | 21 DartType, |
| 26 FunctionType, | 22 FunctionType, |
| 27 InterfaceType, | 23 InterfaceType, |
| 28 TypedefType, | 24 TypedefType, |
| 29 Types, | 25 Types, |
| 30 TypeVariableType; | 26 TypeVariableType; |
| 31 import '../deferred_load.dart' show OutputUnit; | 27 import '../deferred_load.dart' show OutputUnit; |
| 32 import '../elements/elements.dart' | 28 import '../elements/elements.dart' |
| 33 show | 29 show |
| 34 ClassElement, | 30 ClassElement, |
| 35 ConstructorBodyElement, | |
| 36 ConstructorElement, | 31 ConstructorElement, |
| 37 Element, | 32 Element, |
| 38 Elements, | |
| 39 ElementKind, | 33 ElementKind, |
| 40 FieldElement, | 34 FieldElement, |
| 41 FunctionElement, | 35 FunctionElement, |
| 42 FunctionSignature, | 36 FunctionSignature, |
| 43 MetadataAnnotation, | 37 MetadataAnnotation, |
| 44 MethodElement, | 38 MethodElement, |
| 45 MemberElement, | |
| 46 MixinApplicationElement, | 39 MixinApplicationElement, |
| 47 ParameterElement, | 40 ParameterElement, |
| 48 TypeVariableElement; | 41 TypeVariableElement; |
| 49 import '../js/js.dart' as jsAst; | 42 import '../js/js.dart' as jsAst; |
| 50 import '../js/js.dart' show js; | 43 import '../js/js.dart' show js; |
| 51 import '../js_backend/backend_helpers.dart' show BackendHelpers; | 44 import '../js_backend/backend_helpers.dart' show BackendHelpers; |
| 52 import '../js_backend/js_backend.dart' | 45 import '../js_backend/js_backend.dart' |
| 53 show | 46 show |
| 54 CheckedModeHelper, | |
| 55 CompoundName, | |
| 56 ConstantEmitter, | |
| 57 CustomElementsAnalysis, | 47 CustomElementsAnalysis, |
| 58 GetterName, | |
| 59 JavaScriptBackend, | 48 JavaScriptBackend, |
| 60 JavaScriptConstantCompiler, | 49 JavaScriptConstantCompiler, |
| 61 Namer, | 50 Namer, |
| 62 RuntimeTypes, | 51 RuntimeTypes, |
| 63 RuntimeTypesEncoder, | 52 RuntimeTypesEncoder, |
| 64 SetterName, | |
| 65 Substitution, | 53 Substitution, |
| 66 TypeCheck, | 54 TypeCheck, |
| 67 TypeChecks, | 55 TypeChecks, |
| 68 TypeVariableHandler; | 56 TypeVariableHandler; |
| 69 import '../universe/call_structure.dart' show CallStructure; | 57 import '../universe/call_structure.dart' show CallStructure; |
| 70 import '../universe/selector.dart' show Selector; | 58 import '../universe/selector.dart' show Selector; |
| 71 import '../universe/universe.dart' show SelectorConstraints; | 59 import '../universe/universe.dart' show SelectorConstraints; |
| 72 import '../util/util.dart' show Setlet; | 60 import '../util/util.dart' show Setlet; |
| 73 | |
| 74 import 'full_emitter/emitter.dart' as full_js_emitter; | 61 import 'full_emitter/emitter.dart' as full_js_emitter; |
| 75 import 'lazy_emitter/emitter.dart' as lazy_js_emitter; | 62 import 'lazy_emitter/emitter.dart' as lazy_js_emitter; |
| 76 import 'model.dart'; | 63 import 'model.dart'; |
| 77 import 'program_builder/program_builder.dart'; | 64 import 'program_builder/program_builder.dart'; |
| 78 import 'startup_emitter/emitter.dart' as startup_js_emitter; | 65 import 'startup_emitter/emitter.dart' as startup_js_emitter; |
| 79 | 66 |
| 80 part 'class_stub_generator.dart'; | 67 part 'class_stub_generator.dart'; |
| 81 part 'code_emitter_task.dart'; | 68 part 'code_emitter_task.dart'; |
| 82 part 'helpers.dart'; | 69 part 'helpers.dart'; |
| 83 part 'interceptor_stub_generator.dart'; | 70 part 'interceptor_stub_generator.dart'; |
| 84 part 'main_call_stub_generator.dart'; | 71 part 'main_call_stub_generator.dart'; |
| 85 part 'metadata_collector.dart'; | 72 part 'metadata_collector.dart'; |
| 86 part 'native_emitter.dart'; | 73 part 'native_emitter.dart'; |
| 87 part 'native_generator.dart'; | 74 part 'native_generator.dart'; |
| 88 part 'parameter_stub_generator.dart'; | 75 part 'parameter_stub_generator.dart'; |
| 89 part 'runtime_type_generator.dart'; | 76 part 'runtime_type_generator.dart'; |
| 90 part 'type_test_registry.dart'; | 77 part 'type_test_registry.dart'; |
| OLD | NEW |