handzlikchris / handzlikchris/FastScriptReload
Builder internal class constructor rewrite issue [Workaround]
- Dominant language
- C#
- Stars
- 2.2k
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Description
Current Workaround
========
Thanks to new c# syntax rewrites nicely as type can be omited.
```c#
public class Ghost{
public Ghost MyBuilderFunc()
{
return new /*Remove Class name*/(/*params*/);
}
}
```
Issue
====
```c#
public class Ghost{
public Ghost MyBuilderFunc()
{
return new Ghost(/*params*/);
}
}
```
rewrites to and fail as class mismatch
```c#
public class Ghost__Patched{
public Ghost__Patched MyBuilderFunc()
{
return new Ghost(/*params*/);
}
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
No file or test is named in the issue. Start by locating the code-rewrite path that patches class names and handles constructor expressions, then reproduce the shown Ghost example; done means the rewritten class and return type remain consistent without relying on the workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- devtools, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100