Skip to content

Commit

Permalink
Merge pull request #2197 from ksss/fix-capa
Browse files Browse the repository at this point in the history
Adjust capacity of location children
  • Loading branch information
soutaro authored Dec 24, 2024
2 parents 3f58977 + e01cb61 commit 4c77a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/rbs_extension/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ static VALUE parse_type_params(parserstate *state, range *rg, bool module_type_p

VALUE location = rbs_new_location(state->buffer, param_range);
rbs_loc *loc = rbs_check_location(location);
rbs_loc_alloc_children(loc, 4);
rbs_loc_alloc_children(loc, 5);
rbs_loc_add_required_child(loc, rb_intern("name"), name_range);
rbs_loc_add_optional_child(loc, rb_intern("variance"), variance_range);
rbs_loc_add_optional_child(loc, rb_intern("unchecked"), unchecked_range);
Expand Down

0 comments on commit 4c77a2b

Please sign in to comment.