Added 'closure' live template.
This commit is contained in:
@@ -102,4 +102,14 @@
|
|||||||
<option name="KOTLIN_NAMESPACE" value="true"/>
|
<option name="KOTLIN_NAMESPACE" value="true"/>
|
||||||
</context>
|
</context>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<template resource-bundle="org.jetbrains.jet.plugin.JetBundle" key="livetemplate.description.closure"
|
||||||
|
name="closure" toReformat="true" toShortenFQNames="true" value="{$PARAM$ -> $PARAM_COPY$}">
|
||||||
|
<variable alwaysStopAt="true" defaultValue=""x"" expression="" name="PARAM" />
|
||||||
|
<variable alwaysStopAt="true" defaultValue="" expression="PARAM" name="PARAM_COPY" />
|
||||||
|
<context>
|
||||||
|
<option name="KOTLIN_STATEMENT" value="true"/>
|
||||||
|
<option name="KOTLIN_EXPRESSION" value="true"/>
|
||||||
|
</context>
|
||||||
|
</template>
|
||||||
</templateSet>
|
</templateSet>
|
||||||
|
|||||||
@@ -35,5 +35,6 @@ livetemplate.description.fun1=Function with one parameter
|
|||||||
livetemplate.description.fun2=Function with two parameters
|
livetemplate.description.fun2=Function with two parameters
|
||||||
livetemplate.description.interface=Trait
|
livetemplate.description.interface=Trait
|
||||||
livetemplate.description.singleton=Singleton
|
livetemplate.description.singleton=Singleton
|
||||||
|
livetemplate.description.closure=Closure (function without name)
|
||||||
macro.variable.of.type=kotlinVariableOfType(Type)
|
macro.variable.of.type=kotlinVariableOfType(Type)
|
||||||
macro.fun.parameters=functionParameters()
|
macro.fun.parameters=functionParameters()
|
||||||
Reference in New Issue
Block a user