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