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

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

Issue 2933093002: Revert "Handle named mixin application in emitter" (Closed)
Patch Set: Add bug numbers. Created 3 years, 6 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/task.dart ('k') | tests/language/language_dart2js.status » ('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 '../common.dart'; 9 import '../common.dart';
10 import '../common_elements.dart'; 10 import '../common_elements.dart';
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 cls.ensureResolved(_resolution); 401 cls.ensureResolved(_resolution);
402 return cls.rawType; 402 return cls.rawType;
403 } 403 }
404 404
405 @override 405 @override
406 bool isGenericClass(ClassEntity cls) { 406 bool isGenericClass(ClassEntity cls) {
407 return getThisType(cls).typeArguments.isNotEmpty; 407 return getThisType(cls).typeArguments.isNotEmpty;
408 } 408 }
409 409
410 @override 410 @override
411 bool isMixinApplication(ClassElement cls) {
412 return cls.isMixinApplication;
413 }
414
415 @override
416 bool isUnnamedMixinApplication(ClassElement cls) { 411 bool isUnnamedMixinApplication(ClassElement cls) {
417 return cls.isUnnamedMixinApplication; 412 return cls.isUnnamedMixinApplication;
418 } 413 }
419 414
420 @override 415 @override
421 ResolutionDartType getTypeVariableBound(TypeVariableElement typeVariable) { 416 ResolutionDartType getTypeVariableBound(TypeVariableElement typeVariable) {
422 return typeVariable.bound; 417 return typeVariable.bound;
423 } 418 }
424 419
425 @override 420 @override
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 @override 842 @override
848 WorkItem createWorkItem(MemberElement element) { 843 WorkItem createWorkItem(MemberElement element) {
849 assert(element.isDeclaration, failedAt(element)); 844 assert(element.isDeclaration, failedAt(element));
850 if (element.isMalformed) return null; 845 if (element.isMalformed) return null;
851 846
852 assert(element is AnalyzableElement, 847 assert(element is AnalyzableElement,
853 failedAt(element, 'Element $element is not analyzable.')); 848 failedAt(element, 'Element $element is not analyzable.'));
854 return _resolution.createWorkItem(element); 849 return _resolution.createWorkItem(element);
855 } 850 }
856 } 851 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/task.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698