swift
0fa84c14 - ASTScope: Remove the ExpandASTScopeRequest

Commit
5 years ago
ASTScope: Remove the ExpandASTScopeRequest This doesn't really fit the request evaluator model since the result of evaluating the request is the new insertion point, but we don't have a way to get the insertion point of an already-expanded scope. Instead, let's change the callers of the now-removed expandAndBeCurrentDetectingRecursion() to instead call expandAndBeCurrent(), while checking first if the scope was already expanded. Also, set the expanded flag before calling expandSpecifically() from inside expandAndBeCurrent(), to ensure that re-entrant calls to expandAndBeCurrent() are flagged by the existing assertion there. Finally, replace a couple of existing counters, and the now-gone request counter with a single ASTScopeExpansions counter to track expansions.
Author
Committer
Parents
Loading