MIR: lexical scoping + builder vars modules

This commit is contained in:
nyash-codex
2025-12-13 01:30:04 +09:00
parent 5c75506dcc
commit 1fae4f1648
16 changed files with 388 additions and 29 deletions

View File

@ -590,8 +590,8 @@ pub enum ASTNode {
span: Span,
},
/// ScopeBoxオプション: 診断/マクロ可視性のためのno-opスコープ。
/// 正規化で注入され、MIRビルダがブロックとして処理(意味不変)。
/// ScopeBoxオプション: 正規化で注入される明示的なレキシカルスコープ境界
/// MIR ビルダは `{ ... }` と同様にブロックとして処理するlocal のシャドウイング/寿命を分離)。
ScopeBox { body: Vec<ASTNode>, span: Span },
/// Outbox変数宣言: outbox x, y, z (static関数内専用)