Use kotlin specific methods for pattern creation

This commit is contained in:
Nikolay Krasko
2016-04-27 20:37:22 +03:00
parent 73024429dc
commit 3d8abd874b
2 changed files with 6 additions and 6 deletions
@@ -3,10 +3,10 @@
<injection language="RegExp" injector-id="kotlin">
<display-name>Kotlin</display-name>
<place><![CDATA[
psiParameter().ofMethod(0, psiMethod().withName("Regex").definedInClass("kotlin.text.Regex"))
kotlinParameter().ofFunction(0, kotlinFunction().withName("Regex").definedInClass("kotlin.text.Regex"))
]]></place>
<place><![CDATA[
receiver().ofMethod(psiMethod().withName("toRegex").withReceiver("kotlin.String").definedInPackage("kotlin.text"))
receiver().ofFunction(kotlinFunction().withName("toRegex").withReceiver("kotlin.String").definedInPackage("kotlin.text"))
]]></place>
</injection>
</component>