Method: JsDuck::Tag::Cfg#process_doc

Defined in:
lib/jsduck/tag/cfg.rb

#process_doc(h, tags, pos) ⇒ Object



45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/jsduck/tag/cfg.rb', line 45

def process_doc(h, tags, pos)
  p = tags[0]
  h[:type] = p[:type]
  h[:default] = p[:default]
  h[:required] = true if p[:optional] == false

  # Documentation after the first @cfg is part of the top-level docs.
  h[:doc] += p[:doc]

  nested = JsDuck::Doc::Subproperties.nest(tags, pos)[0]
  h[:properties] = nested[:properties]
  h[:name] = nested[:name]
end