Skip to content

KeyPathComponentHeader

tevelee edited this page Jul 25, 2026 · 1 revision

KeyPathComponentHeader

The 32-bit header at the start of a Swift key-path component.

public struct KeyPathComponentHeader: Equatable, Sendable 

This decoder intentionally stops at the header. The trailing payload of a component is representation-specific and may contain runtime-private function pointers, substitutions, or captures.

Inheritance

Equatable, Sendable

Initializers

init(bits:)

Creates a decoder for a component header.

public init(bits: UInt32) 

Properties

bits

Raw ABI header bits.

public let bits: UInt32

kind

The component representation, or nil for a future ABI tag.

public var kind: Kind? 

isEndOfReferencePrefix

Whether this component ends a reference prefix.

public var isEndOfReferencePrefix: Bool 

payload

The low 24-bit component payload.

public var payload: UInt32 

storedOffset

The inline byte offset of a stored-property component, if present.

public var storedOffset: UInt32? 

storedOffsetKind

The storage form used by a stored-property component.

public var storedOffsetKind: StoredOffsetKind? 

isStoredPropertyMutable

Whether a stored property is mutable (var) rather than immutable (let).

public var isStoredPropertyMutable: Bool? 

optionalOperation

The optional operation encoded by this component.

public var optionalOperation: OptionalOperation? 

externalSubstitutionCount

The number of substitutions for an external component.

public var externalSubstitutionCount: UInt32? 

computedPropertyKind

The access form used by a computed component.

public var computedPropertyKind: ComputedPropertyKind? 

computedIdentifierKind

The identifier representation used by a computed component.

public var computedIdentifierKind: ComputedIdentifierKind? 

computedIdentifierResolution

How the computed component's identifier was resolved.

public var computedIdentifierResolution: ComputedIdentifierResolution? 

resolvedAbsolute is emitted by modern Swift runtimes for an absolute, rather than relative, resolved identifier.

hasComputedArguments

Whether the computed component carries captured arguments.

public var hasComputedArguments: Bool? 
Types
Protocols
Global Typealiases
Global Variables
Global Functions

Clone this wiki locally