Skip to content

Commit 0e08431

Browse files
committed
Rename expandedSourceexpectedExpandedSource
Hopefully this will avoid confusion using this in the future
1 parent e2ad726 commit 0e08431

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/SwiftSyntaxMacrosTestSupport/Assertions.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ func assertDiagnostic<T: SyntaxProtocol>(
255255
/// - Parameters:
256256
/// - originalSource: The original source code, which is expected to contain
257257
/// macros in various places (e.g., `#stringify(x + y)`).
258-
/// - expandedSource: The source code that we expect to see after performing
259-
/// macro expansion on the original source.
258+
/// - expectedExpandedSource: The source code that we expect to see after
259+
/// performing macro expansion on the original source.
260260
/// - diagnostics:
261261
/// - macros: The macros that should be expanded, provided as a dictionary
262262
/// mapping macro names (e.g., `"stringify"`) to implementation types
@@ -265,7 +265,7 @@ func assertDiagnostic<T: SyntaxProtocol>(
265265
/// - testFileName: The name of the test file name to use.
266266
public func assertMacroExpansion(
267267
_ originalSource: String,
268-
expandedSource: String,
268+
expandedSource expectedExpandedSource: String,
269269
diagnostics: [DiagnosticSpec] = [],
270270
macros: [String: Macro.Type],
271271
testModuleName: String = "TestModule",
@@ -301,7 +301,7 @@ public func assertMacroExpansion(
301301
let formattedSourceFile = expandedSourceFile.formatted(using: BasicFormat(indentationWidth: indentationWidth))
302302
assertStringsEqualWithDiff(
303303
formattedSourceFile.description.trimmingCharacters(in: .newlines),
304-
expandedSource.trimmingCharacters(in: .newlines),
304+
expectedExpandedSource.trimmingCharacters(in: .newlines),
305305
additionalInfo: """
306306
Actual expanded source:
307307
\(formattedSourceFile)

0 commit comments

Comments
 (0)