From 38eb48e09f192e322a47a67496c8a2ed1c66d00e Mon Sep 17 00:00:00 2001 From: Jeremy David Giesbrecht Date: Sat, 10 Dec 2016 17:57:52 -0600 Subject: [PATCH] Fixes #429 by ignoring generic parameters --- lib/jazzy/sourcekitten.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/jazzy/sourcekitten.rb b/lib/jazzy/sourcekitten.rb index bed92dfc9..049d31339 100644 --- a/lib/jazzy/sourcekitten.rb +++ b/lib/jazzy/sourcekitten.rb @@ -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)