Rename SemIR::{Base,Field} -> SemIR::{Base,Field}Decl. (#3452)

Also fix printing of unbound element type to say "element" not "field"
since we're touching all the relevant SemIR output anyway.
This commit is contained in:
Richard Smith
2023-12-05 16:37:02 +00:00
committed by GitHub
parent 7dffa0c7ec
commit 433d626b04
33 changed files with 124 additions and 124 deletions
+4 -4
View File
@@ -92,10 +92,10 @@ auto HandleBindingPattern(Context& context, Parse::NodeId parse_node) -> bool {
class_info.self_type_id, cast_type_id});
value_type_id = context.CanonicalizeType(field_type_inst_id);
value_id = context.AddInst(
SemIR::Field{parse_node, value_type_id, name_id,
SemIR::ElementIndex(context.args_type_info_stack()
.PeekCurrentBlockContents()
.size())});
SemIR::FieldDecl{parse_node, value_type_id, name_id,
SemIR::ElementIndex(context.args_type_info_stack()
.PeekCurrentBlockContents()
.size())});
// Add a corresponding field to the object representation of the class.
context.args_type_info_stack().AddInst(