RefType
Type indicates the name of a given type.
Methods
Section titled “Methods”hasTrait()
Section titled “hasTrait()”hasTrait(
trait):boolean
HasTrait returns whether the type has a given trait associated with it.
See common/types/traits/traits.go for a list of supported traits.
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”boolean
typeName()
Section titled “typeName()”typeName():
string
TypeName returns the qualified type name of the type.
The type name is also used as the type’s identifier name at type-check and interpretation time.
Returns
Section titled “Returns”string