| Index: pkg/analyzer/lib/src/generated/constant.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/constant.dart b/pkg/analyzer/lib/src/generated/constant.dart
|
| index 8638c848cbf3751fa1d4e30841fbdc09e8b94b29..2aab6ed18ab92a960a2d81df113bd22a7508451a 100644
|
| --- a/pkg/analyzer/lib/src/generated/constant.dart
|
| +++ b/pkg/analyzer/lib/src/generated/constant.dart
|
| @@ -2169,7 +2169,7 @@ abstract class DartObject {
|
| * * this object is not of type 'Type', or
|
| * * the value of the object being represented is `null`.
|
| */
|
| - ParameterizedType toTypeValue();
|
| + DartType toTypeValue();
|
| }
|
|
|
| /**
|
| @@ -3130,13 +3130,10 @@ class DartObjectImpl implements DartObject {
|
| }
|
|
|
| @override
|
| - ParameterizedType toTypeValue() {
|
| + DartType toTypeValue() {
|
| if (_state is TypeState) {
|
| Element element = (_state as TypeState).value;
|
| - if (element is ClassElement) {
|
| - return element.type;
|
| - }
|
| - if (element is FunctionElement) {
|
| + if (element is TypeDefiningElement) {
|
| return element.type;
|
| }
|
| }
|
|
|