in Generator/Sources/NeedleFramework/Parsing/Processors/AncestorCycleValidator.swift [34:43]
func process() throws {
for component in components {
if let cyclePath = findAncestorCycle(component, visitedComponents: []) {
let pathNames = cyclePath.map { (element: ASTComponent) -> String in
element.name
} + [component.name]
throw GenericError.withMessage("Dependency cycle detected along the path of \(pathNames.joined(separator: "->"))")
}
}
}