Skip to content
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

Make SyntaxArena SPI #2930

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Make SyntaxArena SPI #2930

merged 1 commit into from
Jan 7, 2025

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Jan 2, 2025

(Preparation for #2926)

Mark SyntaxArena and ParsingSyntaxArena with @_spi(RawSyntax).

SyntaxArena and its subclass ParsingSyntaxArena were only meant be used when dealing with RawSyntax which is already a SPI. Although the type itself was public, most initializers were SPI, also there was no way to retrieve it from existing types via public API. So we assume no one was actually using it directly.

Mark `SyntaxArena` and `ParsingSyntaxArena` with `@_spi(RawSyntax)`.

`SyntaxArena` and its subclass `ParsingSyntaxArena` were only meant be
used when dealing with `RawSyntax` which is already a SPI.
Although type type itself was `public`, most initializers were SPI, also
there was no way to retrieve it from existing types via public API. So we
assume no one was actually using it directly.
@rintaro
Copy link
Member Author

rintaro commented Jan 2, 2025

@swift-ci Please test

@rintaro
Copy link
Member Author

rintaro commented Jan 2, 2025

@swift-ci Please test Windows

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

@rintaro rintaro merged commit 0082a7f into swiftlang:main Jan 7, 2025
3 checks passed
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