Issue #61 sorted - not using Tags.add consistently
steve donovan
10 years ago
743 | 743 |
|
744 | 744 |
Module.warning, Module.error = Item.warning, Item.error
|
745 | 745 |
|
746 | |
|
747 | 746 |
-------- Resolving References -----------------
|
748 | 747 |
|
749 | 748 |
function Module:hunt_for_reference (packmod, modules)
|
69 | 69 |
return preamble,tag_items
|
70 | 70 |
end
|
71 | 71 |
|
|
72 |
-- Tags are stored as an ordered map
|
72 | 73 |
local Tags = {}
|
73 | 74 |
Tags.__index = Tags
|
74 | 75 |
|
|
78 | 79 |
end
|
79 | 80 |
|
80 | 81 |
function Tags:add (tag,value)
|
81 | |
self[tag] = value
|
82 | |
--print('adding',tag,value)
|
|
82 |
rawset(self,tag,value)
|
83 | 83 |
self._order:append(tag)
|
84 | 84 |
end
|
85 | 85 |
|
|
334 | 334 |
end
|
335 | 335 |
end
|
336 | 336 |
if is_local or tags['local'] then
|
337 | |
tags['local'] = true
|
|
337 |
tags:add('local',true)
|
338 | 338 |
end
|
339 | 339 |
if tags.name then
|
340 | 340 |
current_item = F:new_item(tags,line)
|
1 | 1 |
-- Alternative to no-magic style.
|
2 | 2 |
-- Description here
|
3 | 3 |
----
|
|
4 |
|
|
5 |
--- documented, but private
|
|
6 |
local function question ()
|
|
7 |
end
|
4 | 8 |
|
5 | 9 |
--- answer to everything.
|
6 | 10 |
-- @return magic number
|