VSCode-EmmyLua
VSCode-EmmyLua copied to clipboard
f = function () body end 形式的函数定义不能正确解析出函数名
插件版本: vscode emmylua 0.3.49 问题描述: f = function () body end 形式的函数定义不能正确解析出函数名 建议: 希望能提供属性关联属性访问器的功能 样例代码:
---@class BaseBuilding : class
---@field public icon string @图标
local BaseBuilding = Class.inheritsFrom("BaseBuilding")
local _M = BaseBuilding
-- ================ 属性======================
local _get = Class.init_get(_M, true)
_M.icon = function(self)
ffff
end
return _M
插图——使用Ctrl+O显示当前文件Symbols:
