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
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> |
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
beat: NBeatDeclThe referenced beat declaration.
stack: Array<RuntimeScope>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 |
- |