diff options
author | Szymon Świstun <sswistun@virtuslab.com> | 2020-03-16 11:28:07 +0100 |
---|---|---|
committer | Kamil Doległo <kamilok1965@users.noreply.github.com> | 2020-03-18 14:16:44 +0100 |
commit | 9ac39176bee7c104ff350f968ee399ac97809ad9 (patch) | |
tree | e1ac6f8966bfa8159bb31934e0c6b7f8040f8ca5 /core | |
parent | a1322a1ab11b4395199eb3ca08bfb2349627dcfd (diff) | |
download | dokka-9ac39176bee7c104ff350f968ee399ac97809ad9.tar.gz dokka-9ac39176bee7c104ff350f968ee399ac97809ad9.tar.bz2 dokka-9ac39176bee7c104ff350f968ee399ac97809ad9.zip |
Model change
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/model/Documentable.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/main/kotlin/model/Documentable.kt b/core/src/main/kotlin/model/Documentable.kt index 22930bf2..5c08e47e 100644 --- a/core/src/main/kotlin/model/Documentable.kt +++ b/core/src/main/kotlin/model/Documentable.kt @@ -329,7 +329,7 @@ sealed class Projection sealed class Bound : Projection() data class OtherParameter(val name: String) : Bound() object Star : Projection() -data class TypeConstructor(val dri: DRI, val projections: List<Projection>) : Bound() +data class TypeConstructor(val dri: DRI, val projections: List<Projection>, val modifier: FunctionModifiers = FunctionModifiers.NONE) : Bound() data class Nullable(val inner: Bound) : Bound() data class Variance(val kind: Kind, val inner: Bound) : Projection() { enum class Kind { In, Out } @@ -338,6 +338,10 @@ data class PrimitiveJavaType(val name: String): Bound() val VoidBound = PrimitiveJavaType("void") +enum class FunctionModifiers { + NONE, FUNCTION, EXTENSION +} + enum class ExtraModifiers { STATIC, INLINE, INFIX, SUSPEND, REIFIED, CROSSINLINE, NOINLINE, OVERRIDE, DATA, CONST, DYNAMIC, EXTERNAL, INNER, LATEINIT, OPERATOR, TAILREC, VARARG |