Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ struct DocCSymbolInformation {
}

func matches(_ link: DocCSymbolLink) -> Bool {
guard link.components.count == components.count else {
guard link.components.count <= components.count else {
return false
}
return zip(link.components, components).allSatisfy { linkComponent, symbolComponent in
let matchingSuffix = components.suffix(link.components.count)
return zip(link.components, matchingSuffix).allSatisfy { linkComponent, symbolComponent in
linkComponent.name == symbolComponent.name && symbolComponent.information.matches(linkComponent.disambiguation)
}
}
Expand Down
Loading