@@ -62,11 +62,11 @@ private extension TriviaPiece {
62
62
let ( label, value) = Mirror ( reflecting: self ) . children. first!
63
63
switch value {
64
64
case let value as String :
65
- return FunctionCallExpr ( calledExpression : MemberAccessExpr ( name : label!) ) {
65
+ return FunctionCallExpr ( callee : " . \( label!) " ) {
66
66
TupleExprElement ( expression: StringLiteralExpr ( content: value) )
67
67
}
68
68
case let value as Int :
69
- return FunctionCallExpr ( calledExpression : MemberAccessExpr ( name : label!) ) {
69
+ return FunctionCallExpr ( callee : " . \( label!) " ) {
70
70
TupleExprElement ( expression: IntegerLiteralExpr ( value) )
71
71
}
72
72
default :
@@ -106,7 +106,7 @@ extension SyntaxProtocol {
106
106
private var debugInitCallExpr : ExprSyntaxProtocol {
107
107
let mirror = Mirror ( reflecting: self )
108
108
if self . isCollection {
109
- return FunctionCallExpr ( calledExpression : IdentifierExpr ( String ( " \( type ( of: self ) ) " ) ) ) {
109
+ return FunctionCallExpr ( callee : " \( type ( of: self ) ) " ) {
110
110
TupleExprElement (
111
111
expression: ArrayExpr ( ) {
112
112
for child in mirror. children {
@@ -131,7 +131,7 @@ extension SyntaxProtocol {
131
131
tokenInitializerName = String ( tokenKindStr [ ..< tokenKindStr. firstIndex ( of: " ( " ) !] )
132
132
requiresExplicitText = true
133
133
}
134
- return FunctionCallExpr ( calledExpression : MemberAccessExpr ( name : tokenInitializerName) ) {
134
+ return FunctionCallExpr ( callee : " . \( tokenInitializerName) " ) {
135
135
if requiresExplicitText {
136
136
TupleExprElement (
137
137
expression: StringLiteralExpr ( content: token. text)
@@ -160,7 +160,7 @@ extension SyntaxProtocol {
160
160
}
161
161
}
162
162
} else {
163
- return FunctionCallExpr ( calledExpression : IdentifierExpr ( String ( " \( type ( of: self ) ) " ) ) ) {
163
+ return FunctionCallExpr ( callee : " \( type ( of: self ) ) " ) {
164
164
for child in mirror. children {
165
165
let label = child. label!
166
166
let value = child. value as! SyntaxProtocol ?
0 commit comments