handzlikchris / handzlikchris/FastScriptReload
Rewrites for same class token
- Vorherrschende Sprache
- C#
- Sterne
- 2.2k
- Forks
- 167
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start by tracing the existing code-rewriting logic for class names and type references in the FastScriptReload repository. Use the example in this issue to check generic MyClass references, typeof(MyClass), and construction or member access within the same class; done means all shown forms are rewritten correctly during hot reload.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp, unity
- Bereich
- devtools, game-dev
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100