| 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; | 7 import 'dart:collection' show LinkedHashMap; |
| 8 | 8 |
| 9 import 'elements.dart'; | 9 import 'elements.dart'; |
| 10 import '../../compiler.dart' as api; | 10 import '../../compiler.dart' as api; |
| (...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1567 int get hashCode => id; | 1567 int get hashCode => id; |
| 1568 ClassElement get patch => super.patch; | 1568 ClassElement get patch => super.patch; |
| 1569 ClassElement get origin => super.origin; | 1569 ClassElement get origin => super.origin; |
| 1570 ClassElement get declaration => super.declaration; | 1570 ClassElement get declaration => super.declaration; |
| 1571 ClassElement get implementation => super.implementation; | 1571 ClassElement get implementation => super.implementation; |
| 1572 | 1572 |
| 1573 bool get hasBackendMembers => !backendMembers.isEmpty; | 1573 bool get hasBackendMembers => !backendMembers.isEmpty; |
| 1574 | 1574 |
| 1575 bool get isUnnamedMixinApplication => false; | 1575 bool get isUnnamedMixinApplication => false; |
| 1576 | 1576 |
| 1577 // TODO(johnniwinther): Add [thisType] getter similar to [rawType]. |
| 1577 InterfaceType computeType(Compiler compiler) { | 1578 InterfaceType computeType(Compiler compiler) { |
| 1578 if (thisType == null) { | 1579 if (thisType == null) { |
| 1579 if (origin == null) { | 1580 if (origin == null) { |
| 1580 Link<DartType> parameters = computeTypeParameters(compiler); | 1581 Link<DartType> parameters = computeTypeParameters(compiler); |
| 1581 thisType = new InterfaceType(this, parameters); | 1582 thisType = new InterfaceType(this, parameters); |
| 1582 if (parameters.isEmpty) { | 1583 if (parameters.isEmpty) { |
| 1583 rawTypeCache = thisType; | 1584 rawTypeCache = thisType; |
| 1584 } else { | 1585 } else { |
| 1585 var dynamicParameters = const Link<DartType>(); | 1586 var dynamicParameters = const Link<DartType>(); |
| 1586 parameters.forEach((_) { | 1587 parameters.forEach((_) { |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2232 | 2233 |
| 2233 MetadataAnnotation ensureResolved(Compiler compiler) { | 2234 MetadataAnnotation ensureResolved(Compiler compiler) { |
| 2234 if (resolutionState == STATE_NOT_STARTED) { | 2235 if (resolutionState == STATE_NOT_STARTED) { |
| 2235 compiler.resolver.resolveMetadataAnnotation(this); | 2236 compiler.resolver.resolveMetadataAnnotation(this); |
| 2236 } | 2237 } |
| 2237 return this; | 2238 return this; |
| 2238 } | 2239 } |
| 2239 | 2240 |
| 2240 String toString() => 'MetadataAnnotation($value, $resolutionState)'; | 2241 String toString() => 'MetadataAnnotation($value, $resolutionState)'; |
| 2241 } | 2242 } |
| OLD | NEW |