[RESTORED] Spring Support: Implement Spring-specific references

This commit is contained in:
Alexey Sedunov
2016-02-25 14:02:43 +03:00
parent 196b484cd7
commit f2e2220560
45 changed files with 906 additions and 80 deletions
@@ -367,6 +367,9 @@ fun KtStringTemplateExpression.getContentRange(): TextRange {
return TextRange(start, if (lastChild.elementType == KtTokens.CLOSING_QUOTE) length - lastChild.textLength else length)
}
val KtStringTemplateExpression.plainContent: String
get() = getContentRange().substring(text)
fun KtStringTemplateExpression.isSingleQuoted(): Boolean
= node.firstChildNode.textLength == 1