swift

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: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	/// The name of the standard library, which is a reserved module name.
	STDLIB_NAME = "Swift"
	/// The name of the Onone support library, which is a reserved module name.
	SWIFT_ONONE_SUPPORT = "SwiftOnoneSupport"
	/// The name of the SwiftShims module, which contains private stdlib decls.
	SWIFT_SHIMS_NAME = "SwiftShims"
	/// The name of the Builtin module, which contains Builtin functions.
	BUILTIN_NAME = "Builtin"
	/// The name of the clang imported header module.
	CLANG_HEADER_MODULE_NAME = "__ObjC"
	/// The prefix of module names used by LLDB to capture Swift expressions
	LLDB_EXPRESSIONS_MODULE_NAME_PREFIX = "__lldb_expr_"

	/// The name of the fake module used to hold imported Objective-C things.
	MANGLING_MODULE_OBJC = "__C"
	/// The name of the fake module used to hold synthesized ClangImporter things.
	MANGLING_MODULE_CLANG_IMPORTER = "__C_Synthesized"

	/// The name prefix for C++ template instantiation imported as a Swift struct.
	CXX_TEMPLATE_INST_PREFIX = "__CxxTemplateInst"

	SEMANTICS_PROGRAMTERMINATION_POINT = "programtermination_point"

	/// The name of the Builtin type prefix
	BUILTIN_TYPE_NAME_PREFIX = "Builtin."
)
View Source
const (
	/// The name of the Builtin type for Int
	BUILTIN_TYPE_NAME_INT = "Builtin.Int"
	/// The name of the Builtin type for Int8
	BUILTIN_TYPE_NAME_INT8 = "Builtin.Int8"
	/// The name of the Builtin type for Int16
	BUILTIN_TYPE_NAME_INT16 = "Builtin.Int16"
	/// The name of the Builtin type for Int32
	BUILTIN_TYPE_NAME_INT32 = "Builtin.Int32"
	/// The name of the Builtin type for Int64
	BUILTIN_TYPE_NAME_INT64 = "Builtin.Int64"
	/// The name of the Builtin type for Int128
	BUILTIN_TYPE_NAME_INT128 = "Builtin.Int128"
	/// The name of the Builtin type for Int256
	BUILTIN_TYPE_NAME_INT256 = "Builtin.Int256"
	/// The name of the Builtin type for Int512
	BUILTIN_TYPE_NAME_INT512 = "Builtin.Int512"
	/// The name of the Builtin type for IntLiteral
	BUILTIN_TYPE_NAME_INTLITERAL = "Builtin.IntLiteral"
	/// The name of the Builtin type for IEEE Floating point types.
	BUILTIN_TYPE_NAME_FLOAT = "Builtin.FPIEEE"
	// The name of the builtin type for power pc specific floating point types.
	BUILTIN_TYPE_NAME_FLOAT_PPC = "Builtin.FPPPC"
	/// The name of the Builtin type for NativeObject
	BUILTIN_TYPE_NAME_NATIVEOBJECT = "Builtin.NativeObject"
	/// The name of the Builtin type for BridgeObject
	BUILTIN_TYPE_NAME_BRIDGEOBJECT = "Builtin.BridgeObject"
	/// The name of the Builtin type for RawPointer
	BUILTIN_TYPE_NAME_RAWPOINTER = "Builtin.RawPointer"
	/// The name of the Builtin type for UnsafeValueBuffer
	BUILTIN_TYPE_NAME_UNSAFEVALUEBUFFER = "Builtin.UnsafeValueBuffer"
	/// The name of the Builtin type for UnknownObject
	///
	/// This no longer exists as an AST-accessible type, but it's still used for
	/// fields shaped like AnyObject when ObjC interop is enabled.
	BUILTIN_TYPE_NAME_UNKNOWNOBJECT = "Builtin.UnknownObject"
	/// The name of the Builtin type for Vector
	BUILTIN_TYPE_NAME_VEC = "Builtin.Vec"
	/// The name of the Builtin type for SILToken
	BUILTIN_TYPE_NAME_SILTOKEN = "Builtin.SILToken"
	/// The name of the Builtin type for Word
	BUILTIN_TYPE_NAME_WORD = "Builtin.Word"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociatedTypeDescriptor

type AssociatedTypeDescriptor struct {
	AssociatedTypeDescriptorHeader
	AssociatedTypeRecords []AssociatedTypeRecord
}

type AssociatedTypeDescriptorHeader

type AssociatedTypeDescriptorHeader struct {
	ConformingTypeName       int32
	ProtocolTypeName         int32
	NumAssociatedTypes       uint32
	AssociatedTypeRecordSize uint32
}

type AssociatedTypeRecord

type AssociatedTypeRecord struct {
	Name                int32
	SubstitutedTypeName int32
}

type AutomaticReplacements

type AutomaticReplacements struct {
	Flags           uint32
	NumReplacements uint32 // hard coded to 1
	Replacements    int32
}

type AutomaticReplacementsSome

type AutomaticReplacementsSome struct {
	Flags           uint32
	NumReplacements uint32
	Replacements    []Replacement
}

type BuiltinType

type BuiltinType struct {
	Name                string
	Size                uint32
	Alignment           uint16
	BitwiseTakable      bool
	Stride              uint32
	NumExtraInhabitants uint32
}

BuiltinType builtin swift type

type BuiltinTypeDescriptor

type BuiltinTypeDescriptor struct {
	TypeName            int32
	Size                uint32
	AlignmentAndFlags   BuiltinTypeFlag
	Stride              uint32
	NumExtraInhabitants uint32
}

type BuiltinTypeFlag

type BuiltinTypeFlag uint32

func (BuiltinTypeFlag) Alignment

func (f BuiltinTypeFlag) Alignment() uint16

func (BuiltinTypeFlag) IsBitwiseTakable

func (f BuiltinTypeFlag) IsBitwiseTakable() bool

type CaptureDescriptor

type CaptureDescriptor struct {
	CaptureDescriptorHeader
	CaptureTypeRecords    []CaptureTypeRecord
	MetadataSourceRecords []MetadataSourceRecord
}

type CaptureDescriptorHeader

type CaptureDescriptorHeader struct {
	NumCaptureTypes    uint32
	NumMetadataSources uint32
	NumBindings        uint32
}

type CaptureTypeRecord

type CaptureTypeRecord struct {
	MangledTypeName int32
}

type MetadataSourceRecord

type MetadataSourceRecord struct {
	MangledTypeName       int32
	MangledMetadataSource int32
}

type Replacement

type Replacement struct {
	ReplacedFunctionKey int32
	NewFunction         int32
	Replacement         int32
	Flags               uint32
}

type Replacement2

type Replacement2 struct {
	Original    int32
	Replacement int32
}

type ReplacementScope

type ReplacementScope struct {
	Flags           uint32
	NumReplacements uint32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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