-
Notifications
You must be signed in to change notification settings - Fork 439
Add a documentation article for @_spi
and when to use existentials
#1696
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
Conversation
Also remove the `Create SwiftSyntax Release.md` because it describes how to vendor the parser library and we’re no longer doing that.
@swift-ci Please test |
@_spi
@_spi
and when to use existentials
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe usage of double ticks would make sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Updated
91e12ce
to
d4d4a70
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding the detailed document! I have left a few minor comments 🙇♂️
@@ -0,0 +1,10 @@ | |||
# When to use protocols in SwiftSyntax | |||
|
|||
Learn when to use protocols value types like ``ExprSyntax`` over protocols like ``ExprSyntaxProtocol``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel like this line (and the one in the other file) add much beyond the title itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. But docc renders this as the abstract of the article and without this the entire next paragraph becomes the abstract, which looks ugly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good to know, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks Alex!
Sources/SwiftSyntax/Documentation.docc/Contributing/Existentials.md
Outdated
Show resolved
Hide resolved
4407c49
to
4d0d98b
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
Also remove the
Create SwiftSyntax Release.md
because it describes how to vendor the parser library and we’re no longer doing that.