-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[ASTGen] ObjC improvements #80150
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
[ASTGen] ObjC improvements #80150
Conversation
@swift-ci Please smoke test |
@swift-ci Please smoke test |
@swift-ci Please smoke test macOS |
* Generate `#selector(...)` expression * Generate `#keyPath(...)` expression * Implicit `@objc` attribute for `@_objcImplementation` attribute
@swift-ci Please smoke test |
@@ -194,11 +194,98 @@ extension ASTGenVisitor { | |||
) | |||
} | |||
|
|||
func generateObjCSelectorExpr(freestandingMacroExpansion node: some FreestandingMacroExpansionSyntax) -> BridgedObjCSelectorExpr { | |||
fatalError("unimplemented (objc selector)") | |||
func generateObjCSelectorExpr(freestandingMacroExpansion node: some FreestandingMacroExpansionSyntax) -> BridgedExpr { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we also need to diagnose the presence of trailing closure + generic arguments?
} | ||
|
||
func generateObjCKeyPathExpr(freestandingMacroExpansion node: some FreestandingMacroExpansionSyntax) -> BridgedKeyPathExpr { | ||
fatalError("unimplemented (objc keypath)") | ||
func generateObjCKeyPathExpr(freestandingMacroExpansion node: some FreestandingMacroExpansionSyntax) -> BridgedExpr { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
@swift-ci Please smoke test |
swiftlang/swift-testing#1033 |
1 similar comment
swiftlang/swift-testing#1033 |
@swift-ci Please smoke test |
#selector(...)
expression#keyPath(...)
expression@objc
attribute for@_objcImplementation
attribute