File tree 1 file changed +6
-11
lines changed
utbot-framework/src/main/kotlin/org/utbot/framework/codegen/renderer
1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -394,19 +394,14 @@ abstract class CgAbstractRenderer(
394
394
395
395
val isBlockTooLarge = workaround(LONG_CODE_FRAGMENTS ) { block.size > LARGE_CODE_BLOCK_SIZE }
396
396
397
- if (isBlockTooLarge) {
398
- print (" /*" )
399
- println (" This block of code is ${block.size} lines long and could lead to compilation error" )
400
- }
401
-
402
- withIndent {
403
- for (statement in block) {
404
- statement.accept(this )
397
+ if (! isBlockTooLarge) {
398
+ withIndent {
399
+ for (statement in block) {
400
+ statement.accept(this )
401
+ }
405
402
}
406
403
}
407
404
408
- if (isBlockTooLarge) println (" */" )
409
-
410
405
print (" }" )
411
406
412
407
if (printNextLine) println ()
@@ -959,6 +954,6 @@ abstract class CgAbstractRenderer(
959
954
/* *
960
955
* @see [LONG_CODE_FRAGMENTS]
961
956
*/
962
- private const val LARGE_CODE_BLOCK_SIZE : Int = 1000
957
+ private const val LARGE_CODE_BLOCK_SIZE : Int = 150
963
958
}
964
959
}
You can’t perform that action at this time.
0 commit comments