Skip to content
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

Remove @_implementationOnly imports. #33

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Sources/MacroTesting/AssertMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ import SwiftSyntaxMacros
import XCTest

#if canImport(Testing)
// NB: We are importing only the implementation of Testing because that framework is not available
// in Xcode UI test targets.
@_implementationOnly import Testing
import Testing
#endif

/// Asserts that a given Swift source string matches an expected string with all macros expanded.
Expand Down
4 changes: 1 addition & 3 deletions Sources/MacroTesting/Internal/RecordIssue.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import XCTest

#if canImport(Testing)
// NB: We are importing only the implementation of Testing because that framework is not available
// in Xcode UI test targets.
@_implementationOnly import Testing
import Testing
#endif

@_spi(Internals)
Expand Down
4 changes: 1 addition & 3 deletions Sources/MacroTesting/MacrosTestTrait.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
import SnapshotTesting
import SwiftSyntax
import SwiftSyntaxMacros
// NB: We are importing only the implementation of Testing because that framework is not available
// in Xcode UI test targets.
@_implementationOnly import Testing
import Testing

@_spi(Experimental)
extension Trait where Self == _MacrosTestTrait {
Expand Down
Loading