Smaller availability range for add argument name intention

This commit is contained in:
Valentin Kipyatkov
2015-06-24 11:22:45 +02:00
parent 9d83510af5
commit 98c0c636b3
14 changed files with 71 additions and 19 deletions
@@ -216,6 +216,8 @@ public fun PsiElement.getStartOffsetIn(ancestor: PsiElement): Int {
return offset
}
public fun TextRange.containsInside(offset: Int): Boolean = getStartOffset() < offset && offset < getEndOffset()
public val PsiChildRange.textRange: TextRange?
get() {
if (isEmpty) return null