Add list literal opcode and bytecode wrappers

This commit is contained in:
sergeych committed 2026-01-28 22:35:14 +03:00
1 parent aebe0890d8
commit a4fc5ac6d5
14 files changed
+271 -82

No files matched your search

+14 -14
View File
@@ -249,20 +249,6 @@ fun List.sort() {
sortWith { a, b -> a <=> b }
}
/* Represents a single stack trace element. */
class StackTraceEntry(
val sourceName: String,
val line: Int,
val column: Int,
val sourceString: String
) {
val at by lazy { "%s:%s:%s"(sourceName,line+1,column+1) }
/* Formatted representation: source:line:column: text. */
override fun toString() {
"%s: %s"(at, sourceString.trim())
}
}
/* Print this exception and its stack trace to standard output. */
fun Exception.printStackTrace() {
println(this)
@@ -337,3 +323,17 @@ class lazy(creatorParam) : Delegate {
value
}
}
/* Represents a single stack trace element. */
class StackTraceEntry(
val sourceName: String,
val line: Int,
val column: Int,
val sourceString: String
) {
val at by lazy { "%s:%s:%s"(sourceName,line+1,column+1) }
/* Formatted representation: source:line:column: text. */
override fun toString() {
"%s: %s"(at, sourceString.trim())
}
}