JetBrains / JetBrains/resharper-unity

generating a method that's yielded should generate one returning IEnumerator, not object

Open
#1,727 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.2k
Forks
142
PR merge metrics
No merged PRs in 30d

Description

I'm talking about this behaviour here:

![Feedback](https://user-images.githubusercontent.com/12800067/86222655-d44c3f80-bb86-11ea-8203-8b6173ac7144.gif)

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.