diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/callExpression.kt b/idea/testData/intentions/branched/doubleBangToIfThen/callExpression.kt index e22cfe09249..a6190d640ae 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/callExpression.kt +++ b/idea/testData/intentions/branched/doubleBangToIfThen/callExpression.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo(): String? { return "foo" } diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/callExpression.kt.after b/idea/testData/intentions/branched/doubleBangToIfThen/callExpression.kt.after index dc289096d3d..8549c2dfe07 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/callExpression.kt.after +++ b/idea/testData/intentions/branched/doubleBangToIfThen/callExpression.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo(): String? { return "foo" } diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/callExpressionParens.kt b/idea/testData/intentions/branched/doubleBangToIfThen/callExpressionParens.kt index 61f3080210f..adb6d8f61bc 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/callExpressionParens.kt +++ b/idea/testData/intentions/branched/doubleBangToIfThen/callExpressionParens.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo(): String? { return "foo" } diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/callExpressionParens.kt.after b/idea/testData/intentions/branched/doubleBangToIfThen/callExpressionParens.kt.after index dc289096d3d..8549c2dfe07 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/callExpressionParens.kt.after +++ b/idea/testData/intentions/branched/doubleBangToIfThen/callExpressionParens.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo(): String? { return "foo" } diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/exceptionTextEscapesQuotes.kt b/idea/testData/intentions/branched/doubleBangToIfThen/exceptionTextEscapesQuotes.kt index f0b647d89c4..35a5248c282 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/exceptionTextEscapesQuotes.kt +++ b/idea/testData/intentions/branched/doubleBangToIfThen/exceptionTextEscapesQuotes.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun main(args: Array) { doSomething("one")!! } diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/exceptionTextEscapesQuotes.kt.after b/idea/testData/intentions/branched/doubleBangToIfThen/exceptionTextEscapesQuotes.kt.after index 111f93aa05c..9dcef514470 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/exceptionTextEscapesQuotes.kt.after +++ b/idea/testData/intentions/branched/doubleBangToIfThen/exceptionTextEscapesQuotes.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun main(args: Array) { if (doSomething("one") == null) throw NullPointerException("Expression 'doSomething(\"one\")' must not be null") } diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/exceptionTextHandlesMultiline.kt b/idea/testData/intentions/branched/doubleBangToIfThen/exceptionTextHandlesMultiline.kt index 65623acb3f4..e170eb57ea3 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/exceptionTextHandlesMultiline.kt +++ b/idea/testData/intentions/branched/doubleBangToIfThen/exceptionTextHandlesMultiline.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun main(args: Array) { val t = doSomething("one" + 1, "two", diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/exceptionTextHandlesMultiline.kt.after b/idea/testData/intentions/branched/doubleBangToIfThen/exceptionTextHandlesMultiline.kt.after index 1a89b8b8a6a..62e01fdfc46 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/exceptionTextHandlesMultiline.kt.after +++ b/idea/testData/intentions/branched/doubleBangToIfThen/exceptionTextHandlesMultiline.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun main(args: Array) { val doSomething = doSomething("one" + 1, "two", diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/localVal.kt b/idea/testData/intentions/branched/doubleBangToIfThen/localVal.kt index a8f413d708a..f4b9880be24 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/localVal.kt +++ b/idea/testData/intentions/branched/doubleBangToIfThen/localVal.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun main(args: Array) { val a: String? = "A" a!! diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/localVal.kt.after b/idea/testData/intentions/branched/doubleBangToIfThen/localVal.kt.after index 1abe253ca22..b3bf746c78a 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/localVal.kt.after +++ b/idea/testData/intentions/branched/doubleBangToIfThen/localVal.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun main(args: Array) { val a: String? = "A" if (a == null) throw NullPointerException("Expression 'a' must not be null") diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/localVar.kt b/idea/testData/intentions/branched/doubleBangToIfThen/localVar.kt index c6c42fa7bb1..a88d418d3c3 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/localVar.kt +++ b/idea/testData/intentions/branched/doubleBangToIfThen/localVar.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun main(args: Array) { var a: String? = "A" doSomething(a!!) diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/localVar.kt.after b/idea/testData/intentions/branched/doubleBangToIfThen/localVar.kt.after index 8470bc3346e..64fee01cf86 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/localVar.kt.after +++ b/idea/testData/intentions/branched/doubleBangToIfThen/localVar.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun main(args: Array) { var a: String? = "A" val a1 = a diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/simpleNameExpressionInParens.kt b/idea/testData/intentions/branched/doubleBangToIfThen/simpleNameExpressionInParens.kt index a7640fb12fc..e36dd204457 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/simpleNameExpressionInParens.kt +++ b/idea/testData/intentions/branched/doubleBangToIfThen/simpleNameExpressionInParens.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun main(args: Array) { val foo: String? = "foo" val t = (foo)!! diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/simpleNameExpressionInParens.kt.after b/idea/testData/intentions/branched/doubleBangToIfThen/simpleNameExpressionInParens.kt.after index c097ce285c2..7070797d8ee 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/simpleNameExpressionInParens.kt.after +++ b/idea/testData/intentions/branched/doubleBangToIfThen/simpleNameExpressionInParens.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun main(args: Array) { val foo: String? = "foo" val t = if (foo != null) foo else throw NullPointerException("Expression 'foo' must not be null") diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVal.kt b/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVal.kt index 4a5237a9bd7..ce7e6b6a245 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVal.kt +++ b/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVal.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME val a: String? = "A" fun main(args: Array) { a!! diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVal.kt.after b/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVal.kt.after index 37132f5ce4b..aa351a9973d 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVal.kt.after +++ b/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVal.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME val a: String? = "A" fun main(args: Array) { if (a == null) throw NullPointerException("Expression 'a' must not be null") diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/topLevelValCustomGetter.kt b/idea/testData/intentions/branched/doubleBangToIfThen/topLevelValCustomGetter.kt index bcfad7caaff..a5dceb93173 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/topLevelValCustomGetter.kt +++ b/idea/testData/intentions/branched/doubleBangToIfThen/topLevelValCustomGetter.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME val a: String? get() = "" diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/topLevelValCustomGetter.kt.after b/idea/testData/intentions/branched/doubleBangToIfThen/topLevelValCustomGetter.kt.after index 4c34a07fa29..2685098fd8a 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/topLevelValCustomGetter.kt.after +++ b/idea/testData/intentions/branched/doubleBangToIfThen/topLevelValCustomGetter.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME val a: String? get() = "" diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVar.kt b/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVar.kt index 9dc7cea45a5..dc1ebec7758 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVar.kt +++ b/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVar.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME var a: String? = "A" fun main(args: Array) { val t = a!! diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVar.kt.after b/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVar.kt.after index 5e8b2ad491b..156600f7729 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVar.kt.after +++ b/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVar.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME var a: String? = "A" fun main(args: Array) { val a1 = a diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVarCustomGetter.kt b/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVarCustomGetter.kt index 154a2a9568f..50994a300e9 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVarCustomGetter.kt +++ b/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVarCustomGetter.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME var a: String? get() = "" set(v) {} diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVarCustomGetter.kt.after b/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVarCustomGetter.kt.after index e1bae914e56..0de304c9da1 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVarCustomGetter.kt.after +++ b/idea/testData/intentions/branched/doubleBangToIfThen/topLevelVarCustomGetter.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME var a: String? get() = "" set(v) {} diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/usedInAssignment.kt b/idea/testData/intentions/branched/doubleBangToIfThen/usedInAssignment.kt index 6210bd3ca4c..7f1d5851a7d 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/usedInAssignment.kt +++ b/idea/testData/intentions/branched/doubleBangToIfThen/usedInAssignment.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun main(args: Array) { val foo: String? = "foo" val x = foo!! diff --git a/idea/testData/intentions/branched/doubleBangToIfThen/usedInAssignment.kt.after b/idea/testData/intentions/branched/doubleBangToIfThen/usedInAssignment.kt.after index ff28bae848e..38869319d4e 100644 --- a/idea/testData/intentions/branched/doubleBangToIfThen/usedInAssignment.kt.after +++ b/idea/testData/intentions/branched/doubleBangToIfThen/usedInAssignment.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun main(args: Array) { val foo: String? = "foo" val x = if (foo != null) foo else throw NullPointerException("Expression 'foo' must not be null") diff --git a/idea/testData/intentions/convertToForEachFunctionCall/blockBodyExpression.kt b/idea/testData/intentions/convertToForEachFunctionCall/blockBodyExpression.kt index 283ec93a309..f8fc45fb018 100644 --- a/idea/testData/intentions/convertToForEachFunctionCall/blockBodyExpression.kt +++ b/idea/testData/intentions/convertToForEachFunctionCall/blockBodyExpression.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo() { // check that original formatting of "x+1" and "1 .. 4" is preserved for (x in 1 .. 4) { diff --git a/idea/testData/intentions/convertToForEachFunctionCall/blockBodyExpression.kt.after b/idea/testData/intentions/convertToForEachFunctionCall/blockBodyExpression.kt.after index d45aba4571c..6f7f078dfcf 100644 --- a/idea/testData/intentions/convertToForEachFunctionCall/blockBodyExpression.kt.after +++ b/idea/testData/intentions/convertToForEachFunctionCall/blockBodyExpression.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo() { // check that original formatting of "x+1" and "1 .. 4" is preserved (1 .. 4).forEach { x -> diff --git a/idea/testData/intentions/convertToForEachFunctionCall/commentsInBody.kt b/idea/testData/intentions/convertToForEachFunctionCall/commentsInBody.kt index 2d14c1dacb7..52749e1aa56 100644 --- a/idea/testData/intentions/convertToForEachFunctionCall/commentsInBody.kt +++ b/idea/testData/intentions/convertToForEachFunctionCall/commentsInBody.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo() { val list = 1..4 diff --git a/idea/testData/intentions/convertToForEachFunctionCall/commentsInBody.kt.after b/idea/testData/intentions/convertToForEachFunctionCall/commentsInBody.kt.after index 5eca38a41f8..d15cc76cd15 100644 --- a/idea/testData/intentions/convertToForEachFunctionCall/commentsInBody.kt.after +++ b/idea/testData/intentions/convertToForEachFunctionCall/commentsInBody.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo() { val list = 1..4 diff --git a/idea/testData/intentions/convertToForEachFunctionCall/commentsInBody2.kt b/idea/testData/intentions/convertToForEachFunctionCall/commentsInBody2.kt index 126e7cc82a3..d27430730c2 100644 --- a/idea/testData/intentions/convertToForEachFunctionCall/commentsInBody2.kt +++ b/idea/testData/intentions/convertToForEachFunctionCall/commentsInBody2.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo() { val list = 1..4 diff --git a/idea/testData/intentions/convertToForEachFunctionCall/commentsInBody2.kt.after b/idea/testData/intentions/convertToForEachFunctionCall/commentsInBody2.kt.after index 7c2819ed6ad..2c105b28721 100644 --- a/idea/testData/intentions/convertToForEachFunctionCall/commentsInBody2.kt.after +++ b/idea/testData/intentions/convertToForEachFunctionCall/commentsInBody2.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo() { val list = 1..4 diff --git a/idea/testData/intentions/convertToForEachFunctionCall/commentsOutsideBody.kt b/idea/testData/intentions/convertToForEachFunctionCall/commentsOutsideBody.kt index 105acad5688..ffe72e823b4 100644 --- a/idea/testData/intentions/convertToForEachFunctionCall/commentsOutsideBody.kt +++ b/idea/testData/intentions/convertToForEachFunctionCall/commentsOutsideBody.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo() { for (x /* current */ in 1..10/* from 1 to 10 */) { } } \ No newline at end of file diff --git a/idea/testData/intentions/convertToForEachFunctionCall/commentsOutsideBody.kt.after b/idea/testData/intentions/convertToForEachFunctionCall/commentsOutsideBody.kt.after index 3bd76b4a0c3..5089b7cacb2 100644 --- a/idea/testData/intentions/convertToForEachFunctionCall/commentsOutsideBody.kt.after +++ b/idea/testData/intentions/convertToForEachFunctionCall/commentsOutsideBody.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo() { (1..10/* from 1 to 10 */).forEach { x /* current */ -> } } \ No newline at end of file diff --git a/idea/testData/intentions/convertToForEachFunctionCall/emptyBody.kt b/idea/testData/intentions/convertToForEachFunctionCall/emptyBody.kt index d756bf79947..75ba64efd4f 100644 --- a/idea/testData/intentions/convertToForEachFunctionCall/emptyBody.kt +++ b/idea/testData/intentions/convertToForEachFunctionCall/emptyBody.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo() { for (x in 1..10) { } diff --git a/idea/testData/intentions/convertToForEachFunctionCall/emptyBody.kt.after b/idea/testData/intentions/convertToForEachFunctionCall/emptyBody.kt.after index 16ca7d6182a..4b05bef6659 100644 --- a/idea/testData/intentions/convertToForEachFunctionCall/emptyBody.kt.after +++ b/idea/testData/intentions/convertToForEachFunctionCall/emptyBody.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo() { (1..10).forEach { x -> } } \ No newline at end of file diff --git a/idea/testData/intentions/convertToForEachFunctionCall/noCurlyBraces.kt b/idea/testData/intentions/convertToForEachFunctionCall/noCurlyBraces.kt index 1f38f6daa01..727ff38cf60 100644 --- a/idea/testData/intentions/convertToForEachFunctionCall/noCurlyBraces.kt +++ b/idea/testData/intentions/convertToForEachFunctionCall/noCurlyBraces.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo() { val list = 1..4 val i = 0 diff --git a/idea/testData/intentions/convertToForEachFunctionCall/noCurlyBraces.kt.after b/idea/testData/intentions/convertToForEachFunctionCall/noCurlyBraces.kt.after index 7637a553939..641258e5004 100644 --- a/idea/testData/intentions/convertToForEachFunctionCall/noCurlyBraces.kt.after +++ b/idea/testData/intentions/convertToForEachFunctionCall/noCurlyBraces.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo() { val list = 1..4 val i = 0 diff --git a/idea/testData/intentions/convertToForEachFunctionCall/noStatements.kt b/idea/testData/intentions/convertToForEachFunctionCall/noStatements.kt index a853de3aa30..946ab34e383 100644 --- a/idea/testData/intentions/convertToForEachFunctionCall/noStatements.kt +++ b/idea/testData/intentions/convertToForEachFunctionCall/noStatements.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo() { val list = 1..4 diff --git a/idea/testData/intentions/convertToForEachFunctionCall/noStatements.kt.after b/idea/testData/intentions/convertToForEachFunctionCall/noStatements.kt.after index e0db89740d0..1462117e2f3 100644 --- a/idea/testData/intentions/convertToForEachFunctionCall/noStatements.kt.after +++ b/idea/testData/intentions/convertToForEachFunctionCall/noStatements.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo() { val list = 1..4 diff --git a/idea/testData/intentions/convertToForEachFunctionCall/simple.kt b/idea/testData/intentions/convertToForEachFunctionCall/simple.kt index 59ff6299dae..a9217268008 100644 --- a/idea/testData/intentions/convertToForEachFunctionCall/simple.kt +++ b/idea/testData/intentions/convertToForEachFunctionCall/simple.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo() { val list = 1..4 diff --git a/idea/testData/intentions/convertToForEachFunctionCall/simple.kt.after b/idea/testData/intentions/convertToForEachFunctionCall/simple.kt.after index dbcdc26399f..2bea915284c 100644 --- a/idea/testData/intentions/convertToForEachFunctionCall/simple.kt.after +++ b/idea/testData/intentions/convertToForEachFunctionCall/simple.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME fun foo() { val list = 1..4 diff --git a/idea/testData/intentions/declarations/convertMemberToExtension/abstract.kt b/idea/testData/intentions/declarations/convertMemberToExtension/abstract.kt index d9a5fbc92d7..f94af7f3d31 100644 --- a/idea/testData/intentions/declarations/convertMemberToExtension/abstract.kt +++ b/idea/testData/intentions/declarations/convertMemberToExtension/abstract.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME abstract class Owner { abstract fun f() } \ No newline at end of file diff --git a/idea/testData/intentions/declarations/convertMemberToExtension/abstract.kt.after b/idea/testData/intentions/declarations/convertMemberToExtension/abstract.kt.after index 74ba2453d04..2a7452c830d 100644 --- a/idea/testData/intentions/declarations/convertMemberToExtension/abstract.kt.after +++ b/idea/testData/intentions/declarations/convertMemberToExtension/abstract.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME abstract class Owner { } diff --git a/idea/testData/intentions/declarations/convertMemberToExtension/abstractProperty.kt b/idea/testData/intentions/declarations/convertMemberToExtension/abstractProperty.kt index e560a76ba90..f79735d68fc 100644 --- a/idea/testData/intentions/declarations/convertMemberToExtension/abstractProperty.kt +++ b/idea/testData/intentions/declarations/convertMemberToExtension/abstractProperty.kt @@ -1,3 +1,4 @@ +// WITH_RUNTIME abstract class Owner { abstract val p: Int } \ No newline at end of file diff --git a/idea/testData/intentions/declarations/convertMemberToExtension/abstractProperty.kt.after b/idea/testData/intentions/declarations/convertMemberToExtension/abstractProperty.kt.after index fd7162de92b..c75b26d07f8 100644 --- a/idea/testData/intentions/declarations/convertMemberToExtension/abstractProperty.kt.after +++ b/idea/testData/intentions/declarations/convertMemberToExtension/abstractProperty.kt.after @@ -1,3 +1,4 @@ +// WITH_RUNTIME abstract class Owner { }