Class EnumEntry

This is a foreign class that wraps over an enum.

0 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.

0 define generics: List[TypeEntry]

Return the generic types available to this enum. Enums defined outside of manifest mode will always return [].

0 define id: Integer

Return the internal id of this enum.

0 define is_flat: Boolean

Returns true if the enum's variants are visible at toplevel, false otherwise.

0 define is_scoped: Boolean

Returns true if the enum's variants are namespaced, false otherwise.

0 define methods: List[MethodEntry]

Return the methods that were declared in this class. There is no guarantee as to the order.

0 define name: String

Return the name of the class provided.

0 define parent: Option[ClassEntry]

Returns a Some of the Integer class if a value enum, None otherwise.

0 define variants: List[VariantEntry]

Return the variants that were declared within this enum. No ordering is guaranteed.