-
Notifications
You must be signed in to change notification settings - Fork 153
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
Updates for package
[SE-0386]
#215
Comments
package
[SE-0386]
package
[SE-0386]package
[SE-0386]
Closed the above bugs and copied their content into this bug, with minor reformatting, because we would do all of this work at the same time. It wouldn't make sense, for example, to update only one section of the reference. @tadbyt How would you like me to credit you in the |
Also, update the Getters and Setters subsection to include package(set). |
Applied the English description of changes from the GitHub issue: apple#215 Co-authored-by: Scott Richmond <127798155+tadbyt@users.noreply.github.com>
Fixes: #215 Fixes: rdar://117171554
Update The Swift Programming Language to match the language changes implemented by SE-0386. Five subsections in the document were identified as being impacted by the implementation of SE-0386.
Guide > Access Control
Modules and Source Files
Change the title to Modules, Source Files and Packages.
Replace the first paragraph with: Swift’s access control model is based on the concepts of modules, and source files and packages.
Add the following two paragraphs to the end of the subsection:
Make the first instance of package in the first of the added paragraphs a hyperlink to
https://developer.apple.com/documentation/xcode/swift-packages
Access Levels
Replace the first paragraph with:
Add the following as the second bullet in the subsequent list:
Append the following to the end of the next bullet: contained within a single module
Access Control Syntax
In the first paragraph, insert package (followed by a comma) between public and internal.
In the list of classes, insert the following after the public class: package class SomePackageClass {}
In the list of constants and variables, insert the following after the public var: package let somePackageConstant = 0
Reference > Lexical Structure
Keywords and Punctuation
In the list of keywords reserved in particular contexts, insert package (followed by a comma) between override and postfix.
Reference > Declarations
Access Control Levels
In the list given after the first paragraph, insert the following between the entries for public and internal:
In the list of access-level-modifiers, insert the following after the entry for internal and internal(set):
rdar://117171554
The text was updated successfully, but these errors were encountered: