| 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 elements.modelx; | 5 library elements.modelx; |
| 6 | 6 |
| 7 import 'dart:collection' show LinkedHashMap; | |
| 8 | |
| 9 import 'elements.dart'; | 7 import 'elements.dart'; |
| 10 import '../../compiler.dart' as api; | 8 import '../../compiler.dart' as api; |
| 11 import '../tree/tree.dart'; | 9 import '../tree/tree.dart'; |
| 12 import '../util/util.dart'; | 10 import '../util/util.dart'; |
| 13 import '../resolution/resolution.dart'; | 11 import '../resolution/resolution.dart'; |
| 14 | 12 |
| 15 import '../dart2jslib.dart' show invariant, | 13 import '../dart2jslib.dart' show invariant, |
| 16 InterfaceType, | 14 InterfaceType, |
| 17 DartType, | 15 DartType, |
| 18 TypeVariableType, | 16 TypeVariableType, |
| (...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 * Link for elements exported either through export declarations or through | 741 * Link for elements exported either through export declarations or through |
| 744 * declaration. This field should not be accessed directly but instead through | 742 * declaration. This field should not be accessed directly but instead through |
| 745 * the [exports] getter. | 743 * the [exports] getter. |
| 746 * | 744 * |
| 747 * [LibraryDependencyHandler] sets this field through [setExports] when the | 745 * [LibraryDependencyHandler] sets this field through [setExports] when the |
| 748 * library is loaded. | 746 * library is loaded. |
| 749 */ | 747 */ |
| 750 Link<Element> slotForExports; | 748 Link<Element> slotForExports; |
| 751 | 749 |
| 752 final Map<LibraryDependency, LibraryElement> tagMapping = | 750 final Map<LibraryDependency, LibraryElement> tagMapping = |
| 753 new LinkedHashMap<LibraryDependency, LibraryElement>(); | 751 new Map<LibraryDependency, LibraryElement>(); |
| 754 | 752 |
| 755 LibraryElementX(Script script, [Uri canonicalUri, LibraryElement this.origin]) | 753 LibraryElementX(Script script, [Uri canonicalUri, LibraryElement this.origin]) |
| 756 : this.canonicalUri = ((canonicalUri == null) ? script.uri : canonicalUri), | 754 : this.canonicalUri = ((canonicalUri == null) ? script.uri : canonicalUri), |
| 757 importers = new Map<Element, Link<Import>>(), | 755 importers = new Map<Element, Link<Import>>(), |
| 758 super(new SourceString(script.name), ElementKind.LIBRARY, null) { | 756 super(new SourceString(script.name), ElementKind.LIBRARY, null) { |
| 759 entryCompilationUnit = new CompilationUnitElementX(script, this); | 757 entryCompilationUnit = new CompilationUnitElementX(script, this); |
| 760 if (isPatch) { | 758 if (isPatch) { |
| 761 origin.patch = this; | 759 origin.patch = this; |
| 762 } | 760 } |
| 763 } | 761 } |
| (...skipping 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2329 | 2327 |
| 2330 MetadataAnnotation ensureResolved(Compiler compiler) { | 2328 MetadataAnnotation ensureResolved(Compiler compiler) { |
| 2331 if (resolutionState == STATE_NOT_STARTED) { | 2329 if (resolutionState == STATE_NOT_STARTED) { |
| 2332 compiler.resolver.resolveMetadataAnnotation(this); | 2330 compiler.resolver.resolveMetadataAnnotation(this); |
| 2333 } | 2331 } |
| 2334 return this; | 2332 return this; |
| 2335 } | 2333 } |
| 2336 | 2334 |
| 2337 String toString() => 'MetadataAnnotation($value, $resolutionState)'; | 2335 String toString() => 'MetadataAnnotation($value, $resolutionState)'; |
| 2338 } | 2336 } |
| OLD | NEW |