Skip to content

Conversation

@hamishknight
Copy link
Contributor

Update for swiftlang/swift-syntax#2041 such that experimental features can be enabled in SwiftSyntax.

@hamishknight hamishknight changed the title [ASTGen] Allow querying of enabled features [ASTGen] Allow querying of experimental features Aug 9, 2023
For now this is using C interop, we ought to be
using C++ interop, but that's a much bigger
change.
@hamishknight
Copy link
Contributor Author

swiftlang/swift-syntax#2041

@swift-ci please test

Comment on lines +33 to +37
func mapFeature(_ bridged: BridgedFeature, to feature: Self) {
if ASTContext_langOptsHasFeature(context, bridged) {
insert(feature)
}
}
Copy link
Member

Choose a reason for hiding this comment

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

I assume this is a stub to be used once you introduce features that need to be mapped to SwiftParser, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah

@hamishknight hamishknight merged commit 821d374 into swiftlang:main Aug 10, 2023
@hamishknight hamishknight deleted the experimental branch August 10, 2023 09:53
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