CallSite

sealed external interface CallSite(source)

Functions

Link copied to clipboard
abstract fun getColumnNumber(): Double?

Current column number if this function was defined in a script

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getEvalOrigin(): String?

A call site object representing the location where eval was called if this function was created using a call to eval

Link copied to clipboard
abstract fun getFileName(): String?

Name of the script if this function was defined in a script

Link copied to clipboard
abstract fun getFunction(): Function<*>?

Current function

Link copied to clipboard
abstract fun getFunctionName(): String?

Name of the current function, typically its name property. If a name property is not available an attempt will be made to try to infer a name from the function's context.

Link copied to clipboard
abstract fun getLineNumber(): Double?

Current line number if this function was defined in a script

Link copied to clipboard
abstract fun getMethodName(): String?

Name of the property of "this" or one of its prototypes that holds the current function

Link copied to clipboard
abstract fun getPosition(): Double
Link copied to clipboard
abstract fun getPromiseIndex(): Double?

returns the index of the promise element that was followed in Promise.all() or Promise.any() for async stack traces, or null if the CallSite is not an async

Link copied to clipboard
abstract fun getScriptHash(): String
Link copied to clipboard
Link copied to clipboard
abstract fun getThis(): Any?

Value of "this"

Link copied to clipboard
abstract fun getTypeName(): String?

Type of "this" as a string. This is the name of the function stored in the constructor field of "this", if available. Otherwise the object's [Class] internal property.

Link copied to clipboard
abstract fun isAsync(): Boolean

is this an async call (i.e. await, Promise.all(), or Promise.any())?

Link copied to clipboard
abstract fun isConstructor(): Boolean

Is this a constructor call?

Link copied to clipboard
abstract fun isEval(): Boolean

Does this call take place in code defined by a call to eval?

Link copied to clipboard
abstract fun isNative(): Boolean

Is this call in native V8 code?

Link copied to clipboard
abstract fun isPromiseAll(): Boolean

is this an async call to Promise.all()?

Link copied to clipboard
abstract fun isToplevel(): Boolean

Is this a toplevel invocation, that is, is "this" the global object?

Link copied to clipboard
abstract override fun toString(): String