Skip to content

Commit 3c46da3

Browse files
committed
Rename expandedSourceexpectedExpandedSource
Hopefully this will avoid confusion using this in the future
1 parent 893e0f9 commit 3c46da3

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
@@ -248,8 +248,8 @@ func assertDiagnostic(
248248
/// - Parameters:
249249
/// - originalSource: The original source code, which is expected to contain
250250
/// macros in various places (e.g., `#stringify(x + y)`).
251-
/// - expandedSource: The source code that we expect to see after performing
252-
/// macro expansion on the original source.
251+
/// - expectedExpandedSource: The source code that we expect to see after
252+
/// performing macro expansion on the original source.
253253
/// - diagnostics: The diagnostics when expanding any macro
254254
/// - macros: The macros that should be expanded, provided as a dictionary
255255
/// mapping macro names (e.g., `"stringify"`) to implementation types
@@ -258,7 +258,7 @@ func assertDiagnostic(
258258
/// - testFileName: The name of the test file name to use.
259259
public func assertMacroExpansion(
260260
_ originalSource: String,
261-
expandedSource: String,
261+
expandedSource expectedExpandedSource: String,
262262
diagnostics: [DiagnosticSpec] = [],
263263
macros: [String: Macro.Type],
264264
testModuleName: String = "TestModule",
@@ -294,7 +294,7 @@ public func assertMacroExpansion(
294294
let formattedSourceFile = expandedSourceFile.formatted(using: BasicFormat(indentationWidth: indentationWidth))
295295
assertStringsEqualWithDiff(
296296
formattedSourceFile.description.trimmingCharacters(in: .newlines),
297-
expandedSource.trimmingCharacters(in: .newlines),
297+
expectedExpandedSource.trimmingCharacters(in: .newlines),
298298
additionalInfo: """
299299
Actual expanded source:
300300
\(formattedSourceFile)

0 commit comments

Comments
 (0)