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.metadata_collector; | 5 library dart2js.js_emitter.metadata_collector; |
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 | 8 |
9 import '../common.dart'; | 9 import '../common.dart'; |
10 import '../constants/values.dart'; | 10 import '../constants/values.dart'; |
11 import '../elements/resolution_types.dart' | 11 import '../elements/resolution_types.dart' |
12 show ResolutionDartType, ResolutionTypedefType; | 12 show ResolutionDartType, ResolutionTypedefType; |
13 import '../deferred_load.dart' show DeferredLoadTask, OutputUnit; | 13 import '../deferred_load.dart' show DeferredLoadTask, OutputUnit; |
14 import '../elements/elements.dart' | 14 import '../elements/elements.dart' |
15 show | 15 show |
16 ClassElement, | 16 ClassElement, |
17 ConstructorElement, | 17 ConstructorElement, |
18 Element, | 18 Element, |
19 FieldElement, | 19 FieldElement, |
20 FunctionElement, | 20 FunctionElement, |
21 FunctionSignature, | 21 FunctionSignature, |
22 LibraryElement, | 22 LibraryElement, |
23 MemberElement, | 23 MemberElement, |
24 MethodElement, | 24 MethodElement, |
25 MetadataAnnotation, | 25 MetadataAnnotation, |
26 ParameterElement; | 26 ParameterElement; |
27 import '../js/js.dart' as jsAst; | 27 import '../js/js.dart' as jsAst; |
28 import '../js/js.dart' show js; | 28 import '../js/js.dart' show js; |
29 import '../js_backend/backend.dart' show RuntimeTypesEncoder; | |
30 import '../js_backend/constant_handler_javascript.dart'; | 29 import '../js_backend/constant_handler_javascript.dart'; |
31 import '../js_backend/mirrors_data.dart'; | 30 import '../js_backend/mirrors_data.dart'; |
| 31 import '../js_backend/runtime_types.dart' show RuntimeTypesEncoder; |
32 import '../js_backend/type_variable_handler.dart' | 32 import '../js_backend/type_variable_handler.dart' |
33 show TypeVariableCodegenAnalysis; | 33 show TypeVariableCodegenAnalysis; |
34 import '../options.dart'; | 34 import '../options.dart'; |
35 | 35 |
36 import 'code_emitter_task.dart' show Emitter; | 36 import 'code_emitter_task.dart' show Emitter; |
37 | 37 |
38 /// Represents an entry's position in one of the global metadata arrays. | 38 /// Represents an entry's position in one of the global metadata arrays. |
39 /// | 39 /// |
40 /// [_rc] is used to count the number of references of the token in the | 40 /// [_rc] is used to count the number of references of the token in the |
41 /// ast for a program. | 41 /// ast for a program. |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 if (token is _ForwardingMetadataEntry && !token.isBound) { | 463 if (token is _ForwardingMetadataEntry && !token.isBound) { |
464 _foundUnboundToken = true; | 464 _foundUnboundToken = true; |
465 } | 465 } |
466 } | 466 } |
467 | 467 |
468 bool findUnboundPlaceholders(jsAst.Node node) { | 468 bool findUnboundPlaceholders(jsAst.Node node) { |
469 node.accept(this); | 469 node.accept(this); |
470 return _foundUnboundToken; | 470 return _foundUnboundToken; |
471 } | 471 } |
472 } | 472 } |
OLD | NEW |