Comparison

util/multitable.lua @ 8555:4f0f5b49bb03

vairious: Add annotation when an empty environment is set [luacheck]
author Kim Alvefur <zash@zash.se>
date Wed, 28 Feb 2018 20:06:26 +0100
parent 8389:5d866eb8f18f
child 9692:affcbccc1dff
comparison
equal deleted inserted replaced
8554:12a68e0d0ecf 8555:4f0f5b49bb03
10 local t_insert = table.insert; 10 local t_insert = table.insert;
11 local pairs, next, type = pairs, next, type; 11 local pairs, next, type = pairs, next, type;
12 local unpack = table.unpack or unpack; --luacheck: ignore 113 143 12 local unpack = table.unpack or unpack; --luacheck: ignore 113 143
13 13
14 local _ENV = nil; 14 local _ENV = nil;
15 -- luacheck: std none
15 16
16 local function get(self, ...) 17 local function get(self, ...)
17 local t = self.data; 18 local t = self.data;
18 for n = 1,select('#', ...) do 19 for n = 1,select('#', ...) do
19 t = t[select(n, ...)]; 20 t = t[select(n, ...)];