VE Lua Documentation

Press F to search!

flattenTable

Definition


-- @/lua/common/utils.lua:1379

-- replace multiple references to a table with a special token
function flattenTable(tbl)
  if type(tbl) ~= 'table' then return nil end
  _flattenTable_rec(tbl, {}, '')
  return tbl
end

Callers

@/lua/common/devUtils.lua
  --_createGraphvizFile(filename..'.dot', snapshot)
  flattenTable(snapshot)
  jsonWriteFile(filename, snapshot, true)