Skip to content

Commit f37d4de

Browse files
authored
Merge pull request #2860 from ahoppen/fix-warnings-in-tests
Fix warnings in tests
2 parents d242664 + da18e4c commit f37d4de

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Tests/SwiftSyntaxMacroExpansionTest/MemberMacroTests.swift

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ fileprivate struct NoOpMemberMacro: MemberMacro {
2929
static func expansion(
3030
of node: AttributeSyntax,
3131
providingMembersOf declaration: some DeclGroupSyntax,
32+
conformingTo protocols: [TypeSyntax],
3233
in context: some MacroExpansionContext
3334
) throws -> [DeclSyntax] {
3435
return []
@@ -43,6 +44,7 @@ final class MemberMacroTests: XCTestCase {
4344
static func expansion(
4445
of node: AttributeSyntax,
4546
providingMembersOf declaration: some DeclGroupSyntax,
47+
conformingTo protocols: [TypeSyntax],
4648
in context: some MacroExpansionContext
4749
) throws -> [DeclSyntax] {
4850
guard case .argumentList(let arguments) = node.arguments else {
@@ -88,6 +90,7 @@ final class MemberMacroTests: XCTestCase {
8890
static func expansion(
8991
of node: AttributeSyntax,
9092
providingMembersOf decl: some DeclGroupSyntax,
93+
conformingTo protocols: [TypeSyntax],
9194
in context: some MacroExpansionContext
9295
) throws -> [DeclSyntax] {
9396
return ["var _storage: Storage<Self>"]
@@ -179,6 +182,7 @@ final class MemberMacroTests: XCTestCase {
179182
static func expansion(
180183
of node: AttributeSyntax,
181184
providingMembersOf declaration: some DeclGroupSyntax,
185+
conformingTo protocols: [TypeSyntax],
182186
in context: some MacroExpansionContext
183187
) throws -> [DeclSyntax] {
184188
guard case .argumentList(let arguments) = node.arguments, let argument = arguments.first?.expression else {
@@ -227,6 +231,7 @@ final class MemberMacroTests: XCTestCase {
227231
static func expansion(
228232
of node: AttributeSyntax,
229233
providingMembersOf declaration: some DeclGroupSyntax,
234+
conformingTo protocols: [TypeSyntax],
230235
in context: some MacroExpansionContext
231236
) throws -> [DeclSyntax] {
232237
guard case .argumentList(let arguments) = node.arguments, let argument = arguments.first?.expression else {

Tests/SwiftSyntaxMacroExpansionTest/MultiRoleMacroTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ final class MultiRoleMacroTests: XCTestCase {
126126
static func expansion(
127127
of node: AttributeSyntax,
128128
providingMembersOf declaration: some DeclGroupSyntax,
129+
conformingTo protocols: [TypeSyntax],
129130
in context: some MacroExpansionContext
130131
) throws -> [DeclSyntax] {
131132
return ["var _storage: Wrapper<Self>"]

0 commit comments

Comments
 (0)