Skip to content

Commit

Permalink
[uast-patterns] UastPatterns.stringLiteralExpression deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
xiexed committed Dec 13, 2018
1 parent 633a73a commit f02b250
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -16,6 +16,8 @@ import org.jetbrains.uast.*

fun literalExpression(): ULiteralExpressionPattern = ULiteralExpressionPattern()

@Deprecated("Interpolated strings (in Kotlin) are not single string literals, use `injectionHostUExpression()` to be language-abstract",
ReplaceWith("injectionHostUExpression()", "com.intellij.patterns.uast.injectionHostUExpression"))
fun stringLiteralExpression(): ULiteralExpressionPattern = literalExpression().filter(ULiteralExpression::isStringLiteral)

@JvmOverloads
Expand Down

0 comments on commit f02b250

Please sign in to comment.