end
table.insert(tbl, 1, subn)
tbl[#tbl + 1] = self:name_get():lower()
- if root then
- tbl[#tbl + 1] = true
+ if root ~= nil then
+ tbl[#tbl + 1] = not not root
end
return tbl
end
local tbl = cl:nspaces_get()
tbl[#tbl + 1] = self:type_str_get()
tbl[#tbl + 1] = self:name_get():lower()
- if root then
- tbl[#tbl + 1] = true
+ if root ~= nil then
+ tbl[#tbl + 1] = not not root
end
return tbl
end
local tbl = cl:nspaces_get()
tbl[#tbl + 1] = "event"
tbl[#tbl + 1] = self:name_get():lower():gsub(",", "_")
- if root then
- tbl[#tbl + 1] = true
+ if root ~= nil then
+ tbl[#tbl + 1] = not not root
end
return tbl
end
for tok in str:gmatch("[^%.]+") do
t[#t + 1] = tok:lower()
end
- if root then t[#t + 1] = true end
+ if root ~= nil then t[#t + 1] = not not root end
return t
end
local ret = M.ref_get(bstr)
ret[#ret + 1] = fn:type_str_get()
ret[#ret + 1] = fn:name_get():lower()
- if root then ret[#ret + 1] = true end
+ if root ~= nil then ret[#ret + 1] = not not root end
return ret
end