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 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 return _constantConstructor; | 1101 return _constantConstructor; |
1102 } | 1102 } |
1103 | 1103 |
1104 @override | 1104 @override |
1105 AsyncMarker get asyncMarker => AsyncMarker.SYNC; | 1105 AsyncMarker get asyncMarker => AsyncMarker.SYNC; |
1106 | 1106 |
1107 @override | 1107 @override |
1108 ConstructorElement get definingConstructor => null; | 1108 ConstructorElement get definingConstructor => null; |
1109 | 1109 |
1110 @override | 1110 @override |
| 1111 bool get hasEffectiveTarget => true; |
| 1112 |
| 1113 @override |
1111 ConstructorElement get effectiveTarget { | 1114 ConstructorElement get effectiveTarget { |
1112 if (_effectiveTarget == null) { | 1115 if (_effectiveTarget == null) { |
1113 _effectiveTarget = | 1116 _effectiveTarget = |
1114 _decoder.getElement(Key.EFFECTIVE_TARGET, isOptional: true); | 1117 _decoder.getElement(Key.EFFECTIVE_TARGET, isOptional: true); |
1115 if (_effectiveTarget == null) { | 1118 if (_effectiveTarget == null) { |
1116 _effectiveTarget = this; | 1119 _effectiveTarget = this; |
1117 } | 1120 } |
1118 } | 1121 } |
1119 return _effectiveTarget; | 1122 return _effectiveTarget; |
1120 } | 1123 } |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1262 @override | 1265 @override |
1263 DartType computeType(Resolution resolution) => type; | 1266 DartType computeType(Resolution resolution) => type; |
1264 | 1267 |
1265 @override | 1268 @override |
1266 bool get isConst => false; | 1269 bool get isConst => false; |
1267 | 1270 |
1268 @override | 1271 @override |
1269 ConstantConstructor get constantConstructor => null; | 1272 ConstantConstructor get constantConstructor => null; |
1270 | 1273 |
1271 @override | 1274 @override |
| 1275 bool get hasEffectiveTarget => true; |
| 1276 |
| 1277 @override |
1272 ConstructorElement get effectiveTarget => this; | 1278 ConstructorElement get effectiveTarget => this; |
1273 | 1279 |
1274 @override | 1280 @override |
1275 Element get enclosingElement => enclosingClass; | 1281 Element get enclosingElement => enclosingClass; |
1276 | 1282 |
1277 @override | 1283 @override |
1278 FunctionSignature get functionSignature { | 1284 FunctionSignature get functionSignature { |
1279 // TODO(johnniwinther): Ensure that the function signature (and with it the | 1285 // TODO(johnniwinther): Ensure that the function signature (and with it the |
1280 // function type) substitutes type variables correctly. | 1286 // function type) substitutes type variables correctly. |
1281 return definingConstructor.functionSignature; | 1287 return definingConstructor.functionSignature; |
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2121 } | 2127 } |
2122 | 2128 |
2123 @override | 2129 @override |
2124 ElementKind get kind => ElementKind.PREFIX; | 2130 ElementKind get kind => ElementKind.PREFIX; |
2125 | 2131 |
2126 @override | 2132 @override |
2127 Element lookupLocalMember(String memberName) { | 2133 Element lookupLocalMember(String memberName) { |
2128 return _unsupported('lookupLocalMember'); | 2134 return _unsupported('lookupLocalMember'); |
2129 } | 2135 } |
2130 } | 2136 } |
OLD | NEW |