Rename Parse::Node -> Parse::NodeId. (#3432)

As discussed [on
discord](https://discord.com/channels/655572317891461132/655578254970716160/1178878128714678282)
and today's toolchain discussion.
This commit is contained in:
Richard Smith
2023-11-29 18:53:12 +00:00
committed by GitHub
parent 0c0998d7cd
commit 332a368cee
45 changed files with 396 additions and 372 deletions
+4 -3
View File
@@ -9,7 +9,7 @@
namespace Carbon::Check {
auto HandleCallExpr(Context& context, Parse::Node parse_node) -> bool {
auto HandleCallExpr(Context& context, Parse::NodeId parse_node) -> bool {
// Process the final explicit call argument now, but leave the arguments
// block on the stack until the end of this function.
context.ParamOrArgEndNoPop(Parse::NodeKind::CallExprStart);
@@ -84,12 +84,13 @@ auto HandleCallExpr(Context& context, Parse::Node parse_node) -> bool {
return true;
}
auto HandleCallExprComma(Context& context, Parse::Node /*parse_node*/) -> bool {
auto HandleCallExprComma(Context& context, Parse::NodeId /*parse_node*/)
-> bool {
context.ParamOrArgComma();
return true;
}
auto HandleCallExprStart(Context& context, Parse::Node parse_node) -> bool {
auto HandleCallExprStart(Context& context, Parse::NodeId parse_node) -> bool {
auto name_id = context.node_stack().PopExpr();
context.node_stack().Push(parse_node, name_id);
context.ParamOrArgStart();