Skip to content

[NameLookup ASTScope] Factor ASTScope ordering #28039

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 2 commits into from
Nov 3, 2019

Conversation

davidungar
Copy link
Contributor

ASTScopes must be searched in source order, and when creating them, must be created in source-order. But what is the ordering for a SourceRange? It must be consistent. This PR factors these uses of ordering, so that there is one place, which chooses the ordering of the end locations. It may also fix the problem for Windows, that isNotAfter was not a total order.

@davidungar
Copy link
Contributor Author

@swift-ci plese test

@davidungar davidungar force-pushed the factor-ASTScope-ordering branch from 573c718 to 094a5f8 Compare November 2, 2019 23:16
@davidungar
Copy link
Contributor Author

@swift-ci plese test

@davidungar davidungar force-pushed the factor-ASTScope-ordering branch from 094a5f8 to f162a84 Compare November 3, 2019 03:44
@davidungar
Copy link
Contributor Author

@swift-ci please test

@davidungar
Copy link
Contributor Author

@swift-ci please smoke test Linux platform

@davidungar davidungar merged commit b89b58c into swiftlang:master Nov 3, 2019
@davidungar
Copy link
Contributor Author

@swift-ci please test windows platform

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.

1 participant