in Sources/LLBBuildSystem/Functions/Evaluation/Configuration.swift [50:63]
init(fragmentKeys: [LLBConfigurationFragmentKey] = []) throws {
// Sort keys to create a deterministic key.
var validKeys = [LLBAnySerializable]()
try fragmentKeys.sorted {
type(of: $0).polymorphicIdentifier < type(of: $1).polymorphicIdentifier
}.forEach { fragmentKey in
if let lastCodable = validKeys.last,
lastCodable.typeIdentifier == type(of: fragmentKey).polymorphicIdentifier {
throw LLBConfigurationError.multipleFragmentKeys(String(describing: type(of: fragmentKey).polymorphicIdentifier))
}
validKeys.append(try LLBAnySerializable(from: fragmentKey))
}
self.fragmentKeys = validKeys
}