Skip to content

Commit b961d7d

Browse files
committed
Use PartialSyntaxNodeString instead of String
1 parent c8c9cd7 commit b961d7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftSyntaxBuilder/ConvenienceInitializers.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ extension FunctionCallExprSyntax {
173173
// strings, only literals.
174174
extension FunctionParameterSyntax {
175175
public init(
176-
_ source: String,
176+
_ source: PartialSyntaxNodeString,
177177
for subject: Parser.ParameterSubject
178178
) {
179179
self = performParse(
180-
source: Array(source.utf8),
180+
source: source.sourceText,
181181
parse: {
182182
let raw = RawSyntax($0.parseFunctionParameter(for: subject))
183183
return Syntax(raw: raw).cast(FunctionParameterSyntax.self)

0 commit comments

Comments
 (0)