| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 /// Implementation of the element model used for deserialiation. | 5 /// Implementation of the element model used for deserialiation. |
| 6 /// | 6 /// |
| 7 /// These classes are created by [ElementDeserializer] triggered by the | 7 /// These classes are created by [ElementDeserializer] triggered by the |
| 8 /// [Deserializer]. | 8 /// [Deserializer]. |
| 9 | 9 |
| 10 library dart2js.serialization.modelz; | 10 library dart2js.serialization.modelz; |
| (...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 } | 933 } |
| 934 | 934 |
| 935 @override | 935 @override |
| 936 String get nativeTagInfo => _unsupported('nativeTagInfo'); | 936 String get nativeTagInfo => _unsupported('nativeTagInfo'); |
| 937 | 937 |
| 938 @override | 938 @override |
| 939 void reverseBackendMembers() => _unsupported('reverseBackendMembers'); | 939 void reverseBackendMembers() => _unsupported('reverseBackendMembers'); |
| 940 | 940 |
| 941 @override | 941 @override |
| 942 ClassElement get superclass => supertype != null ? supertype.element : null; | 942 ClassElement get superclass => supertype != null ? supertype.element : null; |
| 943 |
| 944 @override |
| 945 void ensureResolved(Compiler compiler) { |
| 946 compiler.world.registerClass(this); |
| 947 } |
| 943 } | 948 } |
| 944 | 949 |
| 945 abstract class ConstructorElementZ extends DeserializedElementZ | 950 abstract class ConstructorElementZ extends DeserializedElementZ |
| 946 with AnalyzableElementMixin, | 951 with AnalyzableElementMixin, |
| 947 AstElementMixin, | 952 AstElementMixin, |
| 948 ClassMemberMixin, | 953 ClassMemberMixin, |
| 949 FunctionTypedElementMixin, | 954 FunctionTypedElementMixin, |
| 950 ParametersMixin, | 955 ParametersMixin, |
| 951 TypedElementMixin, | 956 TypedElementMixin, |
| 952 MemberElementMixin | 957 MemberElementMixin |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1273 T get thisType { | 1278 T get thisType { |
| 1274 _ensureTypes(); | 1279 _ensureTypes(); |
| 1275 return _thisType; | 1280 return _thisType; |
| 1276 } | 1281 } |
| 1277 | 1282 |
| 1278 @override | 1283 @override |
| 1279 T computeType(Compiler compiler) => thisType; | 1284 T computeType(Compiler compiler) => thisType; |
| 1280 | 1285 |
| 1281 @override | 1286 @override |
| 1282 bool get isResolved => true; | 1287 bool get isResolved => true; |
| 1283 | |
| 1284 @override | |
| 1285 void ensureResolved(Compiler compiler) {} | |
| 1286 } | 1288 } |
| 1287 | 1289 |
| 1288 class TypedefElementZ extends DeserializedElementZ | 1290 class TypedefElementZ extends DeserializedElementZ |
| 1289 with AnalyzableElementMixin, | 1291 with AnalyzableElementMixin, |
| 1290 AstElementMixin, | 1292 AstElementMixin, |
| 1291 LibraryMemberMixin, | 1293 LibraryMemberMixin, |
| 1292 ParametersMixin, | 1294 ParametersMixin, |
| 1293 TypeDeclarationMixin<TypedefType> | 1295 TypeDeclarationMixin<TypedefType> |
| 1294 implements TypedefElement { | 1296 implements TypedefElement { |
| 1295 DartType _alias; | 1297 DartType _alias; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1311 | 1313 |
| 1312 @override | 1314 @override |
| 1313 DartType get alias { | 1315 DartType get alias { |
| 1314 if (_alias == null) { | 1316 if (_alias == null) { |
| 1315 _alias = _decoder.getType(Key.ALIAS); | 1317 _alias = _decoder.getType(Key.ALIAS); |
| 1316 } | 1318 } |
| 1317 return _alias; | 1319 return _alias; |
| 1318 } | 1320 } |
| 1319 | 1321 |
| 1320 @override | 1322 @override |
| 1323 void ensureResolved(Compiler compiler) {} |
| 1324 |
| 1325 @override |
| 1321 void checkCyclicReference(Compiler compiler) {} | 1326 void checkCyclicReference(Compiler compiler) {} |
| 1322 } | 1327 } |
| 1323 | 1328 |
| 1324 class TypeVariableElementZ extends DeserializedElementZ | 1329 class TypeVariableElementZ extends DeserializedElementZ |
| 1325 with AnalyzableElementMixin, | 1330 with AnalyzableElementMixin, |
| 1326 AstElementMixin, | 1331 AstElementMixin, |
| 1327 TypedElementMixin | 1332 TypedElementMixin |
| 1328 implements TypeVariableElement { | 1333 implements TypeVariableElement { |
| 1329 TypeDeclarationElement _typeDeclaration; | 1334 TypeDeclarationElement _typeDeclaration; |
| 1330 TypeVariableType _type; | 1335 TypeVariableType _type; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1469 | 1474 |
| 1470 @override | 1475 @override |
| 1471 accept(ElementVisitor visitor, arg) { | 1476 accept(ElementVisitor visitor, arg) { |
| 1472 return visitor.visitFieldParameterElement(this, arg); | 1477 return visitor.visitFieldParameterElement(this, arg); |
| 1473 } | 1478 } |
| 1474 | 1479 |
| 1475 @override | 1480 @override |
| 1476 ElementKind get kind => ElementKind.INITIALIZING_FORMAL; | 1481 ElementKind get kind => ElementKind.INITIALIZING_FORMAL; |
| 1477 | 1482 |
| 1478 } | 1483 } |
| OLD | NEW |