-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Thank you for taking the time to file an issue!
In order to route, prioritize, and act on this, please include:
- Dart SDK Version (2.2.0)
- macOS
In this commit, some of the contents of pkg/analyzer/lib/dart/element/element.dart were annotated as @deprecated; however, the documentation does not seem to suggest any alternatives.
I used to use computeNode(), from the class MethodElement, to retrieve the body implementation of a MethodElement as follows:
final commonBody = methodElement.computeNode().body;
but not the analyzer is marking it as deprecated, so I would like to understand what is the alternative for this use case.
PS. To give some more context, this is part of a code generator (using source_gen) that is parsing the contents of files annotated with certain metadata.
Thanks!