Skip to content

Commit

Permalink
Update EnumeratorMacroType.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Jul 10, 2024
1 parent 03dc015 commit 85fdbc7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Sources/EnumeratorMacro/EnumeratorMacroType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ extension EnumeratorMacroType: MemberMacro {
}
let rendered = try arguments.as(LabeledExprListSyntax.self)!.compactMap {
$0.expression
}.compactMap { expression in
expression.as(StringLiteralExprSyntax.self)
}.map { stringLiteralExpr in
stringLiteralExpr
.as(StringLiteralExprSyntax.self)?
.segments
.formatted()
.description
Expand Down

0 comments on commit 85fdbc7

Please sign in to comment.