Drop redundant parameter from ConsumeAndAddCloseSymbol (#6724)

This commit is contained in:
Geoff Romer
2026-02-12 01:56:15 +00:00
committed by GitHub
parent 320096da67
commit 3719d200d6
7 changed files with 16 additions and 21 deletions
+3 -5
View File
@@ -49,21 +49,19 @@ auto HandleParenConditionAsMatch(Context& context) -> void {
auto HandleParenConditionFinishAsIf(Context& context) -> void {
auto state = context.PopState();
context.ConsumeAndAddCloseSymbol(state.token, state, NodeKind::IfCondition);
context.ConsumeAndAddCloseSymbol(state, NodeKind::IfCondition);
}
auto HandleParenConditionFinishAsWhile(Context& context) -> void {
auto state = context.PopState();
context.ConsumeAndAddCloseSymbol(state.token, state,
NodeKind::WhileCondition);
context.ConsumeAndAddCloseSymbol(state, NodeKind::WhileCondition);
}
auto HandleParenConditionFinishAsMatch(Context& context) -> void {
auto state = context.PopState();
context.ConsumeAndAddCloseSymbol(state.token, state,
NodeKind::MatchCondition);
context.ConsumeAndAddCloseSymbol(state, NodeKind::MatchCondition);
}
} // namespace Carbon::Parse