Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions MacroExamplesPlugin/CustomCodable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public struct CustomCodable: MemberMacro {

let codingKeys: DeclSyntax = """

enum CodingKeys: String, CodingKey {
\(raw: cases.joined(separator: "\n"))
enum CodingKeys: String, CodingKey {\n\(raw: cases.joined(separator: "\n"))
}

"""
Expand Down
2 changes: 1 addition & 1 deletion MacroExamplesPlugin/ObservableMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public struct ObservableMacro: MemberMacro, MemberAttributeMacro {
return []
}

let parentName = identified.identifier
let parentName = identified.identifier.trimmed

let registrar: DeclSyntax =
"""
Expand Down