Scope

abstract class Scope(var astNode: Node?)

Represent semantic scopes in the language. Depending on the language scopes can have visibility restriction and can act as namespaces to avoid name collisions.

Constructors

Link copied to clipboard
fun Scope(astNode: Node?)

Functions

Link copied to clipboard
fun addLabelStatement(labelStatement: LabelStatement)
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
open var astNode: Node?
Link copied to clipboard

The list of child scopes.

Link copied to clipboard

Returns the GlobalScope of this scope by traversing its parents upwards.

Link copied to clipboard
var id: Long? = null

Required field for object graph mapping. It contains the scope id.

Link copied to clipboard
var name: Name? = null

The real new name

Link copied to clipboard
var parent: Scope? = null

Scopes are nested and therefore have a parent child relationship, this two members will help navigate through the scopes,e.g. when looking up variables.

Link copied to clipboard
var scopedName: String? = null

FQN Name currently valid

Inheritors

Link copied to clipboard