Skip to content

Commit

Permalink
Merge pull request #563 from realm/jp-fix-mark-extension
Browse files Browse the repository at this point in the history
don't unconditionally document Swift extensions with MARKs
  • Loading branch information
jpsim committed May 19, 2016
2 parents 134ae79 + 983c680 commit cc8ab2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
* Fix crash when using unexposed declarations in Objective-C.
[JP Simard](https://github.com/jpsim)
[#543](https://github.com/realm/jazzy/issues/543)
* No longer document Swift extensions on types with an ACL lower than `min-acl`
when they contain `MARK`s.
[JP Simard](https://github.com/jpsim)
[#544](https://github.com/realm/jazzy/issues/544)

## 0.6.0

Expand Down
3 changes: 2 additions & 1 deletion lib/jazzy/sourcekitten.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ def self.should_document?(doc)
return true if type.swift_enum_element?
if type.swift_extension?
return Array(doc['key.substructure']).any? do |subdoc|
should_document?(subdoc)
subtype = SourceDeclaration::Type.new(subdoc['key.kind'])
!subtype.mark? && should_document?(subdoc)
end
end

Expand Down

0 comments on commit cc8ab2c

Please sign in to comment.