Rename check handlers to HandleParseNode overloads. (#4121)

This is for consistency with #4120. Similar to that, we can use
overloads on the typed NodeId rather than individually named handlers.
There isn't the same caller benefit here though, since the calls from
check.cpp are already boilerplate.
This commit is contained in:
Jon Ross-Perkins
2024-07-12 22:38:06 +00:00
committed by GitHub
parent bb8417c810
commit 99696b9812
34 changed files with 290 additions and 339 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ static auto HandleDiscardedExpr(Context& context, SemIR::InstId expr_id)
// TODO: This will eventually need to do some "do not discard" analysis.
}
auto HandleExprStatement(Context& context, Parse::ExprStatementId /*node_id*/)
auto HandleParseNode(Context& context, Parse::ExprStatementId /*node_id*/)
-> bool {
HandleDiscardedExpr(context, context.node_stack().PopExpr());
return true;