From c203be9fb65ee221875b4e1c865bcd289a85e69c Mon Sep 17 00:00:00 2001 From: Błażej Kardyś Date: Fri, 13 Nov 2020 22:05:15 +0100 Subject: Adding multimodule all modules page creation for gfm --- core/src/main/kotlin/plugability/extensions.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'core/src/main/kotlin/plugability/extensions.kt') diff --git a/core/src/main/kotlin/plugability/extensions.kt b/core/src/main/kotlin/plugability/extensions.kt index 46739951..8bac4c3e 100644 --- a/core/src/main/kotlin/plugability/extensions.kt +++ b/core/src/main/kotlin/plugability/extensions.kt @@ -16,7 +16,7 @@ sealed class OrderingKind { sealed class OverrideKind { object None : OverrideKind() - class Present(val overriden: Extension<*, *, *>) : OverrideKind() + class Present(val overriden: List>) : OverrideKind() } class Extension internal constructor( @@ -68,8 +68,12 @@ class ExtendingDSL(private val pluginClass: String, private val extensionName: S ) = Extension(extensionPoint, pluginClass, extensionName, action, ordering, override, conditions + condition) infix fun Extension.override( - overriden: Extension + overriden: List> ) = Extension(extensionPoint, pluginClass, extensionName, action, ordering, OverrideKind.Present(overriden), conditions) + + infix fun Extension.override( + overriden: Extension + ) = this.override(listOf(overriden)) } @ExtensionsDsl -- cgit