LocalScope

Constructors

Link copied to clipboard
constructor(parent: CreationShakeScope)

Properties

Link copied to clipboard
open override val parent: CreationShakeScope

The parent scope of this scope, if it exists. Null if this is a top-level scope.

Link copied to clipboard
open override val processor: ShakeASTProcessor
Link copied to clipboard
open override val project: CreationShakeProject
Link copied to clipboard
open override val uniqueName: String

The unique name of this scope, used for identification purposes.

Functions

Link copied to clipboard
fun getClass(name: String, then: (CreationShakeClass) -> Unit)

open override fun getClass(name: String): CreationShakeClass?

Retrieves a class by its name within this scope.

Link copied to clipboard
open override fun getClasses(name: String): List<CreationShakeClass>

Retrieves all classes with the specified name within this scope.

Link copied to clipboard
open override fun getField(name: String): CreationShakeAssignable?

Retrieves a field (variable) by its name within this scope.

Link copied to clipboard
open override fun getFields(name: String): List<CreationShakeAssignable>

Retrieves all fields (variables) with the specified name within this scope.

Link copied to clipboard
open override fun getFunctions(name: String): List<CreationShakeMethod>

Retrieves all functions with the specified name within this scope.

Link copied to clipboard
open override fun getInvokable(name: String): List<CreationShakeInvokable>

Retrieves all invokable entities (like functions or methods) with the specified name within this scope.

Link copied to clipboard
open override fun getSuper(): ShakeAssignable?

Retrieves the 'super' reference within this scope. 'Super' refers to the superclass object in object-oriented contexts.

open override fun getSuper(name: String): ShakeAssignable?

Retrieves a field or method named 'name' from the 'super' object within this scope.

Link copied to clipboard
open override fun getThis(): ShakeAssignable?

Retrieves the 'this' reference within this scope. 'This' refers to the current object in object-oriented contexts.

open override fun getThis(name: String): ShakeAssignable?

Retrieves a field or method named 'name' from the 'this' object within this scope.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun setClass(klass: CreationShakeClass)
Link copied to clipboard
open override fun setField(value: CreationShakeDeclaration)
Link copied to clipboard
open override fun setFunctions(function: CreationShakeMethod)
Link copied to clipboard
open override fun use(name: String)

Indicates that a name is being used in this scope. This method can be used for tracking purposes, such as identifying unused variables.