Phase 30.1 & 73: Stage-3 features env and JoinIR flag cleanup
This commit is contained in:
@ -102,8 +102,10 @@ impl AstToJoinIrLowerer {
|
||||
}
|
||||
"parse_loop" => {
|
||||
// Phase 41-4: NestedIfMerge pattern (dev flag gated)
|
||||
// Guard: HAKO_JOINIR_NESTED_IF=1 を要求
|
||||
if std::env::var("HAKO_JOINIR_NESTED_IF").ok().as_deref() == Some("1") {
|
||||
// Guard: JoinIR dev + HAKO_JOINIR_NESTED_IF=1 を要求
|
||||
if crate::config::env::joinir_dev_enabled()
|
||||
&& std::env::var("HAKO_JOINIR_NESTED_IF").ok().as_deref() == Some("1")
|
||||
{
|
||||
self.lower_nested_if_pattern(program_json)
|
||||
} else {
|
||||
// Dev flag が OFF の場合は panic(旧ルートにフォールバックするため)
|
||||
@ -116,7 +118,9 @@ impl AstToJoinIrLowerer {
|
||||
"read_quoted_from" => {
|
||||
// Phase 45: read_quoted_from pattern (dev flag gated)
|
||||
// Guard if + Loop with break + accumulator
|
||||
if std::env::var("HAKO_JOINIR_READ_QUOTED").ok().as_deref() == Some("1") {
|
||||
if crate::config::env::joinir_dev_enabled()
|
||||
&& std::env::var("HAKO_JOINIR_READ_QUOTED").ok().as_deref() == Some("1")
|
||||
{
|
||||
self.lower_read_quoted_pattern(program_json)
|
||||
} else {
|
||||
panic!(
|
||||
|
||||
Reference in New Issue
Block a user