Tags

Comment type tags

Add type info when inference is not enough.

Lua is dynamically typed. When LuaDebug cannot infer a variable’s type, use tags to help.

Tag format

Tag kinds

Examples

--@RefType [Model2#MM_]
local data = cl1

--@SuperType [Base#BaseView]
local M = class("LoginView")

---@return [Model.Player#Player]
function createPlayer()
end

--@name : [Model.Player#Player]
function foo(name)
end

Related settings