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:
josh11b
2023-11-13 19:06:54 +00:00
committed by GitHub
co-authored by Jon Ross-Perkins
parent 522dcc44c5
commit c53b248800
142 changed files with 614 additions and 640 deletions
+5 -6
View File
@@ -50,11 +50,10 @@ static auto BuildFunctionDecl(Context& context, bool is_definition)
}
SemIR::InstBlockId param_refs_id =
context.node_stack().Pop<Parse::NodeKind::ParameterList>();
context.node_stack().Pop<Parse::NodeKind::ParamList>();
SemIR::InstBlockId implicit_param_refs_id =
context.node_stack()
.PopIf<Parse::NodeKind::ImplicitParameterList>()
.value_or(SemIR::InstBlockId::Empty);
context.node_stack().PopIf<Parse::NodeKind::ImplicitParamList>().value_or(
SemIR::InstBlockId::Empty);
auto name_context = context.decl_name_stack().FinishName();
auto fn_node =
context.node_stack()
@@ -205,10 +204,10 @@ auto HandleFunctionDefinitionStart(Context& context, Parse::Node parse_node)
context.sem_ir().StringifyType(param.type_id(), true));
});
if (auto fn_param = param.TryAs<SemIR::Parameter>()) {
if (auto fn_param = param.TryAs<SemIR::Param>()) {
context.AddNameToLookup(fn_param->parse_node, fn_param->name_id,
param_id);
} else if (auto self_param = param.TryAs<SemIR::SelfParameter>()) {
} else if (auto self_param = param.TryAs<SemIR::SelfParam>()) {
context.AddNameToLookup(self_param->parse_node, SemIR::NameId::SelfValue,
param_id);
} else {