NameUse

enum NameUse : Hashable

How a name expression is being used.

  • The name is used as the callee of an arbitrary function call.

    labels contains the labels of the run-time arguments passed to the callee. mutating is true iff the name is marked for mutation.

    Declaration

    Swift

    case function(labels: [String?], mutating: Bool)
  • The name is used as the callee of a constructor call.

    labels contains the labels of the run-time arguments passed to the callee.

    Declaration

    Swift

    case constructor(labels: [String?])
  • The name is used as the callee of a subscript call.

    labels contains the labels of the run-time arguments passed to the callee.

    Declaration

    Swift

    case `subscript`(labels: [String?])
  • The name is used as an unapplied reference to a declaration.

    Declaration

    Swift

    case unapplied
  • true iff self is .constructor.

    Declaration

    Swift

    var isConstructor: Bool { get }
  • true iff self denotes a name used for calling a mutating function.

    Declaration

    Swift

    var isMutating: Bool { get }
  • Returns the associated labels if self denotes a use as a callee; otherwise returns nil.

    Declaration

    Swift

    var labels: [String?]? { get }