mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Abbreviate "parameter" -> "param" (#3392)
Part of switching to the [abbreviations we've decided to use](https://docs.google.com/document/d/1RRYMm42osyqhI2LyjrjockYCutQ5dOf8Abu50kTrkX0/edit?resourcekey=0-kHyqOESbOHmzZphUbtLrTw#heading=h.pph7i5m5un7q). I will rename files in a follow-up PR. --------- Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
co-authored by
Jon Ross-Perkins
parent
522dcc44c5
commit
c53b248800
@@ -19,13 +19,13 @@ auto HandleParenExpr(Context& context) -> void {
|
||||
} else {
|
||||
state.state = State::ParenExprFinishAsNormal;
|
||||
context.PushState(state);
|
||||
context.PushState(State::ParenExprParameterFinishAsUnknown);
|
||||
context.PushState(State::ParenExprParamFinishAsUnknown);
|
||||
context.PushState(State::Expr);
|
||||
}
|
||||
}
|
||||
|
||||
// Handles ParenExprParameterFinishAs(Unknown|Tuple).
|
||||
static auto HandleParenExprParameterFinish(Context& context, bool as_tuple)
|
||||
// Handles ParenExprParamFinishAs(Unknown|Tuple).
|
||||
static auto HandleParenExprParamFinish(Context& context, bool as_tuple)
|
||||
-> void {
|
||||
auto state = context.PopState();
|
||||
|
||||
@@ -39,7 +39,7 @@ static auto HandleParenExprParameterFinish(Context& context, bool as_tuple)
|
||||
// Note this could be `(expr,)` so we may not reuse the current state, but
|
||||
// it's still necessary to switch the parent.
|
||||
if (!as_tuple) {
|
||||
state.state = State::ParenExprParameterFinishAsTuple;
|
||||
state.state = State::ParenExprParamFinishAsTuple;
|
||||
|
||||
auto finish_state = context.PopState();
|
||||
CARBON_CHECK(finish_state.state == State::ParenExprFinishAsNormal)
|
||||
@@ -55,12 +55,12 @@ static auto HandleParenExprParameterFinish(Context& context, bool as_tuple)
|
||||
}
|
||||
}
|
||||
|
||||
auto HandleParenExprParameterFinishAsUnknown(Context& context) -> void {
|
||||
HandleParenExprParameterFinish(context, /*as_tuple=*/false);
|
||||
auto HandleParenExprParamFinishAsUnknown(Context& context) -> void {
|
||||
HandleParenExprParamFinish(context, /*as_tuple=*/false);
|
||||
}
|
||||
|
||||
auto HandleParenExprParameterFinishAsTuple(Context& context) -> void {
|
||||
HandleParenExprParameterFinish(context, /*as_tuple=*/true);
|
||||
auto HandleParenExprParamFinishAsTuple(Context& context) -> void {
|
||||
HandleParenExprParamFinish(context, /*as_tuple=*/true);
|
||||
}
|
||||
|
||||
auto HandleParenExprFinishAsNormal(Context& context) -> void {
|
||||
|
||||
Reference in New Issue
Block a user