Skip to content

Commit b1502c7

Browse files
committed
Move autolinkingDepToSpmTarget docblock above its function
1 parent 0c1aff7 commit b1502c7

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎packages/react-native/scripts/spm/generate-spm-autolinking.js‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -822,15 +822,6 @@ function expandSpmSourceGlobs(
822822
return micromatch(walkSourceFiles(sourcePath), patterns).sort();
823823
}
824824

825-
/**
826-
* Converts an autolinking.json dependency to an SPM target spec.
827-
* Returns null if the dependency doesn't have iOS support.
828-
*
829-
* `swiftNameByNpm` maps each autolinked dep's npm name to its resolved Swift
830-
* name (populated by expandSpmDependencies from the dep's podspec and
831-
* `spm.name`). Every name this function emits comes from there — see
832-
* requireSwiftName.
833-
*/
834825
/**
835826
* The Swift name expandSpmDependencies resolved for `npmName`, or a hard error:
836827
* re-deriving one here would emit a reference nothing in the graph matches.
@@ -847,6 +838,15 @@ function requireSwiftName(
847838
return resolved;
848839
}
849840

841+
/**
842+
* Converts an autolinking.json dependency to an SPM target spec.
843+
* Returns null if the dependency doesn't have iOS support.
844+
*
845+
* `swiftNameByNpm` maps each autolinked dep's npm name to its resolved Swift
846+
* name (populated by expandSpmDependencies from the dep's podspec and
847+
* `spm.name`). Every name this function emits comes from there — see
848+
* requireSwiftName.
849+
*/
850850
function autolinkingDepToSpmTarget(
851851
depName /*: string */,
852852
dep /*: AutolinkedDep */,

0 commit comments

Comments
 (0)