All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmMain.io.ktor.util.StackFramesJvm.kt Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
/*
 * Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
 */

package io.ktor.util

import kotlin.reflect.*

@Suppress("ACTUAL_WITHOUT_EXPECT")
internal actual typealias CoroutineStackFrame = kotlin.coroutines.jvm.internal.CoroutineStackFrame

@Suppress("ACTUAL_WITHOUT_EXPECT")
internal actual typealias StackTraceElement = java.lang.StackTraceElement

@Suppress("FunctionName")
internal actual fun createStackTraceElement(
    kClass: KClass<*>,
    methodName: String,
    fileName: String,
    lineNumber: Int
): StackTraceElement {
    return java.lang.StackTraceElement(
        kClass.java.name,
        methodName,
        fileName,
        lineNumber
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy