Kotlin: Escape TRAP strings

This commit is contained in:
Ian Lynagh
2021-08-16 10:45:46 +01:00
parent f85cf27df8
commit bbb9d013e0
4 changed files with 13 additions and 9 deletions

View File

@@ -51,6 +51,12 @@ class KotlinExtractorExtension(private val tests: List<String>) : IrGenerationEx
}
}
class Label<T>(val name: Int) {
override fun toString(): String = "#$name"
}
fun escapeTrapString(str: String) = str.replace("\"", "\"\"")
class Logger() {
private val warningCounts = mutableMapOf<String, Int>()
private val warningLimit: Int