VSCode-EmmyLua icon indicating copy to clipboard operation
VSCode-EmmyLua copied to clipboard

f = function () body end 形式的函数定义不能正确解析出函数名

Open ccyr119 opened this issue 4 years ago • 0 comments

插件版本: 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: V2`YV05N}@)G0{349Z QG7X

ccyr119 avatar Feb 24 '21 03:02 ccyr119