handzlikchris / handzlikchris/FastScriptReload
Rewrites for same class token
- 主要言語
- C#
- スター
- 2.2k
- フォーク
- 167
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、FastScriptReload リポジトリでクラス名と型参照を対象とする既存のコード書き換えロジックを追跡します。この issue の例を使って、ジェネリックな MyClass 参照、typeof(MyClass)、および同じクラス内での構築やメンバーアクセスを確認します。示されているすべての形式が hot reload 中に正しく書き換えられれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp, unity
- 領域
- devtools, game-dev
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100