WrappedTypes
class WrappedTypes
Wrapper for sourcery type - used by parser to bundle identified source code types found in source code string
-
Undocumented
Declaration
Swift
internal init(classes: [WrappedClass], structs: [WrappedStruct], enums: [WrappedEnum])
-
Undocumented
Declaration
Swift
convenience init(types: [Type])
-
Undocumented
Declaration
Swift
convenience init(from: Types)
-
Undocumented
See moreDeclaration
Swift
enum CodeType
-
returns the identified type found in source code string As all source files contain only a single type, every
WrappedType
only contains a single kind of source code type.Declaration
Swift
var type: CodeType { get }
-
All known classes
Declaration
Swift
private(set) var classes: [WrappedClass] { get }
-
All known structs
Declaration
Swift
private(set) var structs: [WrappedStruct] { get }
-
All known enums
Declaration
Swift
private(set) var enums: [WrappedEnum] { get }
-
Scans for all nested types and returns the first type found (either class, struct, enum or typealias) Must conform to
Modifiable
protocol Files generated by OpenAPI spec will always contain a single type only.Declaration
Swift
func getModifiable() -> Modifiable?
Return Value
Identified modifiable