Implement Phase 8.9: Remove transparency system and add weak reference nullification

Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-15 11:47:46 +00:00
parent 601b1f08e3
commit 82cad3f907
7 changed files with 198 additions and 92 deletions

View File

@ -516,9 +516,13 @@ impl NyashParser {
}
}
} else {
// DOTがない場合: from Parent() 形式 - 透明化システム
// 🔥 Pack透明化: Parent名をmethod名として使用
parent.clone()
// DOTがない場合: from Parent() 形式 - 透明化システム廃止
// Phase 8.9: 明示的birth()構文を強制
let line = self.current_token().line;
return Err(ParseError::TransparencySystemRemoved {
suggestion: format!("Use 'from {}.birth()' instead of 'from {}()'", parent, parent),
line,
});
};
// 引数リストをパース