Import

@objcMembers
public class Import : NSObject, SourceryModelWithoutDescription, Diffable
extension Import: NSCoding

Defines import type

  • Import kind, e.g. class, struct in import class Module.ClassName

    Declaration

    Swift

    public var kind: String?
  • Import path

    Declaration

    Swift

    public var path: String
  • Full import value e.g. import struct Module.StructName

    Declaration

    Swift

    public override var description: String { get }
  • Returns module name from a import, e.g. if you had import struct Module.Submodule.Struct it will return Module.Submodule

    Declaration

    Swift

    public var moduleName: String { get }
  • Declaration

    Swift

    public func diffAgainst(_ object: Any?) -> DiffableResult