Static Methodswift-package-manager 6.0.3PackageModelSyntax
addProduct(_:to:)
Produce the set of source edits needed to add the given package dependency to the given manifest file.
static func addProduct(_ product: ProductDescription, to manifest: SourceFileSyntax) throws -> PackageEditResult