mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 14:58:09 +00:00
This is a step towards being able to export methods of parameterized classes. When exporting such a method, the decl context should be a `ClassTemplateSpecializationDecl`. Thread the scope's specific ID down from `MapInstIdToClangDeclOrType` and call `ExportClassSpecificToCpp` to create this context. Also add a `context.TODO` to prevent too much code from being exercised with methods of parameterized classes after getting the parent scope, as that would lead to various test crashes. The user-visible effect of this change is that the somewhat mysterious "TODO: non-class non-namespace name scope" error is replaced with "TODO: support exporting member functions of parameterized classes". --------- Co-authored-by: Geoff Romer <gromer@google.com>