Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct { TypeName string MangledName string SuperClass string Kind string Records []Record Offset int64 Descriptor FieldDescriptor }
func (Field) IsProtocol ¶
type FieldDescriptor ¶
type Kind ¶
type Kind uint16
const ( // Swift nominal types. Struct Kind = iota Class Enum // Fixed-size multi-payload enums have a special descriptor format that // encodes spare bits. // // FIXME: Actually implement this. For now, a descriptor with this kind // just means we also have a builtin descriptor from which we get the // size and alignment. MultiPayloadEnum // A Swift opaque protocol. There are no fields, just a record for the // type itself. Protocol // A Swift class-bound protocol. ClassProtocol // An Objective-C protocol, which may be imported or defined in Swift. ObjCProtocol // An Objective-C class, which may be imported or defined in Swift. // In the former case, field type metadata is not emitted, and // must be obtained from the Objective-C runtime. ObjCClass )
type RecordFlags ¶
type RecordFlags uint32
const ( // IsIndirectCase is this an indirect enum case? IsIndirectCase RecordFlags = 0x1 // IsVar is this a mutable `var` property? IsVar RecordFlags = 0x2 )
func (RecordFlags) String ¶
func (i RecordFlags) String() string
type RecordT ¶
type RecordT struct { Flags RecordFlags MangledTypeName int32 FieldName int32 }
Click to show internal directories.
Click to hide internal directories.