MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / kmpSourceSet

Function kmpSourceSet

src/resolution/import-resolver.ts:2752–2754  ·  view source on GitHub ↗

The source set a file is in: `androidMain` of `lib/src/androidMain/kotlin/a/Util.kt`; null outside any `src/ /`.

(filePath: string)

Source from the content-addressed store, hash-verified

2750
2751/** The source set a file is in: `androidMain` of `lib/src/androidMain/kotlin/a/Util.kt`; null outside any `src/<set>/`. */
2752function kmpSourceSet(filePath: string): string | null {
2753 return /(?:^|\/)src\/([^/]+)\//.exec(filePath)?.[1] ?? null;
2754}
2755
2756/** What a source set builds for: `android` of `androidMain` and `androidUnitTest`, `common` of `commonTest`. */
2757function kmpBuildTarget(set: string): string {

Callers 2

pickJvmDeclarationFunction · 0.85
targetOfFunction · 0.85

Calls 1

execMethod · 0.65

Tested by

no test coverage detected