Finding all calls to public instance methods on the current type
I want to find all cases where an instance method from a type calls a public method on the same type.
The general idea is that public self-calls can be a bad practice in some situations (I know, I'm simplifying greatly).
Usually the code can be rewritten to that both public methods delegate to a method with more restricted scope.
Is there an existing inspection that can flag this, or can I perhaps utilize structural search for this task?
Please sign in to leave a comment.