swift icon indicating copy to clipboard operation
swift copied to clipboard

[Parse] Avoid skipping bodies with `#sourceLocation`

Open hamishknight opened this issue 1 year ago • 2 comments

#sourceLocation requires setting and restoring state in the parser, so we cannot skip any bodies containing #sourceLocation tokens. Member skipping was already doing this, extend it to function body skipping too.

hamishknight avatar Jul 29 '24 15:07 hamishknight

@swift-ci please test

hamishknight avatar Jul 29 '24 15:07 hamishknight

@swift-ci please smoke test

hamishknight avatar Jul 30 '24 15:07 hamishknight