mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 07:34:45 +01:00
Drop redundant parameter from ConsumeAndAddCloseSymbol (#6724)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user