class Registry
Tag Registry.
index
members
-
registry\begin_eval()
– begin an evaluation cycle. -
registry\assign_tags()
– assign unique tags to pending registrations. -
registry\rollback_eval()
– abort an evaluation cycle. -
registry\end_eval()
– end an evaluation cycle. -
registry\destroy()
– destroy this Registry and all associated Registrations. -
registry.module
– the module associated with this Registry
static functions
-
Registry\new(module)
– create a new Registry.
internals for `tag`
-
registry\last(index)
– lookup the last registration. -
registry\register(tag)
– set the current registration.
details
members
-
– begin an evaluation cycle.
All calls go begin_eval must be matched with a call to assign_tags followed by either end_eval or rollback_eval.
-
– assign unique tags to pending registrations.
Assigns a unique number to each tag added in this evaluation cycle.
-
– abort an evaluation cycle.
Destroys all pending registrations
-
– end an evaluation cycle.
Register all pending Tags and destroy all orphaned registrations.
returns:
- (bool): whether any changes to the AST were made
-
– destroy this Registry and all associated Registrations.
needs to be called after :eval.
-
– the module associated with this Registry
static functions
-
– create a new Registry.
parameters:
internals for `tag`
-
– lookup the last registration.
parameters:
- the registration index
returns:
- (any)
-
– set the current registration.
parameters:
- the Tag to register
returns:
- (boolean): whether the tag is new