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

Function kmpBuildTarget

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

What a source set builds for: `android` of `androidMain` and `androidUnitTest`, `common` of `commonTest`.

(set: string)

Source from the content-addressed store, hash-verified

2844
2845/** What a source set builds for: `android` of `androidMain` and `androidUnitTest`, `common` of `commonTest`. */
2846function kmpBuildTarget(set: string): string {
2847 return set.replace(/(?:Main|(?:Unit|Instrumented|Device|Host)?Test)$/, '');
2848}
2849
2850/** Kotlin Multiplatform targets that build for the JVM. */
2851const KMP_JVM_TARGET = /^(?:android|jvm|desktop)/;

Callers 2

pickJvmDeclarationFunction · 0.85
targetOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected