@@ -198,7 +198,7 @@ private func createResolvedPackages(
198198 let package = packageBuilder. package
199199
200200 // The diagnostics location for this package.
201- let diagnosicLocation = { PackageLocation . Local ( name: package . name, packagePath: package . path) }
201+ let diagnosticLocation = { PackageLocation . Local ( name: package . name, packagePath: package . path) }
202202
203203 // Get all the system module dependencies in this package.
204204 let systemModulesDeps = packageBuilder. dependencies
@@ -216,7 +216,7 @@ private func createResolvedPackages(
216216 // If a target with similar name was encountered before, we emit a diagnostic.
217217 let targetName = targetBuilder. target. name
218218 if allTargetNames. contains ( targetName) {
219- diagnostics. emit ( ModuleError . duplicateModule ( targetName) , location: diagnosicLocation ( ) )
219+ diagnostics. emit ( ModuleError . duplicateModule ( targetName) , location: diagnosticLocation ( ) )
220220 }
221221 allTargetNames. insert ( targetName)
222222
@@ -233,7 +233,7 @@ private func createResolvedPackages(
233233 // Find the product in this package's dependency products.
234234 guard let product = productDependencyMap [ productRef. name] else {
235235 let error = PackageGraphError . productDependencyNotFound ( name: productRef. name, package : productRef. package )
236- diagnostics. emit ( error, location: diagnosicLocation ( ) )
236+ diagnostics. emit ( error, location: diagnosticLocation ( ) )
237237 continue
238238 }
239239
@@ -244,7 +244,7 @@ private func createResolvedPackages(
244244 guard let dependencyPackage = packageMap [ packageName. lowercased ( ) ] , dependencyPackage. products. contains ( product) else {
245245 let error = PackageGraphError . productDependencyIncorrectPackage (
246246 name: productRef. name, package : packageName)
247- diagnostics. emit ( error, location: diagnosicLocation ( ) )
247+ diagnostics. emit ( error, location: diagnosticLocation ( ) )
248248 continue
249249 }
250250 }
0 commit comments