Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1129)

Side by Side Diff: pkg/compiler/lib/src/serialization/modelz.dart

Issue 1981313002: Fix ForwardingConstructorElementZ.computeEffectiveTargetType (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comment. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tests/compiler/dart2js/serialization/equivalence_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 @override 1249 @override
1250 accept(ElementVisitor visitor, arg) { 1250 accept(ElementVisitor visitor, arg) {
1251 return visitor.visitConstructorElement(this, arg); 1251 return visitor.visitConstructorElement(this, arg);
1252 } 1252 }
1253 1253
1254 @override 1254 @override
1255 AsyncMarker get asyncMarker => AsyncMarker.SYNC; 1255 AsyncMarker get asyncMarker => AsyncMarker.SYNC;
1256 1256
1257 @override 1257 @override
1258 InterfaceType computeEffectiveTargetType(InterfaceType newType) { 1258 InterfaceType computeEffectiveTargetType(InterfaceType newType) {
1259 return enclosingClass.thisType; 1259 return enclosingClass.thisType.substByContext(newType);
1260 } 1260 }
1261 1261
1262 @override 1262 @override
1263 DartType computeType(Resolution resolution) => type; 1263 DartType computeType(Resolution resolution) => type;
1264 1264
1265 @override 1265 @override
1266 bool get isConst => false; 1266 bool get isConst => false;
1267 1267
1268 @override 1268 @override
1269 ConstantConstructor get constantConstructor => null; 1269 ConstantConstructor get constantConstructor => null;
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
2121 } 2121 }
2122 2122
2123 @override 2123 @override
2124 ElementKind get kind => ElementKind.PREFIX; 2124 ElementKind get kind => ElementKind.PREFIX;
2125 2125
2126 @override 2126 @override
2127 Element lookupLocalMember(String memberName) { 2127 Element lookupLocalMember(String memberName) {
2128 return _unsupported('lookupLocalMember'); 2128 return _unsupported('lookupLocalMember');
2129 } 2129 }
2130 } 2130 }
OLDNEW
« no previous file with comments | « no previous file | tests/compiler/dart2js/serialization/equivalence_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698