carbon-language / carbon-lang

Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
https://github.com/carbon-language/carbon-lang/blob/trunk/README.md
Other
32.31k stars 1.48k forks source link

Create a `Generic` object to represent a generic. #4081

Closed zygoloid closed 4 days ago

zygoloid commented 5 days ago

Build a Generic object for generic functions. This object tracks the generic parameters that are in scope for the generic entity. Eventually it will track other information about the generic too.

Add basic SemIR formatting support for generic functions.