Item
Represents an item imported from a module.
struct Item
Represents an item imported from a module.
struct Item
import GRPCCodeGen
struct Dependency
Represents an import: a module or a specific item from a module.
init(item: Item? = nil, module: String, spi: String? = nil, preconcurrency: PreconcurrencyRequirement = .notRequired, accessLevel: CodeGenerator.Config.AccessLevel)
var accessLevel: CodeGenerator.Config.AccessLevel
The access level to be included in imports of this dependency.
var item: Item?
If the dependency is an item, the property’s value is the item representation. If the dependency is a module, this property is nil.
var module: String
The name of the imported module or of the module an item is imported from.
var preconcurrency: PreconcurrencyRequirement
Requirements for the @preconcurrency
attribute.
var spi: String?
The name of the private interface for an @_spi
import.
struct PreconcurrencyRequirement
Describes any requirement for the @preconcurrency
attribute.
protocol Equatable
A type that can be compared for value equality.
init(kind: Kind, name: String)
var kind: Kind
The keyword that specifies the item’s kind (e.g. func
, struct
).
var name: String
The name of the imported item.
struct Kind
Represents the imported item’s kind.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.