class Savi::Compiler::Macros::SimpleIdentifiers
Overview
Handle simple identifier macros like error!
and return
with no value.
We run these as a separate micro-pass so that we can ensure all other macros
have already been expanded before attempting to expand any of these.
Otherwise, these may interfere with expansion of multi-term forms
that use the same identifier as a marker (for example, return VALUE
).
Defined in:
savi/compiler/macros.crConstructors
Class Method Summary
Instance Method Summary
- #is_valid_sequential_context?
- #macros : Macros
- #maybe_replace(ctx, node : AST::Node)
- #post_observe(ctx, node : AST::Node)
- #pre_observe(ctx, node : AST::Node)
- #visit(ctx, node : AST::Node)
- #visit_pre(ctx, node : AST::Node)