CallLocation

actual data class CallLocation : Comparable<CallLocation>
actual data class CallLocation : Comparable<CallLocation>

Represents the line at which user code called into Selfie.

Constructors

Link copied to clipboard
constructor(fileName: String?, line: Int)
constructor(clazz: String, method: String, fileName: String?, line: Int)

Properties

Link copied to clipboard
Link copied to clipboard
expect val fileName: String?
actual val fileName: String?
actual val fileName: String?
Link copied to clipboard
expect val line: Int
actual val line: Int
actual val line: Int
Link copied to clipboard

Functions

Link copied to clipboard
expect open operator override fun compareTo(other: CallLocation): Int
actual open operator override fun compareTo(other: CallLocation): Int
actual open operator override fun compareTo(other: CallLocation): Int
Link copied to clipboard
expect fun ideLink(layout: SnapshotFileLayout): String

Returns a string which an IDE can render as a hyperlink.

actual fun ideLink(layout: SnapshotFileLayout): String
actual fun ideLink(layout: SnapshotFileLayout): String

A toString which an IDE will render as a clickable link.

Link copied to clipboard
expect fun samePathAs(other: CallLocation): Boolean

Computing the exact path using SnapshotFileLayout.sourcePathForCall is expensive, so it can be helpful to cache these.

actual fun samePathAs(other: CallLocation): Boolean
actual fun samePathAs(other: CallLocation): Boolean
Link copied to clipboard

Returns the likely name of the sourcecode of this file, without path or extension.

Returns the likely name of the sourcecode of this file, without path or extension.

Link copied to clipboard
expect fun withLine(line: Int): CallLocation

Returns a new CallLocation at the given line.

actual fun withLine(line: Int): CallLocation
actual fun withLine(line: Int): CallLocation