Skip to content

Commit

Permalink
Fix spacing after explicit type tuple wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
dafurman committed Oct 28, 2023
1 parent 56e8399 commit 0eb8596
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct VariablesImplementationFactory {
type: ImplicitlyUnwrappedOptionalTypeSyntax(
wrappedType: TupleTypeSyntax(
elements: TupleTypeElementListSyntax {
if let type = binding.typeAnnotation?.type {
if let type = binding.typeAnnotation?.type.trimmed {
TupleTypeElementSyntax(type: type)
}
// Consider throwing diagnostic warning/error here
Expand Down
4 changes: 2 additions & 2 deletions Tests/SpyableMacroTests/Factories/UT_SpyFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ final class UT_SpyFactory: XCTestCase {
underlyingData = newValue
}
}
var underlyingData: (Data )!
var underlyingData: (Data)!
}
"""
)
Expand Down Expand Up @@ -283,7 +283,7 @@ final class UT_SpyFactory: XCTestCase {
underlyingCompletion = newValue
}
}
var underlyingCompletion: (() -> Void )!
var underlyingCompletion: (() -> Void)!
}
"""
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class UT_VariablesImplementationFactory: XCTestCase {
underlyingPoint = newValue
}
}
var underlyingPoint: ((x: Int, y: Int?, (Int, Int)) )!
var underlyingPoint: ((x: Int, y: Int?, (Int, Int)))!
"""
)
}
Expand Down Expand Up @@ -65,7 +65,7 @@ final class UT_VariablesImplementationFactory: XCTestCase {
underlyingCompletion = newValue
}
}
var underlyingCompletion: (() -> Void )!
var underlyingCompletion: (() -> Void)!
"""
)
}
Expand Down
6 changes: 3 additions & 3 deletions Tests/SpyableMacroTests/Macro/UT_SpyableMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ final class UT_SpyableMacro: XCTestCase {
underlyingName = newValue
}
}
var underlyingName: (String )!
var underlyingName: (String)!
var anyProtocol: any Codable {
get {
underlyingAnyProtocol
Expand All @@ -61,7 +61,7 @@ final class UT_SpyableMacro: XCTestCase {
underlyingAnyProtocol = newValue
}
}
var underlyingAnyProtocol: (any Codable )!
var underlyingAnyProtocol: (any Codable)!
var secondName: String?
var added: () -> Void {
get {
Expand All @@ -71,7 +71,7 @@ final class UT_SpyableMacro: XCTestCase {
underlyingAdded = newValue
}
}
var underlyingAdded: (() -> Void )!
var underlyingAdded: (() -> Void)!
var removed: (() -> Void)?
var initializeNameSecondNameCallsCount = 0
var initializeNameSecondNameCalled: Bool {
Expand Down

0 comments on commit 0eb8596

Please sign in to comment.