| 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 '../compiler.dart' show Compiler; | 10 import '../compiler.dart' show Compiler; |
| 11 import '../constants/values.dart'; | 11 import '../constants/values.dart'; |
| 12 import '../elements/resolution_types.dart' | 12 import '../elements/resolution_types.dart' |
| 13 show | 13 show ResolutionDartType, ResolutionTypedefType; |
| 14 ResolutionDartType, | |
| 15 ResolutionTypedefType; | |
| 16 import '../deferred_load.dart' show OutputUnit; | 14 import '../deferred_load.dart' show OutputUnit; |
| 17 import '../elements/elements.dart' | 15 import '../elements/elements.dart' |
| 18 show | 16 show |
| 19 ConstructorElement, | 17 ConstructorElement, |
| 20 Element, | 18 Element, |
| 21 FunctionElement, | 19 FunctionElement, |
| 22 FunctionSignature, | 20 FunctionSignature, |
| 23 MetadataAnnotation, | 21 MetadataAnnotation, |
| 24 ParameterElement; | 22 ParameterElement; |
| 25 import '../js/js.dart' as jsAst; | 23 import '../js/js.dart' as jsAst; |
| 26 import '../js/js.dart' show js; | 24 import '../js/js.dart' show js; |
| 27 import '../js_backend/js_backend.dart' | 25 import '../js_backend/js_backend.dart' |
| 28 show | 26 show JavaScriptBackend, TypeVariableHandler; |
| 29 JavaScriptBackend, | |
| 30 TypeVariableHandler; | |
| 31 | 27 |
| 32 import 'code_emitter_task.dart' show Emitter; | 28 import 'code_emitter_task.dart' show Emitter; |
| 33 | 29 |
| 34 /// Represents an entry's position in one of the global metadata arrays. | 30 /// Represents an entry's position in one of the global metadata arrays. |
| 35 /// | 31 /// |
| 36 /// [_rc] is used to count the number of references of the token in the | 32 /// [_rc] is used to count the number of references of the token in the |
| 37 /// ast for a program. | 33 /// ast for a program. |
| 38 /// [value] is the actual position, once they have been finalized. | 34 /// [value] is the actual position, once they have been finalized. |
| 39 abstract class _MetadataEntry extends jsAst.DeferredNumber | 35 abstract class _MetadataEntry extends jsAst.DeferredNumber |
| 40 implements Comparable, jsAst.ReferenceCountedAstNode { | 36 implements Comparable, jsAst.ReferenceCountedAstNode { |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 if (token is _ForwardingMetadataEntry && !token.isBound) { | 447 if (token is _ForwardingMetadataEntry && !token.isBound) { |
| 452 _foundUnboundToken = true; | 448 _foundUnboundToken = true; |
| 453 } | 449 } |
| 454 } | 450 } |
| 455 | 451 |
| 456 bool findUnboundPlaceholders(jsAst.Node node) { | 452 bool findUnboundPlaceholders(jsAst.Node node) { |
| 457 node.accept(this); | 453 node.accept(this); |
| 458 return _foundUnboundToken; | 454 return _foundUnboundToken; |
| 459 } | 455 } |
| 460 } | 456 } |
| OLD | NEW |