Class EnumEntry
This is a foreign class that wraps over an enum.
public define doc: String
Return the docblock of this enum, or an empty string. Docblocks are only saved when an enum is parsed in manifest mode.
public define generics: List[TypeEntry]
Return the generic types available to this enum. Enums defined outside
of manifest mode will always return []
.
public define id: Integer
Return the internal id of this enum.
public define is_flat: Boolean
Returns true if the enum's variants are visible at toplevel, false otherwise.
public define is_scoped: Boolean
Returns true if the enum's variants are namespaced, false otherwise.
public define methods: List[MethodEntry]
Return the methods that were declared in this class. There is no guarantee as to the order.
public define name: String
Return the name of the class provided.
public define variants: List[VariantEntry]
Return the variants that were declared within this enum. No ordering is guaranteed.