mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Replace uses of "defined" with "complete" (#5196)
As of #5087, these terms are no longer synonyms. This change preserves the original meaning. --------- Co-authored-by: Josh L <josh11b@users.noreply.github.com>
This commit is contained in:
@@ -348,7 +348,7 @@ static auto DiagnoseQualifiedDeclInUndefinedInterfaceScope(
|
||||
InstIdAsType);
|
||||
auto builder = context.emitter().Build(
|
||||
loc, QualifiedDeclInUndefinedInterfaceScope, interface_inst_id);
|
||||
NoteUndefinedInterface(context, interface_id, builder);
|
||||
NoteIncompleteInterface(context, interface_id, builder);
|
||||
builder.Emit();
|
||||
}
|
||||
|
||||
@@ -413,7 +413,7 @@ auto DeclNameStack::ResolveAsScope(const NameContext& name_context,
|
||||
DeclParams(class_info))) {
|
||||
return InvalidResult;
|
||||
}
|
||||
if (!class_info.is_defined()) {
|
||||
if (!class_info.is_complete()) {
|
||||
DiagnoseQualifiedDeclInIncompleteClassScope(
|
||||
*context_, name_context.loc_id, class_decl.class_id);
|
||||
return InvalidResult;
|
||||
@@ -427,7 +427,7 @@ auto DeclNameStack::ResolveAsScope(const NameContext& name_context,
|
||||
DeclParams(interface_info))) {
|
||||
return InvalidResult;
|
||||
}
|
||||
if (!interface_info.is_defined()) {
|
||||
if (!interface_info.is_complete()) {
|
||||
DiagnoseQualifiedDeclInUndefinedInterfaceScope(
|
||||
*context_, name_context.loc_id, interface_decl.interface_id,
|
||||
name_context.resolved_inst_id);
|
||||
|
||||
Reference in New Issue
Block a user