CNamespace is responsible for providing a unified view pods, types, and slots between the entities currently being compiled and the entities being imported from pre-compiled pods.
Slots
- boolNotSource
-
readonly CMethod? boolNot
- boolTypeSource
-
readonly CType? boolType
-
internal Compiler? c
-
internal Compiler compiler()
Used for resolveBridge only
- decimalTypeSource
-
readonly CType? decimalType
- dependsSource
-
Map of dependencies keyed by pod name set in ResolveDepends.
- durationTypeSource
-
readonly CType? durationType
- enumOrdinalSource
-
readonly CMethod? enumOrdinal
- enumTypeSource
-
readonly CType? enumType
- errTypeSource
-
readonly CType? errType
- errorSource
-
readonly CType? error
- facetTypeSource
-
readonly CType? facetType
- fieldNotSetErrMakeSource
-
readonly CMethod? fieldNotSetErrMake
- fieldNotSetErrTypeSource
-
readonly CType? fieldNotSetErrType
- fieldTypeSource
-
readonly CType? fieldType
- findBridgeSource
-
virtual protected CBridge findBridge(Compiler compiler, Str name, Loc? loc)
Subclass hook to resolve a FFI name to a CBridge implementation. Throw CompilerErr if there is a problem resolving the bridge. The default implementation attempts to resolve the indexed property "compiler.bridge.$name" to a Type qname.
- findPodSource
-
abstract protected CPod? findPod(Str podName)
Subclass hook to resolve a pod name to a CPod implementation. Return null if not found.
- floatMinusSource
-
readonly CMethod? floatMinus
- floatPlusSource
-
readonly CMethod? floatPlus
- floatTypeSource
-
readonly CType? floatType
- funcBindSource
-
readonly CMethod? funcBind
- funcCallSource
-
readonly CMethod? funcCall
- funcCheckInCtorSource
-
readonly CMethod? funcCheckInCtor
- funcEnterCtorSource
-
readonly CMethod? funcEnterCtor
- funcExitCtorSource
-
readonly CMethod? funcExitCtor
- funcTypeSource
-
readonly CType? funcType
- genericParameterSource
-
CType genericParameter(Str id)
Map one of the generic parameter types such as "sys::V" into a CType
- genericParamsSource
- initSource
-
protected Void init()
Once the sub class is initialized, it must call this method to initialize our all predefined values.
- intDecrementSource
-
readonly CMethod? intDecrement
- intIncrementSource
-
readonly CMethod? intIncrement
- intPlusSource
-
readonly CMethod? intPlus
- intTypeSource
-
readonly CType? intType
- itBlockTypeSource
-
readonly FuncType? itBlockType
- listAddSource
-
readonly CMethod? listAdd
- listMakeSource
-
readonly CMethod? listMake
- listMakeObjSource
-
readonly CMethod? listMakeObj
- listTypeSource
-
readonly CType? listType
- mapMakeSource
-
readonly CMethod? mapMake
- mapSetSource
-
readonly CMethod? mapSet
- mapTypeSource
-
readonly CType? mapType
- methodTypeSource
-
readonly CType? methodType
- nothingTypeSource
-
readonly CType? nothingType
- objToImmutableSource
-
readonly CMethod? objToImmutable
- objTrapSource
-
readonly CMethod? objTrap
- objTypeSource
-
readonly CType? objType
- objWithSource
-
readonly CMethod? objWith
- rangeMakeExclusiveSource
-
readonly CMethod? rangeMakeExclusive
- rangeMakeInclusiveSource
-
readonly CMethod? rangeMakeInclusive
- rangeTypeSource
-
readonly CType? rangeType
-
private CBridge resolveBridge(Str name, Loc? loc)
Resolve to foreign function interface bridge. Bridges are loaded once for each compiler session.
- resolvePodSource
-
CPod resolvePod(Str podName, Loc? loc)
Attempt to import the specified pod name against our dependency library. If not found then throw CompilerErr.
- resolveSlotSource
-
Attempt resolve a slot against our dependency library. If can't be resolved, then throw Err.
- resolveTypeSource
-
Attempt resolve a signature against our dependency library. If not a valid signature or it can't be resolved, then throw Err.
- slotFindFuncSource
-
readonly CMethod? slotFindFunc
- slotFindMethodSource
-
readonly CMethod? slotFindMethod
- slotTypeSource
-
readonly CType? slotType
- strBufAddSource
-
readonly CMethod? strBufAdd
- strBufMakeSource
-
readonly CMethod? strBufMake
- strBufToStrSource
-
readonly CMethod? strBufToStr
- strBufTypeSource
-
readonly CType? strBufType
- strPlusSource
-
readonly CMethod? strPlus
- strTypeSource
-
readonly CType? strType
- sysPodSource
-
readonly CPod? sysPod
- typeFieldSource
-
readonly CMethod? typeField
- typeMethodSource
-
readonly CMethod? typeMethod
- typeTypeSource
-
readonly CType? typeType
- uriTypeSource
-
readonly CType? uriType
- voidTypeSource
-
readonly CType? voidType