Import

@objcMembers public class Import: NSObject, SourceryModelWithoutDescription

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
  • 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