-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathPlugin.swift
More file actions
34 lines (33 loc) · 882 Bytes
/
Plugin.swift
File metadata and controls
34 lines (33 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import SwiftCompilerPlugin
import SwiftSyntaxMacros
/// The compiler plugin that exposes all the macro type defined.
///
/// New macro types should be added to `providingMacros`
/// array.
@main
struct MetaCodablePlugin: CompilerPlugin {
/// All the macros provided by this macro plugin.
///
/// New macro types should be added here.
let providingMacros: [Macro.Type] = [
CodedAt.self,
CodedIn.self,
CodedBy.self,
Default.self,
CodedAs.self,
ContentAt.self,
DecodedAt.self,
EncodedAt.self,
IgnoreCoding.self,
IgnoreDecoding.self,
IgnoreEncoding.self,
Codable.self,
ConformDecodable.self,
ConformEncodable.self,
MemberInit.self,
CodingKeys.self,
IgnoreCodingInitialized.self,
Inherits.self,
UnTagged.self,
]
}