File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -11414,12 +11414,10 @@ parse_target(pm_parser_t *parser, pm_node_t *target) {
11414
11414
target->type = PM_GLOBAL_VARIABLE_TARGET_NODE;
11415
11415
return target;
11416
11416
case PM_LOCAL_VARIABLE_READ_NODE:
11417
- if (pm_token_is_numbered_parameter(target->location.start, target->location.end)) {
11418
- PM_PARSER_ERR_NODE_FORMAT(parser, target, PM_ERR_PARAMETER_NUMBERED_RESERVED, target->location.start);
11419
- } else {
11420
- assert(sizeof(pm_local_variable_target_node_t) == sizeof(pm_local_variable_read_node_t));
11421
- target->type = PM_LOCAL_VARIABLE_TARGET_NODE;
11422
- }
11417
+ pm_refute_numbered_parameter(parser, target->location.start, target->location.end);
11418
+
11419
+ assert(sizeof(pm_local_variable_target_node_t) == sizeof(pm_local_variable_read_node_t));
11420
+ target->type = PM_LOCAL_VARIABLE_TARGET_NODE;
11423
11421
11424
11422
return target;
11425
11423
case PM_INSTANCE_VARIABLE_READ_NODE:
You can’t perform that action at this time.
0 commit comments