| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |