Skip to content

Change effectiveAccessLevel of package decls from public to package. #70897

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 3 commits into from
Jan 23, 2024

Conversation

elsh
Copy link
Contributor

@elsh elsh commented Jan 12, 2024

Currently decls defined with package access level have a different access level for optimization: public. It requires an extra check for the actual access level that was declared when determining serialization since the behavior should be different.

This PR sets its effective access level to package as originally defined, updates call sites to make appropriate acces level comparisons, and removes package specific checks.

Resolves rdar://121470986

@elsh elsh requested review from xymus, beccadax, CodaFi, artemcm, tshortli and nkcsgexi and removed request for slavapestov January 12, 2024 22:55
@elsh
Copy link
Contributor Author

elsh commented Jan 12, 2024

@swift-ci smoke test

@elsh
Copy link
Contributor Author

elsh commented Jan 12, 2024

Pending #70141

@nkcsgexi
Copy link
Contributor

I see no test cases added for this change. Is that because this is a NFC refactoring for the next PR?

@elsh
Copy link
Contributor Author

elsh commented Jan 12, 2024

I see no test cases added for this change. Is that because this is a NFC refactoring for the next PR?

Updates to existing tests are added.

@elsh
Copy link
Contributor Author

elsh commented Jan 12, 2024

#70141
@swift-ci smoke test

@elsh elsh changed the title Change effectiveAccessLevel of package decls from public to package. [NFC] Change effectiveAccessLevel of package decls from public to package. Jan 12, 2024
@elsh
Copy link
Contributor Author

elsh commented Jan 23, 2024

@swift-ci smoke test

@elsh
Copy link
Contributor Author

elsh commented Jan 23, 2024

@swift-ci smoke test

@elsh elsh changed the title [NFC] Change effectiveAccessLevel of package decls from public to package. Change effectiveAccessLevel of package decls from public to package. Jan 23, 2024
elsh added 3 commits January 23, 2024 11:02
access level for optimization: `public`. It requires an extra check for
the actual access level that was declared when determining serialization
since the behavior should be different.

This PR sets its effective access level to `package` as originally defined,
updates call sites to make appropriate acces level comparisons, and removes
`package` specific checks.
@elsh
Copy link
Contributor Author

elsh commented Jan 23, 2024

@swift-ci smoke test

@elsh elsh merged commit 0e8ffef into main Jan 23, 2024
@elsh elsh deleted the es-pkg-fx branch January 23, 2024 22:35
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