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

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

Issue 2908153003: It's alive! (Closed)
Patch Set: Updated cf. comments 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
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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 cls.ensureResolved(_resolution); 400 cls.ensureResolved(_resolution);
401 return cls.rawType; 401 return cls.rawType;
402 } 402 }
403 403
404 @override 404 @override
405 bool isGenericClass(ClassEntity cls) { 405 bool isGenericClass(ClassEntity cls) {
406 return getThisType(cls).typeArguments.isNotEmpty; 406 return getThisType(cls).typeArguments.isNotEmpty;
407 } 407 }
408 408
409 @override 409 @override
410 bool isUnnamedMixinApplication(ClassElement cls) {
411 return cls.isUnnamedMixinApplication;
412 }
413
414 @override
410 ResolutionDartType getTypeVariableBound(TypeVariableElement typeVariable) { 415 ResolutionDartType getTypeVariableBound(TypeVariableElement typeVariable) {
411 return typeVariable.bound; 416 return typeVariable.bound;
412 } 417 }
413 418
414 @override 419 @override
415 ResolutionInterfaceType createInterfaceType( 420 ResolutionInterfaceType createInterfaceType(
416 ClassElement cls, List<ResolutionDartType> typeArguments) { 421 ClassElement cls, List<ResolutionDartType> typeArguments) {
417 cls.ensureResolved(_resolution); 422 cls.ensureResolved(_resolution);
418 return cls.thisType.createInstantiation(typeArguments); 423 return cls.thisType.createInstantiation(typeArguments);
419 } 424 }
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 @override 838 @override
834 WorkItem createWorkItem(MemberElement element) { 839 WorkItem createWorkItem(MemberElement element) {
835 assert(element.isDeclaration, failedAt(element)); 840 assert(element.isDeclaration, failedAt(element));
836 if (element.isMalformed) return null; 841 if (element.isMalformed) return null;
837 842
838 assert(element is AnalyzableElement, 843 assert(element is AnalyzableElement,
839 failedAt(element, 'Element $element is not analyzable.')); 844 failedAt(element, 'Element $element is not analyzable.'));
840 return _resolution.createWorkItem(element); 845 return _resolution.createWorkItem(element);
841 } 846 }
842 } 847 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel_strategy.dart ('k') | pkg/compiler/lib/src/universe/selector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698