Add list literal opcode and bytecode wrappers
This commit is contained in:
1 parent
aebe0890d8
commit
a4fc5ac6d5
14 files changed
+271
-82
No files matched your search
@@ -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())
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user