handzlikchris / handzlikchris/FastScriptReload

Rewrites for same class token

Aperta
#186 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
feature user-code-rewrite
Lingua principale
C#
Stelle
2.2k
Fork
167
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.