mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 10:00:29 +00:00
Change InstantiateType to be an Action (#2660)
Added an alternative way of Instantiating types (it was previously done using `InstantiateType` method). Created an `Action` called `TypeInstantiationAction` and changed most of the code that directly invokes `InstantiateType` to instead spawn a new `TypeInstantiationAction`. Relates to [#2594 ](https://github.com/carbon-language/carbon-lang/issues/2594)
This commit is contained in:
1 parent
b956d0603f
commit
3f1515af55
4 files changed
+260
-152
No files matched your search
@@ -130,6 +130,7 @@ static auto FinishActionKindFor(Action::Kind kind) -> FinishActionKind {
|
||||
case Action::Kind::ExpressionAction:
|
||||
case Action::Kind::WitnessAction:
|
||||
case Action::Kind::LValAction:
|
||||
case Action::Kind::TypeInstantiationAction:
|
||||
return FinishActionKind::Value;
|
||||
case Action::Kind::StatementAction:
|
||||
case Action::Kind::DeclarationAction:
|
||||
|
||||
Reference in new issue
Block a user