mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 16:51:05 +01:00
When a class template specialization is indirectly imported, map the template arguments into the importing File and find the corresponding local class template specialization. This is a short-term fix: eventually we should import the C++ AST from the imported file into the C++ AST for the current file, but we're not ready to do that yet. So far we only support very simple template arguments: just classes and builtin types. Unfortunately we can't just map the C++ template arguments to Carbon types, then import the Carbon types, then map them back, because mapping from C++ template arguments to Carbon types would require a `Check::Context` for the imported code, which we don't have. As this is only a temporary workaround, directly mapping from one C++ AST to another will do for now. Assisted-by: Gemini via Antigravity