Fix Android resource reference folding

Properly fold qualified expressions and handle nested references

 #KT-18429 Fixed
This commit is contained in:
Vyacheslav Gerasimov
2017-07-03 16:15:06 +03:00
parent 7c6ffff198
commit ee53e81e8e
5 changed files with 42 additions and 21 deletions
+1 -1
View File
@@ -4,6 +4,6 @@ import android.content.Context
fun Context.testPlurals(quantity: Int) <fold text='{...}' expand='true'>{
val plural1 = <fold text='"Reference One"' expand='false'>resources.getQuantityString(R.plurals.first, quantity)</fold>
val plural2 = <fold text='Quantity One' expand='false'>this.getResources().getQuantityString(R.plurals.second, quantity)</fold>
val plural2 = <fold text='"Quantity One"' expand='false'>this.getResources().getQuantityString(R.plurals.second, quantity)</fold>
}</fold>