lang::typecheck::macro_apply

lang/src/typecheck/macro_apply.mo

Macro APPLICATION — the layer directly above [[lang/typecheck/subst.mo]] (de Bruijn beta_reduce, term-macro form) and [[lang/typecheck/name_subst.mo]] (name-based name_subst_decls, decl-macro form): given an already-parsed macro definition and the concrete args a call site supplied, produce the expanded result.

Deliberately NOT wired into any pipeline yet (lang/module.mo's check_file/scope-building) — that's later staging (work-queue + pipeline splice, Step 5-7 of the macro-expansion plan). This module only has to answer "given a macro def and call args, what does applying them produce" — the caller (a future expand_term/outer work-queue) is responsible for finding which macro a given call site's name actually refers to.

This module has no public declarations of its own.