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