EmmyLua / IntelliJ-EmmyLua

Lua IDE/Debugger Plugin for IntelliJ IDEA
https://emmylua.github.io
Apache License 2.0
1.72k stars 287 forks source link

@class 支持匿名 table / table 元素 ? #519

Open aceyin opened 1 year ago

aceyin commented 1 year ago

@class 注解只能作用在 local / global 变量上, 有没有可能支持作用在匿名的 table 上呢? 比如:

local structs = {
   role = 
   --- @class struct.Role
   {
      name = { type=string, }
   }
}
CppCXY commented 1 year ago

没有 你完全可以 ---@alias a { name: { type: string }}

aceyin commented 1 year ago

我试试