mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
refactor(lua): improve type annotations
This commit is contained in:

committed by
Lewis Russell

parent
d8e384b7bf
commit
5e49ef0af3
@@ -46,6 +46,7 @@ local luacats_grammar = require('scripts.luacats_grammar')
|
||||
--- @field type string
|
||||
--- @field desc string
|
||||
--- @field access? 'private'|'package'|'protected'
|
||||
--- @field nodoc? true
|
||||
|
||||
--- @class nvim.luacats.parser.class
|
||||
--- @field kind 'class'
|
||||
@@ -270,6 +271,7 @@ local function fun2field(fun)
|
||||
type = table.concat(parts, ''),
|
||||
access = fun.access,
|
||||
desc = fun.desc,
|
||||
nodoc = fun.nodoc,
|
||||
}
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user