Fan

 

mixin

compiler::CPod

sys::Obj
  compiler::CPod

CPod is a "compiler pod" used for representing a Pod in the compiler.

Slots

bridgeSource

virtual CBridge? bridge()

If this a foreign function interface return the bridge.

equalsSource

override Bool equals(Obj? t)

Overrides sys::Obj.equals

Equality based on pod name.

hashSource

override Int hash()

Overrides sys::Obj.hash

Hash on name.

isForeignSource

virtual Bool isForeign()

If this a foreign function interface pod.

nameSource

abstract Str name()

Get the pod name

nsSource

abstract CNamespace ns()

Associated namespace for this pod representation

resolveSymbolSource

abstract CSymbol? resolveSymbol(Str name, Bool checked)

Lookup a symbol by its simple name. If the symbol doesn't exist and checked is true then throw UnknownSymbolErr otherwise return null.

resolveTypeSource

abstract CType? resolveType(Str name, Bool checked)

Lookup a type by its simple name. If the type doesn't exist and checked is true then throw UnknownTypeErr otherwise return null.

toStrSource

Str toStr()

Overrides sys::Obj.toStr

Return name

typesSource

abstract CType[] types()

List of the all defined types.

versionSource

abstract Version version()

Get the pod version or null if unknown.