Skip to content

Commit f8fc4c1

Browse files
committed
docs(model-api-gen): add comments to extracted supertypes
1 parent 182100d commit f8fc4c1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

model-api-gen/src/main/kotlin/org/modelix/metamodel/generator/internal/FileGenerator.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ package org.modelix.metamodel.generator.internal
1919
import com.squareup.kotlinpoet.FileSpec
2020
import java.nio.file.Path
2121

22+
/**
23+
* Deduplicates common logic for file generation.
24+
*/
2225
internal interface FileGenerator {
2326
val outputDir: Path
2427

model-api-gen/src/main/kotlin/org/modelix/metamodel/generator/internal/NameConfigBasedGenerator.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ import org.modelix.model.data.EnumPropertyType
3737
import org.modelix.model.data.Primitive
3838
import org.modelix.model.data.PrimitivePropertyType
3939

40+
/**
41+
* Base class for generators using [NameConfig].
42+
* Acts as single source of truth for functions needed in multiple internal generators.
43+
*/
4044
internal abstract class NameConfigBasedGenerator(open val nameConfig: NameConfig) {
4145
protected fun ProcessedConcept.conceptWrapperInterfaceType() =
4246
conceptWrapperInterfaceClass().parameterizedBy(nodeWrapperInterfaceType())

0 commit comments

Comments
 (0)