Skip to content

[Parser] Handle TopLevelCode case #25694

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 1 commit into from
Jun 24, 2019

Conversation

davidungar
Copy link
Contributor

In order for ASTScope lookup to work, add SourceFile parent case to parseDeclDelayed.

@davidungar
Copy link
Contributor Author

@swift-ci please smoke test

@davidungar
Copy link
Contributor Author

This case comes up in many tests, including IDE/complete_decl_attribute.swift

@davidungar davidungar requested a review from benlangmuir June 23, 2019 23:33
@davidungar
Copy link
Contributor Author

@benlangmuir Ben, I made this change for the ASTScope lookup code I'm working on. The tests fail without it. Does it look OK to you? Thanks!

Copy link
Contributor

@benlangmuir benlangmuir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@davidungar
Copy link
Contributor Author

davidungar commented Jun 24, 2019 via email

@davidungar davidungar merged commit e676a13 into swiftlang:master Jun 24, 2019
@davidungar davidungar deleted the delayed-parse-fix branch September 23, 2019 16:17
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.

2 participants