compiler-plugin / arrow.meta.quotes.element / ParameterList

ParameterList

class ParameterList : Scope<KtParameterList>

””” $(params) “”“.parameterList

A template destructuring Scope for a KtParameterList.

``kotlin:ank:silent import arrow.meta.Meta import arrow.meta.CliPlugin import arrow.meta.invoke import arrow.meta.quotes.Transform import arrow.meta.quotes.parameterList

val Meta.reformatModifier: CliPlugin get() = “ReformatParameter” { meta( parameterList({ true }) { l -> Transform.replace( replacing = l, newDeclaration = “”” $(params) “”“.parameterList ) } ) }

Constructors

<init> ””” $(params) “”“.parameterListParameterList(value: KtParameterList?, (params): ScopedList<KtParameter> = ScopedList(value?.parameters.orEmpty()))

Properties

(params) val (params): ScopedList<KtParameter>
value val value: KtParameterList?

Extension Functions

map fun <K : KtElement> Scope<K>.map(f: (K) -> K): Scope<K>
orEmpty fun <K : KtElement> Scope<K>?.orEmpty(): Scope<K>

Do you like Arrow?

Arrow Org
<