API request: IOperation ancestor extension methods #52583
Labels
Area-Analyzers
Concept-Design Debt
Engineering Debt, Design Debt, or poor product code quality
Need Design Review
The end user experience design needs to be reviewed and approved.
Projects
Milestone
Please provide public extension methods
Ancestors()
,AncestorsAndSelf()
, andFirstAncestorOrSelf<T>
on IOperation just like the ones publicly provided on SyntaxNode.I write these helpers in many of my own projects and just recently added them inside an IDE enhancement I contributed.
Here's a usage example from one of the recent times I wrote my own Ancestors extension method:
The text was updated successfully, but these errors were encountered: