Skip to content

Conversation

bnbarham
Copy link
Contributor

A single map of arguments allows an argument to be added to an incorrect
node, eg. when the parent node isn't handled but the argument is mapped.
Use a stack of (parent, mappings) instead and check that the parent
matches to ensure this cannot happen.

@bnbarham
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@hamishknight hamishknight left a comment

Choose a reason for hiding this comment

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

Thanks!

@swift-ci
Copy link
Contributor

swift-ci commented Dec 1, 2021

Build failed
Swift Test Linux Platform
Git Sha - b549b52dc34e18c0ca9bd0e85ab52c0d7c2561c4

@swift-ci
Copy link
Contributor

swift-ci commented Dec 1, 2021

Build failed
Swift Test OS X Platform
Git Sha - b549b52dc34e18c0ca9bd0e85ab52c0d7c2561c4

A single map of arguments allows an argument to be added to an incorrect
node, eg. when the parent node isn't handled but the argument is mapped.
Use a stack of (parent, mappings) instead and check that the parent
matches to ensure this cannot happen.
@bnbarham
Copy link
Contributor Author

bnbarham commented Dec 1, 2021

@swift-ci please test

@bnbarham bnbarham merged commit 7871205 into swiftlang:main Dec 1, 2021
@bnbarham bnbarham deleted the structure-args branch December 1, 2021 12:07
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.

3 participants