Cleanup: smart casts of safe call receiver applied (do NOT cherry-pick to 1.0.X)

This commit is contained in:
Mikhail Glukhikh
2016-07-22 16:37:34 +03:00
parent 26c8bc87fd
commit 692623cb55
9 changed files with 10 additions and 10 deletions
@@ -27,6 +27,6 @@ fun UElement?.getLocation(): Location? {
val psiFile = psiElement?.containingFile ?: return null
val vfile = psiFile.virtualFile
val file = VfsUtilCore.virtualToIoFile(vfile)
val range = psiElement?.textRange ?: return null
val range = psiElement.textRange ?: return null
return Location.create(file, psiFile.text, range.startOffset, range.endOffset)
}