LuaLS / LuaLS/lua-language-server
How to implement automatic derivation of function parameter types
未關閉
還沒有人認領這個 Issue。
- 主要語言
- Lua
- 星號
- 4.4k
- 分支
- 442
- PR 合併指標
- 30 天內沒有已合併 PR
描述
local function t(a)
a? --unkown
end
t({A=1})
This feature is not available in the current language server.
I would like to add it as a feature and have no clue where to start changing it.
The primary target is a function that is called only once
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
該 issue 未指定檔案、測試或進入點;首先定位 language server 的函式呼叫和型別推論實作。為一個只呼叫一次的函式定義作用域,然後驗證參數型別是從 t({A=1}) 推導出來的,並在標記的使用位置公開。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- lua
- 領域
- devtools
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 20/100