Formatter: don't format elvis operator in string template
#KT-34049 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
bcee8ce04b
commit
d75b938089
@@ -612,7 +612,7 @@ abstract class KotlinCommonBlock(
|
||||
}
|
||||
}
|
||||
}
|
||||
if (nodePsi.operationToken == ELVIS) {
|
||||
if (nodePsi.operationToken == ELVIS && nodePsi.getStrictParentOfType<KtStringTemplateExpression>() == null) {
|
||||
return { childElement ->
|
||||
if (childElement.elementType == OPERATION_REFERENCE) {
|
||||
Wrap.createWrap(settings.kotlinCustomSettings.WRAP_ELVIS_EXPRESSIONS, true)
|
||||
|
||||
Reference in New Issue
Block a user