types

package
v0.0.0-...-b52216c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CDKind

type CDKind uint8
const (
	// This context descriptor represents a module.
	Module CDKind = 0

	/// This context descriptor represents an extension.
	Extension CDKind = 1

	/// This context descriptor represents an anonymous possibly-generic context
	/// such as a function body.
	Anonymous CDKind = 2

	/// This context descriptor represents a protocol context.
	Protocol CDKind = 3

	/// This context descriptor represents an opaque type alias.
	OpaqueType CDKind = 4

	/// First kind that represents a type of any sort.
	TypeFirst = 16

	/// This context descriptor represents a class.
	Class CDKind = TypeFirst

	/// This context descriptor represents a struct.
	Struct CDKind = TypeFirst + 1

	/// This context descriptor represents an enum.
	Enum CDKind = TypeFirst + 2

	/// Last kind that represents a type of any sort.
	TypeLast = 31
)

func (CDKind) String

func (i CDKind) String() string

type ClassDescriptor

type ClassDescriptor struct {
	TypeDescriptor
	SuperclassType              int32
	MetadataNegativeSizeInWords uint32
	MetadataPositiveSizeInWords uint32
	NumImmediateMembers         uint32
	NumFields                   uint32
	FieldOffsetVectorOffset     uint32 // ??
}

type EnumDescriptor

type EnumDescriptor struct {
	TypeDescriptor
	NumPayloadCasesAndPayloadSizeOffset uint32
	NumEmptyCases                       uint32
}

type StructDescriptor

type StructDescriptor struct {
	TypeDescriptor
	NumFields               uint32
	FieldOffsetVectorOffset uint32
}

type TypeDescFlag

type TypeDescFlag uint32

func (TypeDescFlag) IsGeneric

func (f TypeDescFlag) IsGeneric() bool

func (TypeDescFlag) IsUnique

func (f TypeDescFlag) IsUnique() bool

func (TypeDescFlag) Kind

func (f TypeDescFlag) Kind() CDKind

func (TypeDescFlag) KindSpecificFlags

func (f TypeDescFlag) KindSpecificFlags() uint16

func (TypeDescFlag) String

func (f TypeDescFlag) String() string

func (TypeDescFlag) Version

func (f TypeDescFlag) Version() uint8

type TypeDescriptor

type TypeDescriptor struct {
	Flags           TypeDescFlag
	Parent          int32
	Name            int32
	AccessFunction  int32
	FieldDescriptor int32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL