mixin compiler::CPod
compiler::CPod
CPod is a "compiler pod" used for representing a Pod in the compiler.
- bridge
-
virtual CBridge? bridge()
If this a foreign function interface return the bridge.
- depends
-
abstract CDepend[] depends()
Get the pod dependencies
- equals
-
virtual override Bool equals(Obj? t)
Equality based on pod name.
- file
-
abstract File file()
Pod zip file. Not all implementations have a backing file in which case they will throw UnsupportedErr
- hasJs
-
Bool hasJs()
Return if this pod has client side JavaScript
- hash
-
virtual override Int hash()
Hash on name.
- isForeign
-
virtual Bool isForeign()
If this a foreign function interface pod.
- meta
-
Pod meta data
- name
-
abstract Str name()
Get the pod name
- ns
-
abstract CNamespace ns()
Associated namespace for this pod representation
- resolveType
-
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.
- toStr
-
override Str toStr()
Return name
- types
-
abstract CType[] types()
List of the all defined types.
- version
-
abstract Version version()
Get the pod version or null if unknown.