Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | import type IBaseSymbol from "./IBaseSymbol";
import type IEnumMemberSymbol from "./IEnumMemberSymbol";
/**
* Symbol representing an enum type definition.
*/
interface IEnumSymbol extends IBaseSymbol {
/** Discriminator narrowed to "enum" */
readonly kind: "enum";
/**
* Members, each carrying its own span and its own identity (#1318).
*
* Keyed by bare member name, which is how every consumer looks one up.
* The value used to be the bare number, so a member had no position and
* every consumer that wanted one reported the enum's.
*/
readonly members: ReadonlyMap<string, IEnumMemberSymbol>;
/** Optional explicit bit width (e.g., 8 for u8 backing type) */
readonly bitWidth?: number;
}
export default IEnumSymbol;
|