Skip to content

EPC30: don't warn when same method is called from a nested function (…#324

Merged
SergeyTeplyakov merged 1 commit into
masterfrom
pr/issue-318-recursive-call-in-delegate
May 20, 2026
Merged

EPC30: don't warn when same method is called from a nested function (…#324
SergeyTeplyakov merged 1 commit into
masterfrom
pr/issue-318-recursive-call-in-delegate

Conversation

@SergeyTeplyakov
Copy link
Copy Markdown
Owner

#318)

RecursiveCallAnalyzer descended into the full method body, so calls to the containing method from inside a lambda, anonymous method, or local function were flagged as unconditional recursion. Those calls don't execute as part of the enclosing method's control flow, so skip invocations nested inside IAnonymousFunctionOperation / ILocalFunctionOperation.

…318)

RecursiveCallAnalyzer descended into the full method body, so calls to the containing method from inside a lambda, anonymous method, or local function were flagged as unconditional recursion. Those calls don't execute as part of the enclosing method's control flow, so skip invocations nested inside IAnonymousFunctionOperation / ILocalFunctionOperation.
@SergeyTeplyakov SergeyTeplyakov merged commit fd45755 into master May 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant