Skip to content

MethodDescriptor_Flags

tevelee edited this page Jul 25, 2026 · 2 revisions

MethodDescriptor.Flags

Flags that describe a method descriptor.

public struct Flags 

Properties

bits

Flags as represented in bits.

public let bits: UInt32

kind

The kind of method this is.

public var kind: Kind 

isInstance

Whether or not this method is an instance method.

public var isInstance: Bool 

isDynamic

Whether or not this method is dynamic.

public var isDynamic: Bool 

isAsync

Whether this method is async.

public var isAsync: Bool 

For coroutine accessors, the same ABI bit indicates a callee-allocated coroutine context instead. Use isCalleeAllocatedCoroutine for that case.

isCoroutine

Whether this descriptor describes a read or modify coroutine.

public var isCoroutine: Bool 

isCalleeAllocatedCoroutine

Whether this coroutine has a callee-allocated context.

public var isCalleeAllocatedCoroutine: Bool 

isData

Whether the ABI's async bit carries data for this descriptor.

public var isData: Bool 

extraDiscriminator

The discriminator used by runtime features that extend a method descriptor without changing its stable leading layout.

public var extraDiscriminator: UInt16 
Types
Protocols
Global Typealiases
Global Variables
Global Functions

Clone this wiki locally