Skip to content

Commit

Permalink
Handle missing block parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Aug 1, 2023
1 parent 5af0eff commit bc90494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yarp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ yp_block_parameters_node_closing_set(yp_block_parameters_node_t *node, const yp_
// Append a new block-local variable to a BlockParametersNode node.
static void
yp_block_parameters_node_append_local(yp_block_parameters_node_t *node, const yp_token_t *local) {
assert(local->type == YP_TOKEN_IDENTIFIER);
assert(local->type == YP_TOKEN_IDENTIFIER || local->type == YP_TOKEN_MISSING);

yp_location_list_append(&node->locals, local);
if (node->base.location.start == NULL) node->base.location.start = local->start;
Expand Down

0 comments on commit bc90494

Please sign in to comment.