File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/SwiftSyntaxBuilder Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -96,15 +96,15 @@ extension FunctionCallExpr {
96
96
/// instead of having to wrap them in a `TupleExprElementList`.
97
97
/// The presence of the parenthesis will be inferred based on the presence of arguments and the trailing closure.
98
98
public init (
99
- calledExpression: ExprSyntaxProtocol ,
99
+ calledExpression: String ,
100
100
trailingClosure: ClosureExprSyntax ? = nil ,
101
101
additionalTrailingClosures: MultipleTrailingClosureElementList ? = nil ,
102
102
@TupleExprElementListBuilder argumentList: ( ) -> TupleExprElementList = { [ ] }
103
103
) {
104
104
let argumentList = argumentList ( )
105
105
let shouldOmitParens = argumentList. isEmpty && trailingClosure != nil
106
106
self . init (
107
- calledExpression: calledExpression,
107
+ calledExpression: Expr ( calledExpression) ,
108
108
leftParen: shouldOmitParens ? nil : . leftParen,
109
109
argumentList: argumentList,
110
110
rightParen: shouldOmitParens ? nil : . rightParen,
You can’t perform that action at this time.
0 commit comments