"kotlinVariable()" macro to filter by expected type, dropped IterableVariableMacro

This commit is contained in:
Valentin Kipyatkov
2015-11-19 10:28:29 +01:00
parent 7dc6aff2e6
commit d4ba15fd90
5 changed files with 32 additions and 21 deletions
+1 -1
View File
@@ -42,7 +42,7 @@
<template resource-bundle="org.jetbrains.kotlin.idea.KotlinBundle" key="livetemplate.description.iter"
name="iter" toReformat="true" toShortenFQNames="true"
value="for ($VAR$ in $ITERABLE$) {&#10;$END$&#10;}">
<variable alwaysStopAt="true" defaultValue="&quot;iterable&quot;" expression="kotlinIterableVariable()" name="ITERABLE" />
<variable alwaysStopAt="true" defaultValue="&quot;iterable&quot;" expression="kotlinVariable()" name="ITERABLE" />
<variable alwaysStopAt="true" defaultValue="&quot;i&quot;" expression="kotlinSuggestVariableName()" name="VAR" />
<context>
<option name="KOTLIN_STATEMENT" value="true" />