Skip to content

Swift: Extract semantics and accessor kinds #9274

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

Conversation

MathiasVP
Copy link
Contributor

@MathiasVP MathiasVP commented May 23, 2022

This is needed for an upcoming PR on CFG for property accesses for Swift.

The terminology is borrowed directly from the Swift AST: https://github.com/apple/swift/blob/main/include/swift/AST/Expr.h#L111

I suggest commit-by-commit reviewing:

@MathiasVP MathiasVP requested a review from a team as a code owner May 23, 2022 16:43
@github-actions github-actions bot added the Swift label May 23, 2022
@MathiasVP MathiasVP added the no-change-note-required This PR does not need a change note label May 23, 2022
@MathiasVP MathiasVP force-pushed the swift-extract-semantics-and-accessor-kinds branch 2 times, most recently from 6bdbcc8 to 2d3fbc1 Compare May 23, 2022 20:36
@MathiasVP MathiasVP force-pushed the swift-extract-semantics-and-accessor-kinds branch from 2d3fbc1 to a065907 Compare May 24, 2022 08:00
| expressions.swift:137:3:137:7 | SubscriptExpr | OrdinarySemantics |
| expressions.swift:138:10:138:10 | DeclRefExpr | OrdinarySemantics |
| expressions.swift:138:10:138:17 | SubscriptExpr | OrdinarySemantics |
| file://:0:0:0:0 | DeclRefExpr | OrdinarySemantics |
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume these are coming from the stdlib. We learned that the stdlib is different depending on the OS, so the tests become platform-dependent.

I'd suggest we filter out these entries to make the tests deterministic no matter if we run them on Linux or macOS.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, right. I'll filter those out. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 21641eb.

@MathiasVP MathiasVP merged commit 7752a38 into github:main May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-change-note-required This PR does not need a change note Swift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants