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

As requested in review of #4652.
This commit is contained in:
Richard Smith authored and GitHub committed 2024-12-10 20:56:37 +00:00
1 parent fe8b42148f
commit 92201ceb10
10 files changed
+79 -51

No files matched your search

+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,