2023-01-26 18:53:05 +00:00
|
|
|
---@class Emmy
|
|
|
|
local var = {} -- a short comment
|
|
|
|
local a, b, c = true, false, nil
|
|
|
|
--region my class members region
|
|
|
|
|
|
|
|
---@alias MyType Emmy
|
|
|
|
|
|
|
|
--- doc comment
|
|
|
|
---@param par1 Par1Type @comments
|
|
|
|
function var:fun(par1, par2)
|
|
|
|
print('hello')
|
|
|
|
return self.len + 2
|
|
|
|
end
|
2021-12-08 15:45:11 +00:00
|
|
|
|
2023-01-26 18:53:05 +00:00
|
|
|
---@overload fun(name:string):Emmy
|
|
|
|
function var.staticFun()
|
|
|
|
end
|
|
|
|
--endregion end my class members region
|
2021-12-08 15:45:11 +00:00
|
|
|
|
2023-01-26 18:53:05 +00:00
|
|
|
---@return Emmy
|
|
|
|
function findEmmy()
|
|
|
|
return "string" .. var
|
2021-12-08 15:45:11 +00:00
|
|
|
end
|
|
|
|
|
2023-01-26 18:53:05 +00:00
|
|
|
globalVar = {
|
|
|
|
property = value
|
|
|
|
}
|