Add a package dependency to a manifest’s source code.
struct AddPackageDependency
s18PackageModelSyntax03AddA10DependencyV
2NAQ6
import PackageModelSyntax
static func addPackageDependency(_ dependency: PackageDependency, to manifest: SourceFileSyntax) throws -> PackageEditResult
Produce the set of source edits needed to add the given package dependency to the given manifest file.