mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 02:30:29 +00:00
`Self` is modeled as a `bind_symbolic_name` with no corresponding value, for now at least. In the future it might make sense to model it as a new kind of instruction, or as a `bind_symbolic_name` whose value is a `param`, but for now we just want it to introduce a symbolic constant. In order to convert a value like the `Self` of an interface to a type, a new instruction `facet_type_access` is introduced. This notionally accesses the "type" field within a facet, converting it from a pair of (type, witness) into just the type.