Skip to content

Commit 30f5656

Browse files
committed
Removed warnings
1 parent 95f8c52 commit 30f5656

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

Sources/ReactBridgeMacros/ReactModule.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,7 @@ extension ReactModule: MemberMacro {
6464
"""
6565
}
6666

67-
static func expansion(
68-
of node: AttributeSyntax,
69-
providingMembersOf declaration: some DeclGroupSyntax,
70-
in context: some MacroExpansionContext)
71-
throws -> [DeclSyntax]
72-
{
67+
static func expansion(of node: AttributeSyntax, providingMembersOf declaration: some DeclGroupSyntax, conformingTo protocols: [TypeSyntax], in context: some MacroExpansionContext) throws -> [DeclSyntax] {
7368
do {
7469
// Error: class
7570
guard let classDecl = declaration.as(ClassDeclSyntax.self) else {

Sources/ReactBridgeMacros/ReactView.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,7 @@ struct ReactView {
3333

3434
extension ReactView: MemberMacro {
3535

36-
static func expansion(
37-
of node: AttributeSyntax,
38-
providingMembersOf declaration: some DeclGroupSyntax,
39-
in context: some MacroExpansionContext)
40-
throws -> [DeclSyntax]
41-
{
36+
static func expansion(of node: AttributeSyntax, providingMembersOf declaration: some DeclGroupSyntax, conformingTo protocols: [TypeSyntax], in context: some MacroExpansionContext) throws -> [DeclSyntax] {
4237
do {
4338
// Error: class
4439
guard let classDecl = declaration.as(ClassDeclSyntax.self) else {

0 commit comments

Comments
 (0)