JetBrains / JetBrains/resharper-unity
generating a method that's yielded should generate one returning IEnumerator, not object
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
I'm talking about this behaviour here:

For non-Unity projects, object is the correct thing to suggest, since that's what IEnumerator yields. But for Unity projects, yielding a new method inside an IEnumerator means that you probably want that method to be an inner coroutine (ie. another method that returns IEnumerator).
Contributor guide
Research direction
No source file, test, or entry point is named. Start by reproducing the method-generation suggestion shown in the linked feedback for a Unity project, then compare it with the non-Unity behavior described in the issue. Done means a yielded method in a Unity project is suggested with an IEnumerator return type while the non-Unity suggestion remains object.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- game-dev, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100