Skip to content

Rename children that refer to a MemberDeclBlock from members to memberBlock #1524

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 1 commit into from
Apr 15, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Apr 13, 2023

Previously, we frequently had patterns where we did node.members.members, which doesn’t read very nice. node.memberBlock.members is much nicer.

@ahoppen
Copy link
Member Author

ahoppen commented Apr 13, 2023

Copy link
Contributor

@bnbarham bnbarham left a comment

Choose a reason for hiding this comment

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

I definitely prefer memberBlock. Not sure about members -> items, I slightly prefer members I think. But they're both almost synonyms so 🤷

ahoppen added a commit to ahoppen/swift-format that referenced this pull request Apr 13, 2023
ahoppen added a commit to ahoppen/swift-stress-tester that referenced this pull request Apr 13, 2023
ahoppen added a commit to ahoppen/swift that referenced this pull request Apr 13, 2023
@ahoppen ahoppen force-pushed the ahoppen/memberblock branch from 00c7cfb to 575c9f8 Compare April 13, 2023 23:29
@ahoppen ahoppen changed the title Rename children that refer to a MemberDeclBlock from members to memberBlock and MemberDeclBlock.members to items Rename children that refer to a MemberDeclBlock from members to memberBlock Apr 13, 2023
@ahoppen
Copy link
Member Author

ahoppen commented Apr 13, 2023

@ahoppen
Copy link
Member Author

ahoppen commented Apr 13, 2023

…memberBlock`

Previously, we frequently had patterns where we did `node.members.members`, which doesn’t read very nice. `node.memberBlock.members` is much nicer.
@ahoppen ahoppen force-pushed the ahoppen/memberblock branch from 575c9f8 to 5ba5cd3 Compare April 14, 2023 01:35
@ahoppen
Copy link
Member Author

ahoppen commented Apr 14, 2023

@ahoppen
Copy link
Member Author

ahoppen commented Apr 14, 2023

4 similar comments
@kimdv
Copy link
Contributor

kimdv commented Apr 14, 2023

@ahoppen
Copy link
Member Author

ahoppen commented Apr 14, 2023

@kimdv
Copy link
Contributor

kimdv commented Apr 14, 2023

@ahoppen
Copy link
Member Author

ahoppen commented Apr 15, 2023

@ahoppen ahoppen merged commit 4968356 into swiftlang:main Apr 15, 2023
@ahoppen ahoppen deleted the ahoppen/memberblock branch April 15, 2023 15:00
ahoppen added a commit to ahoppen/swift-syntax that referenced this pull request Apr 18, 2023
Rename children that refer to a `MemberDeclBlock` from `members` to `memberBlock`
ahoppen added a commit to ahoppen/swift-syntax that referenced this pull request Apr 18, 2023
Rename children that refer to a `MemberDeclBlock` from `members` to `memberBlock`
ahoppen added a commit to ahoppen/swift that referenced this pull request Apr 18, 2023
ahoppen added a commit to ahoppen/swift-stress-tester that referenced this pull request Apr 18, 2023
ahoppen added a commit to ahoppen/swift-format that referenced this pull request Apr 18, 2023
meg-gupta pushed a commit to meg-gupta/swift that referenced this pull request Apr 18, 2023
ahoppen added a commit to ahoppen/swift-stress-tester that referenced this pull request Apr 20, 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.

3 participants