Documentation ¶
Index ¶
- Constants
- type AssociatedTypeDescriptor
- type AssociatedTypeDescriptorHeader
- type AssociatedTypeRecord
- type AutomaticReplacements
- type AutomaticReplacementsSome
- type BuiltinType
- type BuiltinTypeDescriptor
- type BuiltinTypeFlag
- type CaptureDescriptor
- type CaptureDescriptorHeader
- type CaptureTypeRecord
- type MetadataSourceRecord
- type Replacement
- type Replacement2
- type ReplacementScope
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 AssociatedTypeRecord ¶
type AutomaticReplacements ¶
type AutomaticReplacementsSome ¶
type AutomaticReplacementsSome struct { Flags uint32 NumReplacements uint32 Replacements []Replacement }
type BuiltinType ¶ added in v1.1.0
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 ¶ added in v1.1.0
type BuiltinTypeFlag uint32
func (BuiltinTypeFlag) Alignment ¶ added in v1.1.0
func (f BuiltinTypeFlag) Alignment() uint16
func (BuiltinTypeFlag) IsBitwiseTakable ¶ added in v1.1.0
func (f BuiltinTypeFlag) IsBitwiseTakable() bool
type CaptureDescriptor ¶
type CaptureDescriptor struct { CaptureDescriptorHeader CaptureTypeRecords []CaptureTypeRecord MetadataSourceRecords []MetadataSourceRecord }
type CaptureDescriptorHeader ¶
type CaptureTypeRecord ¶
type CaptureTypeRecord struct {
MangledTypeName int32
}
type MetadataSourceRecord ¶
type Replacement ¶
type Replacement2 ¶
type ReplacementScope ¶
Click to show internal directories.
Click to hide internal directories.