[CSGen] Record keypath for use across constraint system.

This commit is contained in:
Amritpan Kaur
2023-07-03 14:00:59 -07:00
parent dab7dbfdfd
commit 1d8e7ef2fe
3 changed files with 17 additions and 4 deletions

View File

@@ -3420,6 +3420,11 @@ public:
void recordCallAsFunction(UnresolvedDotExpr *root, ArgumentList *arguments,
ConstraintLocator *locator);
/// Record root, value, and declContext of keypath expression for use across
/// constraint system.
void recordKeyPath(KeyPathExpr *keypath, TypeVariableType *root,
TypeVariableType *value, DeclContext *dc);
/// Walk a closure AST to determine its effects.
///
/// \returns a function's extended info describing the effects, as