mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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.
12 KiB
12 KiB