Rename various TryToCompleteType functions to better describe what they do. (#4658)

As requested in review of #4652.
This commit is contained in:
Richard Smith
2024-12-10 20:56:37 +00:00
committed by GitHub
parent fe8b42148f
commit 92201ceb10
10 changed files with 79 additions and 51 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ static auto HandleAnyBindingPattern(Context& context, Parse::NodeId node_id,
// A `var` declaration at class scope introduces a field.
auto parent_class_decl = context.GetCurrentScopeAs<SemIR::ClassDecl>();
cast_type_id = context.AsCompleteType(
cast_type_id = context.AsConcreteType(
cast_type_id, type_node,
[&] {
CARBON_DIAGNOSTIC(IncompleteTypeInVarDecl, Error,