Skip to content

Commit ceca416

Browse files
committed
Fix ss600 warning in tests
Use a newer API.
1 parent 706394b commit ceca416

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/ManagedModelMacrosTests/ManagedModelMacrosTests.swift

+8
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,19 @@ final class ModelMacroTests: XCTestCase {
387387
]
388388
)
389389

390+
#if canImport(SwiftSyntax600)
391+
let explodedFile : Syntax = sourceFile.expand(
392+
macros: macros,
393+
contextGenerator: { _ in context },
394+
indentationWidth: .spaces(2) // what else!
395+
)
396+
#else
390397
let explodedFile : Syntax = sourceFile.expand(
391398
macros: macros,
392399
in: context,
393400
indentationWidth: .spaces(2) // what else!
394401
)
402+
#endif
395403

396404
return explodedFile
397405
}

0 commit comments

Comments
 (0)