RuntimeBeatRef

loreline.RuntimeBeatRef (Class)

A first-class beat reference: the beat plus the scope chain captured where the reference was created (from root up to and including the beat's declaring scope; empty for top-level beats). Produced whenever an expression reads an identifier that resolves to a beat.

Static Members

beatOf(value: Any): Null<NBeatDecl>

Returns the underlying beat if the given runtime value is a beat declaration or a beat reference, null otherwise.

Name Type
value Any
Returns
Null<NBeatDecl>

beatNameOf(value: Any): Null<String>

Returns the name of the beat if the given runtime value is a beat declaration or a beat reference, null otherwise. Used by host bindings, where beat values cross the boundary as their name.

Name Type
value Any
Returns
Null<String>

Instance Members

The referenced beat declaration.


The captured scope chain (closure). Empty for top-level beats.


new(beat: NBeatDecl, stack: Array<RuntimeScope>): Void
Name Type
beat NBeatDecl
stack Array<RuntimeScope>

Metadata

Name Parameters
:expose -