SymbolKey

class SymbolKey(nameOrNull: String?, val kind: Symbol.Kind) : Symbol

One of the two implementations of Symbol. This one exists so native code can use the well-known symbols as plain map keys. A NativeSymbol built from a key compares equal to that key.

Constructors

Link copied to clipboard
constructor(nameOrNull: String?, kind: Symbol.Kind)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The description as script sees it: undefined for an anonymous symbol.

Link copied to clipboard
open override val kind: Symbol.Kind
Link copied to clipboard
open override val name: String

Empty for an anonymous symbol, the kind Symbol() makes.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String