Skip to content

Commit

Permalink
Include name in deduplication keys
Browse files Browse the repository at this point in the history
Workaround for realm#459. Resolves realm#460.
  • Loading branch information
pcantrell committed Jan 20, 2016
1 parent 420fde2 commit be741e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jazzy/sourcekitten.rb
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ def self.deduplicate_declarations(declarations)
# Two declarations get merged if they have the same deduplication key.
def self.deduplication_key(decl)
if decl.type.swift_extensible? || decl.type.swift_extension?
[decl.usr]
[decl.usr, decl.name]
else
[decl.usr, decl.type.kind]
[decl.usr, decl.name, decl.type.kind]
end
end

Expand Down

0 comments on commit be741e2

Please sign in to comment.