i18n fix: traverse to the expression top level (IDEA-248707)

if one need to extract subpart of concatenation, it's required to extract a variable; similar to parts of polyadic expression

GitOrigin-RevId: 46cd1a75303b72ea64e9694617fb43f4d3da5982
This commit is contained in:
Anna Kozlova
2020-08-21 08:03:52 +00:00
committed by intellij-monorepo-bot
parent a8cd52076a
commit af1c8c2574
4 changed files with 25 additions and 7 deletions
@@ -0,0 +1,5 @@
class a {
void foo(String s, int i, boolean b) {
String desc = i18nizedExpr;
}
}
@@ -0,0 +1,5 @@
class a {
void foo(String s, int i, boolean b) {
String desc = "Our " + s + " has " + (b ? i + " doo<caret>rs" : "many windows");
}
}