Method: JsDuck::Merger#detect_list

Defined in:
lib/jsduck/merger.rb

#detect_list(type, doc_map, code) ⇒ Object

for detecting mixins and alternateClassNames



326
327
328
329
330
331
332
333
334
# File 'lib/jsduck/merger.rb', line 326

def detect_list(type, doc_map, code)
  if doc_map[type]
    doc_map[type].map {|d| d[type] }.flatten
  elsif code[:type] == :ext_define && code[type]
    code[type]
  else
    []
  end
end