RustPython / RustPython/Parser
Visitor trait `visit_arg` is never called
未關閉
還沒有人認領這個 Issue。
- 主要語言
- Rust
- 星號
- 117
- 分支
- 38
- 平均合併
- 4 天 7 小時
- 30 天內合併 PR
- 1
描述
When using the Visitor trait I realized that the default values of arguments are never visited. This is because the visit_arg function is never actuall called:
https://github.com/RustPython/Parser/blob/4588ea5c3e6327009640e7c9c89eb6fa9220358e/ast/src/gen/visitor.rs#L737
I also could not see an implementation for visiting the default value of an arg.
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 issue 中連結的 ast/src/gen/visitor.rs 第 737 行附近開始,檢查 Visitor 如何處理函式參數及其預設值。追蹤現有的 visit_arg 路徑,並確定應如何造訪預設運算式。完成的標準是:使用 Visitor trait 時會造訪參數預設值,並且有涵蓋所回報行為的測試。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- rust
- 領域
- compilers
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 50/100