Skip to content

Delay parsing more often #26991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 3, 2019

Conversation

DougGregor
Copy link
Member

Simplify the logic around delayed parsing/skipping of function bodies and allow delaying function bodies a little bit more.

Nested function bodies can be delayed, then parsed when they are
needed.
DelayedParsingCallbacks only had one implementation, for code
completion, which is only used to determine which bodies to skip and
which to delay. Inline that logic into the parser's delay logic and
remove DelayedParsingCallbacks entirely.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

@swift-ci please test source compatibility

@DougGregor
Copy link
Member Author

@swift-ci please smoke test with apple/swift-lldb#1951

@DougGregor
Copy link
Member Author

@swift-ci please smoke test with pull request apple/swift-lldb#1951

@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

1 similar comment
@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 42fdacc into swiftlang:master Sep 3, 2019
@DougGregor DougGregor deleted the delay-parsing-more-often branch September 3, 2019 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants