NamedMetadata

public class NamedMetadata

A NamedMetadata object represents a module-level metadata value identified by a user-provided name. Named metadata is generated lazily when operands are attached.

  • The module with which this named metadata is associated.

    Declaration

    Swift

    public let module: Module
  • The name associated with this named metadata.

    Declaration

    Swift

    public let name: String
  • Computes the operands of a named metadata node.

    Declaration

    Swift

    public var operands: [Metadata] { get }
  • Appends a metadata node as an operand.

    Declaration

    Swift

    public func addOperand(_ op: Metadata)