All files / transpiler/output/codegen/types IArrayAccessInfo.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 25 26 27                                                     
/**
 * Intermediate representation for array access operations.
 * Decouples code generation from ANTLR parser contexts.
 */
import TTypeInfo from "./TTypeInfo";
 
type IArrayAccessInfo = {
  /** The raw identifier name from source */
  rawName: string;
  /** The resolved name (may include dereference like `(*param)`) */
  resolvedName: string;
  /** The access type */
  accessType: "single-index" | "bit-range";
  /** Index expression as generated C code (for single-index) */
  indexExpr?: string;
  /** For bit ranges: start position */
  startExpr?: string;
  /** For bit ranges: width */
  widthExpr?: string;
  /** Type info for the variable being accessed */
  typeInfo?: TTypeInfo;
  /** Source line for error messages */
  line: number;
};
 
export default IArrayAccessInfo;