File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -458,6 +458,7 @@ class ConstraintGraph {
458
458
// / Each change can be undone (once, and in reverse order) by calling the
459
459
// / undo() method.
460
460
class Change {
461
+ public:
461
462
// / The kind of change.
462
463
ChangeKind Kind;
463
464
@@ -482,7 +483,6 @@ class ConstraintGraph {
482
483
} Binding;
483
484
};
484
485
485
- public:
486
486
Change () : Kind(ChangeKind::AddedTypeVariable), TypeVar(nullptr ) { }
487
487
488
488
// / Create a change that added a type variable.
Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ class ConstraintGraphScope {
50
50
public:
51
51
explicit ConstraintGraphScope (ConstraintGraph &CG);
52
52
~ConstraintGraphScope ();
53
+
54
+ // / Get number of changes recorded at the start of the current active scope.
55
+ unsigned getStartIdx () {
56
+ return NumChanges;
57
+ }
53
58
};
54
59
55
60
} // end namespace constraints
You can’t perform that action at this time.
0 commit comments