diff options
| author | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-05-20 14:52:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-20 14:52:05 +0200 |
| commit | ec9f4b3386ef979196e00334172051ece9a95acf (patch) | |
| tree | f29b4101c306d824f39787d817bd038fbf740779 /core/src/main/kotlin/model | |
| parent | ff450fedb3c8bdc318b55954bc37d93b30b9277c (diff) | |
| parent | 6b85bb2ec2764a2c8b14717ef8e013a0f3c6e99f (diff) | |
| download | dokka-ec9f4b3386ef979196e00334172051ece9a95acf.tar.gz dokka-ec9f4b3386ef979196e00334172051ece9a95acf.tar.bz2 dokka-ec9f4b3386ef979196e00334172051ece9a95acf.zip | |
Merge pull request #867 from Kotlin/f/merging-source-set-hints
Merging of platform dependent hints in sourceset tree
Diffstat (limited to 'core/src/main/kotlin/model')
| -rw-r--r-- | core/src/main/kotlin/model/SourceSetData.kt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/src/main/kotlin/model/SourceSetData.kt b/core/src/main/kotlin/model/SourceSetData.kt index 8f67f272..964d5ca9 100644 --- a/core/src/main/kotlin/model/SourceSetData.kt +++ b/core/src/main/kotlin/model/SourceSetData.kt @@ -8,15 +8,19 @@ data class SourceSetData( val moduleName: String, val sourceSetName: String, val platform: Platform, - val sourceRoots: List<DokkaConfiguration.SourceRoot> = emptyList() + val sourceRoots: List<DokkaConfiguration.SourceRoot> = emptyList(), + val dependentSourceSets: List<String> = emptyList() ) class SourceSetCache { private val sourceSets = HashMap<String, SourceSetData>() + val allSourceSets: List<SourceSetData> + get() = sourceSets.values.toList() + fun getSourceSet(pass: DokkaConfiguration.PassConfiguration) = sourceSets.getOrPut("${pass.moduleName}/${pass.sourceSetName}", - { SourceSetData(pass.moduleName, pass.sourceSetName, pass.analysisPlatform, pass.sourceRoots) } + { SourceSetData(pass.moduleName, pass.sourceSetName, pass.analysisPlatform, pass.sourceRoots, pass.dependentSourceSets) } ) } |
