Preserve the order of expressions in deduced_param_list (#1157)

This commit is contained in:
pk19604014
2022-03-29 14:04:45 -04:00
committed by GitHub
parent 210856dd57
commit 134bf9bbdc
+6 -6
View File
@@ -786,20 +786,20 @@ deduced_param_list:
$$ = std::vector<Nonnull<AstNode*>>();
$$.push_back($1);
}
| generic_binding COMMA deduced_param_list
| deduced_param_list COMMA generic_binding
{
$$ = $3;
$$.push_back($1);
$$ = $1;
$$.push_back($3);
}
| variable_declaration
{
$$ = std::vector<Nonnull<AstNode*>>();
$$.push_back($1);
}
| variable_declaration COMMA deduced_param_list
| deduced_param_list COMMA variable_declaration
{
$$ = $3;
$$.push_back($1);
$$ = $1;
$$.push_back($3);
}
;
deduced_params: