Rework deparenthesize-like methods
- Extract private `deparenthesizeOnce` and repeat it until get the same expression - Drop redundant parameter `deparenthesizeRecursively` - Drop some usages of `safeDeparenthesize` in `deparenthesize` because even if `deparenthesize` returns null (i.e. something was not parsed) there is no sense in working with such expressions Note, that `deparenthesize` now unwraps nested labels' declaration (see changes in testData), but it seems to be reasonable
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
// ERROR: The label '@OuterLoop1' does not denote a loop
|
||||
public object TestClass {
|
||||
public fun main(args: Array<String>) {
|
||||
var i = 1
|
||||
|
||||
Reference in New Issue
Block a user