Skip to content

Commit

Permalink
Fixes #429 by ignoring generic parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
SDGGiesbrecht authored and jpsim committed Dec 12, 2016
1 parent 01724fe commit 38eb48e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/jazzy/sourcekitten.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ def self.process_undocumented_token(doc, declaration)
filepath = doc['key.filepath']
objc = Config.instance.objc_mode
if filepath && (filepath.start_with?(source_directory) || objc)
@undocumented_decls << declaration
if doc['key.kind'] != 'source.lang.swift.decl.generic_type_param'
@undocumented_decls << declaration
end
end
return nil if !documented_child?(doc) && @skip_undocumented
make_default_doc_info(declaration)
Expand Down

0 comments on commit 38eb48e

Please sign in to comment.