handzlikchris / handzlikchris/FastScriptReload

Rewrites for same class token

Open
#186 2 comments 0 reactions 0 assignees View on GitHub
feature user-code-rewrite
Dominant language
C#
Stars
2.2k
Forks
167
PR merge metrics
No merged PRs in 30d

Description

This is the usecase I'd like to make workable. I open this as a reference and will try to make a PR sooner or later.
````c#
public class MyClass{

private void MyMethod(){
var myOtherInstanceOfMyClass = RetrieveOtherInstance();
myOtherInstanceOfMyClass.MyOtherMethod();

myOtherInstanceOfMyClass = RetrieveOtherInstance(typeof(MyClass));
myOtherInstanceOfMyClass.MyOtherMethod();

MyClass myOtherAgain= new MyClass();
myOtherAgain.MyOtherMethod();
}

private void MyOtherMethod(){};

}

````

It seems doable as we simply need to rewrite `` and `Typeof(myclass)` and class naming, which is not rewritten when in the same class as of now.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.