mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
Kotlin: Escape TRAP strings
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user