Skip to content

Add documentation for syntax nodes and their children #1630

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

whiteio
Copy link
Contributor

@whiteio whiteio commented May 2, 2023

As part of #1528, documentation needs added to some syntax nodes. This PR adds documentation to the following syntax nodes and their children:

  • AssociatedtypeDeclSyntax
  • ClassDeclSyntax
  • ImportDeclSyntax
  • IsExprSyntax
  • ProtocolDeclSyntax

@whiteio whiteio requested a review from ahoppen as a code owner May 2, 2023 21:38
Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

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

Thanks a lot. That’s so much better. I have a few suggestions to add illustrative examples, mostly to explain the difference between attributes and modifiers. My thinking is that for many developers using the library, the raw concept of e.g. private is clear and those help map keywords they know to the terms used within SwiftSyntax. If you could apply those, that would be great!

Adds documentation for the following syntax nodes:
* AssociatedtypeDeclSyntax
* ClassDeclSyntax
* ImportDeclSyntax
* IsExprSyntax
* ProtocolDeclSyntax
@whiteio whiteio force-pushed the whiteio/add-syntax-node-documentation branch from a80c6a9 to f33f43a Compare May 3, 2023 17:15
@whiteio
Copy link
Contributor Author

whiteio commented May 3, 2023

@ahoppen Thanks for the quick feedback! I've added in your suggestions.

Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

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

Thanks for writing the documentation and making SwiftSyntax more approachable for newcomers.

@ahoppen
Copy link
Member

ahoppen commented May 3, 2023

@swift-ci Please test

@ahoppen ahoppen enabled auto-merge May 3, 2023 22:55
@ahoppen ahoppen merged commit 9a4c5e4 into swiftlang:main May 4, 2023
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.

2 participants