1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
local function func_one() end
-- ^ definition.function
func_one()
-- ^ reference.call
local func_two = function() end
-- ^ definition.function
func_two()
-- ^ reference.call
local tbl = {
func_one = function() end,
-- ^ definition.function
}
tbl.func_one()
-- ^ reference.call
function tbl.func_two() end
-- ^ definition.function
tbl.func_two()
-- ^ reference.call
function tbl:func_three() end
-- ^ definition.method
tbl:func_three()
-- ^ reference.call
tbl.func_four = function() end
-- ^ definition.function
tbl.func_four()
-- ^ reference.call
|