Codebase list lua-ldoc / a3cb09c
Issue #61 sorted - not using Tags.add consistently steve donovan 10 years ago
3 changed file(s) with 7 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
743743
744744 Module.warning, Module.error = Item.warning, Item.error
745745
746
747746 -------- Resolving References -----------------
748747
749748 function Module:hunt_for_reference (packmod, modules)
6969 return preamble,tag_items
7070 end
7171
72 -- Tags are stored as an ordered map
7273 local Tags = {}
7374 Tags.__index = Tags
7475
7879 end
7980
8081 function Tags:add (tag,value)
81 self[tag] = value
82 --print('adding',tag,value)
82 rawset(self,tag,value)
8383 self._order:append(tag)
8484 end
8585
334334 end
335335 end
336336 if is_local or tags['local'] then
337 tags['local'] = true
337 tags:add('local',true)
338338 end
339339 if tags.name then
340340 current_item = F:new_item(tags,line)
11 -- Alternative to no-magic style.
22 -- Description here
33 ----
4
5 --- documented, but private
6 local function question ()
7 end
48
59 --- answer to everything.
610 -- @return magic number