summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2024-01-18 14:59:59 -0500
committerPeter Zhu <peter@peterzhu.ca>2024-01-18 14:59:59 -0500
commit686b1655a008f194d4daccf2d423d94c30633206 (patch)
tree2a68588d16d7df338fe3912ec5ed8b8ec4dbdfa4
parent33306a08d119fe6e178314a48b8b3f22ae1bb617 (diff)
[PRISM] Fix indentation in switch [ci skip]
-rw-r--r--prism_compile.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/prism_compile.c b/prism_compile.c
index 9dd39e9b94..43ac0af160 100644
--- a/prism_compile.c
+++ b/prism_compile.c
@@ -6058,23 +6058,23 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret,
// def foo(a, (b, *c, d), e = 1, *f, g, (h, *i, j), k:, l: 1, **m, &n)
// ^^^^^^^^^^
case PM_MULTI_TARGET_NODE: {
- required_multis_hidden_index = local_index;
- local = rb_make_temporary_id(local_index);
- local_table_for_iseq->ids[local_index] = local;
- break;
+ required_multis_hidden_index = local_index;
+ local = rb_make_temporary_id(local_index);
+ local_table_for_iseq->ids[local_index] = local;
+ break;
}
// def foo(a, (b, *c, d), e = 1, *f, g, (h, *i, j), k:, l: 1, **m, &n)
// ^
case PM_REQUIRED_PARAMETER_NODE: {
- pm_required_parameter_node_t * param = (pm_required_parameter_node_t *)required;
+ pm_required_parameter_node_t * param = (pm_required_parameter_node_t *)required;
- if (!PM_NODE_FLAG_P(required, PM_PARAMETER_FLAGS_REPEATED_PARAMETER)) {
- pm_insert_local_index(param->name, local_index, index_lookup_table, local_table_for_iseq, scope_node);
- }
- break;
+ if (!PM_NODE_FLAG_P(required, PM_PARAMETER_FLAGS_REPEATED_PARAMETER)) {
+ pm_insert_local_index(param->name, local_index, index_lookup_table, local_table_for_iseq, scope_node);
+ }
+ break;
}
default: {
- rb_bug("Unsupported node in requireds in parameters %s", pm_node_type_to_str(PM_NODE_TYPE(node)));
+ rb_bug("Unsupported node in requireds in parameters %s", pm_node_type_to_str(PM_NODE_TYPE(node)));
}
}
}