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

Unified Diff: pkg/analyzer/lib/src/generated/constant.dart

Issue 1490233007: Remove the old task model (Closed) Base URL: https://github.com/dart-lang/sdk.git@analyzer-breaking-0.27
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
}
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698