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

Side by Side Diff: pkg/compiler/lib/src/resolution/resolution_strategy.dart

Issue 3001823002: Revert "Various redemptions" (Closed)
Patch Set: Created 3 years, 4 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 | « pkg/compiler/lib/src/kernel/env.dart ('k') | pkg/compiler/lib/src/ssa/optimize.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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 dart2js.resolution_strategy; 5 library dart2js.resolution_strategy;
6 6
7 import 'package:front_end/src/fasta/scanner.dart' show Token; 7 import 'package:front_end/src/fasta/scanner.dart' show Token;
8 8
9 import '../../compiler_new.dart' as api; 9 import '../../compiler_new.dart' as api;
10 import '../common.dart'; 10 import '../common.dart';
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 ClassElement definingClass = 661 ClassElement definingClass =
662 constructor.definingConstructor.enclosingClass; 662 constructor.definingConstructor.enclosingClass;
663 type = type.substByContext( 663 type = type.substByContext(
664 method.enclosingClass.thisType.asInstanceOf(definingClass)); 664 method.enclosingClass.thisType.asInstanceOf(definingClass));
665 } 665 }
666 } 666 }
667 return type; 667 return type;
668 } 668 }
669 669
670 @override 670 @override
671 DartType getFieldType(covariant FieldElement field) {
672 field.computeType(_resolution);
673 return field.type;
674 }
675
676 @override
677 ResolutionFunctionType getLocalFunctionType( 671 ResolutionFunctionType getLocalFunctionType(
678 covariant LocalFunctionElement function) { 672 covariant LocalFunctionElement function) {
679 return function.type; 673 return function.type;
680 } 674 }
681 675
682 @override 676 @override
683 ResolutionDartType getUnaliasedType(covariant ResolutionDartType type) { 677 ResolutionDartType getUnaliasedType(covariant ResolutionDartType type) {
684 type.computeUnaliased(_resolution); 678 type.computeUnaliased(_resolution);
685 return type.unaliased; 679 return type.unaliased;
686 } 680 }
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 952
959 @override 953 @override
960 void forEachConstructor( 954 void forEachConstructor(
961 covariant ClassElement cls, void f(ConstructorEntity constructor)) { 955 covariant ClassElement cls, void f(ConstructorEntity constructor)) {
962 cls.constructors.forEach((Element _constructor) { 956 cls.constructors.forEach((Element _constructor) {
963 ConstructorElement constructor = _constructor; 957 ConstructorElement constructor = _constructor;
964 f(constructor); 958 f(constructor);
965 }); 959 });
966 } 960 }
967 } 961 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/env.dart ('k') | pkg/compiler/lib/src/ssa/optimize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698