Skip to content

Minor internal API improvements #255

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 2 commits into from
Jan 21, 2021
Merged

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jan 20, 2021

Two minor internal API improvements:

  1. Remove advancedToEndOfChildren
    These methods are not used anywhere and are potentially incorrect (indexInParent should probably be initialized with raw.numberOfChildren - 1). Remove the until we really need them
  2. Rename advancedBySibling/reversedBySibling to advancedBy/reversedBy
    We are not actually advancing by a sibling but just by a node, simplify the method name to reflect this.

These methods are not used anywhere and are potentially incorrect
(indexInParent should probably be raw.numberOfChildren - 1).

Remove the until we really need them
We are not actually advancing by a sibling but just by a node, simplify
the method name to reflect this.
@ahoppen ahoppen requested a review from akyrtzi January 20, 2021 15:08
@ahoppen
Copy link
Member Author

ahoppen commented Jan 20, 2021

@swift-ci Please test

@ahoppen ahoppen merged commit d8aa974 into swiftlang:main Jan 21, 2021
@ahoppen ahoppen deleted the api-improvals branch January 14, 2023 08:21
adevress pushed a commit to adevress/swift-syntax that referenced this pull request Jan 14, 2024
Fix some tests that are broken against the latest toolchains.
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