Skip to content

Make SyntaxKind internal #80

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
Feb 12, 2019
Merged

Conversation

akyrtzi
Copy link
Contributor

@akyrtzi akyrtzi commented Feb 11, 2019

SyntaxKind was made public in order to provide a visitation check for clients. Since the visitation check has been removed there's no need for SyntaxKind to be public.
Additional changes:

  • Make SyntaxKind have CSyntaxKind as raw type. Avoids having to convert between them.
  • Remove protocol IncrementalParseLookup. It can't be public since SyntaxKind is internal, and it's not much use to external clients anyway.
  • Rename IncrementalEditTransition -> IncrementalParseTransition.

`SyntaxKind` was made public in order to provide a visitation check for clients. Since the visitation check has been removed there's no need for `SyntaxKind` to be public.
Additional changes:

* Make `SyntaxKind` have CSyntaxKind as raw type. Avoids having to convert between them.
* Remove protocol `IncrementalParseLookup`. It can't be public since `SyntaxKind` is internal, and it's not much use to external clients anyway.
* Rename `IncrementalEditTransition` -> `IncrementalParseTransition`.
@akyrtzi
Copy link
Contributor Author

akyrtzi commented Feb 11, 2019

@swift-ci Please test

akyrtzi added a commit to akyrtzi/swift-stress-tester that referenced this pull request Feb 12, 2019
@akyrtzi akyrtzi merged commit a12f46d into swiftlang:master Feb 12, 2019
@akyrtzi akyrtzi deleted the syntaxkind-to-internal branch February 12, 2019 01:49
adevress pushed a commit to adevress/swift-syntax that referenced this pull request Jan 14, 2024
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