mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 12:31:04 +01:00
Preserve the order of expressions in deduced_param_list (#1157)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user