Tags

Comment type tags

Help when inference is not enough.

Lua is dynamically typed. When LuaDebug cannot infer a variable type, tags help analysis.

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