handzlikchris / handzlikchris/FastScriptReload
Singleton initalization type is not properly rewritten
- Dominant language
- C#
- Stars
- 2.2k
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Description
```
public class SingletonTest
{
private static SingletonTest _instance;
public static SingletonTest Instance
{
get
{
if (_instance == null)
{
_instance = new SingletonTest(); //Won't be rewritten to __Patched_ version, even with AllPatchedIdentifiersRewriter enabled
}
return _instance;
}
}
private SingletonTest()
{
}
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the SingletonTest example with AllPatchedIdentifiersRewriter enabled and trace the rewriting path for the new SingletonTest() expression. Done means the singleton initialization is rewritten to the __Patched_ version as described in the issue.
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
- 30/100