mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Record case label items in the trail
This commit is contained in:
@@ -132,6 +132,7 @@ public:
|
||||
AnyFunctionRef TheRef;
|
||||
ClosureExpr *TheClosure;
|
||||
DeclContext *TheDeclContext;
|
||||
CaseLabelItem *TheItem;
|
||||
};
|
||||
|
||||
Change() : Kind(ChangeKind::AddedTypeVariable), TypeVar(nullptr) { }
|
||||
@@ -220,6 +221,9 @@ public:
|
||||
/// Create a change that recorded a SyntacticElementTarget.
|
||||
static Change RecordedTarget(SyntacticElementTargetKey key);
|
||||
|
||||
/// Create a change that recorded a SyntacticElementTarget.
|
||||
static Change RecordedCaseLabelItemInfo(CaseLabelItem *item);
|
||||
|
||||
/// Undo this change, reverting the constraint graph to the state it
|
||||
/// had prior to this change.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user