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

Unified Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 2997333002: Deprecate MethodElement.getReifiedType (Closed)
Patch Set: Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/dart/element/element.dart ('k') | pkg/analyzer/lib/src/dart/element/handle.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/element/element.dart
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index fdd058496ac117636aeaeadaae790fe8e6cc601a..464a9246f2fe071a0708873ade05796fd92db323 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -7222,12 +7222,14 @@ class MethodElementImpl extends ExecutableElementImpl implements MethodElement {
MethodDeclaration computeNode() =>
getNodeMatching((node) => node is MethodDeclaration);
- // TODO(jmesserly): this implementation is completely wrong:
- // It does not handle covariant parameters from a generic class.
- // It drops type parameters from generic methods.
- // Since this method was for DDC, it should be removed.
+ @deprecated
@override
FunctionType getReifiedType(DartType objectType) {
+ // TODO(jmesserly): this implementation is completely wrong:
+ // It does not handle covariant parameters from a generic class.
+ // It drops type parameters from generic methods.
+ // Since this method was for DDC, it should be removed.
+ //
// Check whether we have any covariant parameters.
// Usually we don't, so we can use the same type.
bool hasCovariant = false;
« no previous file with comments | « pkg/analyzer/lib/dart/element/element.dart ('k') | pkg/analyzer/lib/src/dart/element/handle.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698