mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 10:38:10 +00:00
The documentation still referred to typed instructions having a Parse::Node field, however that was removed and moved to the InstStore inf197219c10. Then GetParseNode() was renamed to GetNodeId() in86a7c9ff45and then GetLocationId() inb079acd86fand finally GetLocId() inb5d28f2c4b. The comment in typed_inst.h mentions only three fields now, but some types still have four, thanks to the unmentioned `ElementIndex index` field. Normally this field comes last, after the `[...]Id` fields except for in one case, AssociatedEntity. Rather than write ambiguously ordered documentation, update the comment to and docs to say that the ElementIndex comes last, and move it to the last position in AssociatedEntity. Tests are rebased accordingly. --------- Co-authored-by: Richard Smith <richard@metafoo.co.uk>