diff --git a/Sources/PeripheryKit/Indexer/Declaration.swift b/Sources/PeripheryKit/Indexer/Declaration.swift index b015cfbcb..60ed7d71d 100644 --- a/Sources/PeripheryKit/Indexer/Declaration.swift +++ b/Sources/PeripheryKit/Indexer/Declaration.swift @@ -213,7 +213,10 @@ final class Declaration { } var descendentDeclarations: Set { - Set(declarations.flatMap { $0.descendentDeclarations }).union(declarations).union(unusedParameters) + declarations + .flatMapSet { $0.descendentDeclarations } + .union(declarations) + .union(unusedParameters) } var immediateInheritedTypeReferences: Set {