ShakeFieldUsage

Represents the usage of a field in a class instance or an object in the Shake language.

Since

0.1.0

Inheritors

Properties

Link copied to clipboard

The declaration associated with this usage.

Link copied to clipboard
open val name: String

The name of the field being used. It is derived from the associated declaration.

Link copied to clipboard
abstract val project: ShakeProject

The project to which this value belongs.

Link copied to clipboard
abstract val receiver: ShakeValue?

The receiver of the field. This is the instance of the class or object where the field is used.

Link copied to clipboard
abstract val scope: ShakeScope

The scope in which the usage occurs.

Link copied to clipboard
abstract val type: ShakeType

The type of this value.

Functions

Link copied to clipboard
abstract fun toJson(): Map<String, Any?>

Converts this value to a JSON representation. Useful for serialization, debugging, or for interfacing with external systems.