mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 09:01:05 +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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user