All files / transpiler/logic/symbols/types IBitmapSymbol.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

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                                               
import ESymbolKind from "../../../../utils/types/ESymbolKind";
import IBaseSymbol from "./IBaseSymbol";
import IBitmapFieldInfo from "./IBitmapFieldInfo";
 
/**
 * Symbol representing a bitmap type definition.
 * Bitmaps provide named access to bit regions within an integer backing type.
 */
interface IBitmapSymbol extends IBaseSymbol {
  /** Discriminant for type narrowing */
  kind: ESymbolKind.Bitmap;
 
  /** Backing integer type (e.g., "u8", "u32") */
  backingType: string;
 
  /** Total bit width of the bitmap */
  bitWidth: number;
 
  /** Map of field name to bit offset/width metadata */
  fields: Map<string, IBitmapFieldInfo>;
}
 
export default IBitmapSymbol;