mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Put check stage handle functions in execution order (#3573)
No changes other than moving code and adding section comments.
This commit is contained in:
@@ -9,6 +9,20 @@
|
||||
|
||||
namespace Carbon::Check {
|
||||
|
||||
auto HandleCallExprStart(Context& context, Parse::CallExprStartId parse_node)
|
||||
-> bool {
|
||||
auto name_id = context.node_stack().PopExpr();
|
||||
context.node_stack().Push(parse_node, name_id);
|
||||
context.ParamOrArgStart();
|
||||
return true;
|
||||
}
|
||||
|
||||
auto HandleCallExprComma(Context& context,
|
||||
Parse::CallExprCommaId /*parse_node*/) -> bool {
|
||||
context.ParamOrArgComma();
|
||||
return true;
|
||||
}
|
||||
|
||||
auto HandleCallExpr(Context& context, Parse::CallExprId parse_node) -> bool {
|
||||
// Process the final explicit call argument now, but leave the arguments
|
||||
// block on the stack until the end of this function.
|
||||
@@ -83,18 +97,4 @@ auto HandleCallExpr(Context& context, Parse::CallExprId parse_node) -> bool {
|
||||
return true;
|
||||
}
|
||||
|
||||
auto HandleCallExprComma(Context& context,
|
||||
Parse::CallExprCommaId /*parse_node*/) -> bool {
|
||||
context.ParamOrArgComma();
|
||||
return true;
|
||||
}
|
||||
|
||||
auto HandleCallExprStart(Context& context, Parse::CallExprStartId parse_node)
|
||||
-> bool {
|
||||
auto name_id = context.node_stack().PopExpr();
|
||||
context.node_stack().Push(parse_node, name_id);
|
||||
context.ParamOrArgStart();
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace Carbon::Check
|
||||
|
||||
Reference in New Issue
Block a user