| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 library dart2js.js_emitter; | |
| 6 | |
| 7 import '../common.dart'; | |
| 8 | |
| 9 import '../constants/expressions.dart'; | |
| 10 import '../constants/values.dart'; | |
| 11 | |
| 12 import '../closure.dart' show | |
| 13 ClosureClassElement, | |
| 14 ClosureClassMap, | |
| 15 ClosureFieldElement, | |
| 16 CapturedVariable; | |
| 17 | |
| 18 import '../dart_types.dart' show | |
| 19 TypedefType; | |
| 20 | |
| 21 import '../dart2jslib.dart' show | |
| 22 CodeBuffer; | |
| 23 | |
| 24 import '../elements/elements.dart' show | |
| 25 ConstructorBodyElement, | |
| 26 ElementKind, | |
| 27 ParameterElement, | |
| 28 TypeVariableElement; | |
| 29 | |
| 30 import '../hash/sha1.dart' show hashOfString; | |
| 31 | |
| 32 // import '../helpers/helpers.dart'; // Included for debug helpers. | |
| 33 | |
| 34 import '../js/js.dart' as jsAst; | |
| 35 import '../js/js.dart' show | |
| 36 js; | |
| 37 | |
| 38 import '../js_backend/js_backend.dart' show | |
| 39 CheckedModeHelper, | |
| 40 ConstantEmitter, | |
| 41 CustomElementsAnalysis, | |
| 42 JavaScriptBackend, | |
| 43 JavaScriptConstantCompiler, | |
| 44 Namer, | |
| 45 NativeEmitter, | |
| 46 RuntimeTypes, | |
| 47 Substitution, | |
| 48 TypeCheck, | |
| 49 TypeChecks, | |
| 50 TypeVariableHandler; | |
| 51 | |
| 52 import 'model.dart'; | |
| 53 import 'program_builder.dart'; | |
| 54 | |
| 55 import 'new_emitter/emitter.dart' as new_js_emitter; | |
| 56 | |
| 57 import '../source_file.dart' show | |
| 58 SourceFile, | |
| 59 StringSourceFile; | |
| 60 | |
| 61 import '../source_map_builder.dart' show | |
| 62 SourceMapBuilder; | |
| 63 | |
| 64 import '../util/characters.dart' show | |
| 65 $$, | |
| 66 $A, | |
| 67 $HASH, | |
| 68 $PERIOD, | |
| 69 $Z, | |
| 70 $a, | |
| 71 $z; | |
| 72 | |
| 73 import '../util/util.dart' show | |
| 74 NO_LOCATION_SPANNABLE; | |
| 75 | |
| 76 import '../util/uri_extras.dart' show | |
| 77 relativize; | |
| 78 | |
| 79 import '../util/util.dart' show | |
| 80 equalElements; | |
| 81 | |
| 82 import '../deferred_load.dart' show | |
| 83 OutputUnit; | |
| 84 | |
| 85 import '../../js_lib/shared/runtime_data.dart' as encoding; | |
| 86 import '../../js_lib/shared/embedded_names.dart' as embeddedNames; | |
| 87 | |
| 88 import '../hash/sha1.dart'; | |
| 89 | |
| 90 part 'class_stub_generator.dart'; | |
| 91 part 'code_emitter_task.dart'; | |
| 92 part 'helpers.dart'; | |
| 93 part 'interceptor_stub_generator.dart'; | |
| 94 | |
| 95 part 'old_emitter/class_builder.dart'; | |
| 96 part 'old_emitter/class_emitter.dart'; | |
| 97 part 'old_emitter/code_emitter_helper.dart'; | |
| 98 part 'old_emitter/container_builder.dart'; | |
| 99 part 'old_emitter/declarations.dart'; | |
| 100 part 'old_emitter/emitter.dart'; | |
| 101 part 'old_emitter/interceptor_emitter.dart'; | |
| 102 part 'old_emitter/metadata_emitter.dart'; | |
| 103 part 'old_emitter/nsm_emitter.dart'; | |
| 104 part 'old_emitter/reflection_data_parser.dart'; | |
| 105 part 'old_emitter/type_test_emitter.dart'; | |
| OLD | NEW |