[FIR] Use @file:Suppress("DuplicatedCode") for generated fir impl nodes

Get rid of unwanted warnings in IntelliJ
This commit is contained in:
Ivan Kochurkin
2022-06-01 00:39:49 +03:00
committed by teamcity
parent 0c543d65f3
commit 9d6f88469a
222 changed files with 444 additions and 0 deletions
@@ -17,6 +17,8 @@ fun Builder.generateCode(generationPath: File): GeneratedFile {
val stringBuilder = StringBuilder()
SmartPrinter(stringBuilder).apply {
printCopyright()
println("@file:Suppress(\"DuplicatedCode\")")
println()
println("package $packageName")
println()
val imports = collectImports()
@@ -19,6 +19,8 @@ fun Implementation.generateCode(generationPath: File): GeneratedFile {
val stringBuilder = StringBuilder()
SmartPrinter(stringBuilder).apply {
printCopyright()
println("@file:Suppress(\"DuplicatedCode\")")
println()
println("package $packageName")
println()
val imports = collectImports()