summaryrefslogtreecommitdiff
path: root/server/src/vm/source.lua
blob: b4539ae557759fa25953f41b4600c70b6e306445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local mt = {}
mt.__index = mt

function mt:bindLocal(loc)
    if loc then
        self._bindLocal = loc
    else
        return self._bindLocal
    end
end

function mt:setUri(uri)
    self._uri = uri
end

function mt:getUri()
    return self._uri
end

return function (source)
    return setmetatable(source, mt)
end