File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
Source/CuckooGeneratorFramework Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change 99import Commandant
1010
1111public enum CuckooRuntimeVersion : String {
12- public static let latest : CuckooRuntimeVersion = . v0_3_0
13- public static let all : [ CuckooRuntimeVersion ] = [ . v0_1_0, . v0_3_0]
14-
12+ public static let latest : CuckooRuntimeVersion = . v0_4_0
13+ public static let all : [ CuckooRuntimeVersion ] = [ . v0_1_0, . v0_3_0, . v0_4_0 ]
14+
1515 case v0_1_0 = " 0.1.0 "
1616 case v0_3_0 = " 0.3.0 "
17-
17+ case v0_4_0 = " 0.4.0 "
18+
1819 public var generator : Generator . Type {
1920 switch self {
2021 case . v0_1_0:
2122 return Generator_r1 . self
22- case . v0_3_0:
23+ case . v0_3_0, . v0_4_0 :
2324 return Generator_r2 . self
2425 }
2526 }
26-
27+
2728 public var tokenizer : Tokenizer . Type {
2829 switch self {
29- case . v0_1_0, . v0_3_0:
30+ case . v0_1_0, . v0_3_0, v0_4_0 :
3031 return Tokenizer_r1 . self
3132 }
3233 }
33-
34+
3435 public var fileHeaderHandler : FileHeaderHandler . Type {
3536 switch self {
36- case . v0_1_0, . v0_3_0:
37+ case . v0_1_0, . v0_3_0, v0_4_0 :
3738 return FileHeaderHandler_r1 . self
3839 }
3940 }
@@ -47,8 +48,8 @@ extension CuckooRuntimeVersion: CustomStringConvertible {
4748
4849extension CuckooRuntimeVersion : ArgumentType {
4950 public static let name : String = " Mockery runtime version "
50-
51+
5152 public static func fromString( string: String ) -> CuckooRuntimeVersion ? {
5253 return CuckooRuntimeVersion ( rawValue: string)
5354 }
54- }
55+ }
You can’t perform that action at this time.
0 commit comments