InternalPrintCellType: PrintTV.TVPrintProc = {
[tv: TV, data: REF ANY, stream: STREAM, depth: INT ← 4, width: INT ← 32, verbose: BOOL ← FALSE] RETURNS [useOld: BOOL ← FALSE]
cellType: CellType;
ref: REF READONLY ANY;
TRUSTED {ref ← AMBridge.SomeRefFromTV[tv]};
cellType ← NARROW [ref, REF READONLY CellType]^;
stream.PutF["{CellType - class: %g, public: ", IO.rope[cellType.class.name]];
Print[ref: cellType.public, stream: stream, depth: depth-1, width: width, verbose: verbose];
stream.PutF[", data: "];
Print[ref: cellType.data, stream: stream, depth: depth-1, width: width, verbose: verbose];
stream.PutF[", properties: "];
Print[ref: cellType.properties, stream: stream, depth: depth-1, width: width, verbose: verbose];
stream.PutF["}"];
};
Print:
PROC [ref:
REF
ANY, stream:
STREAM, depth:
INT ← 4, width:
INT ← 32, verbose:
BOOL ←
FALSE] = {
tv: AMTypes.TV;
TRUSTED {tv ← AMBridge.TVForReferent[NEW [REF ← ref]]};
PrintTV.Print[tv, stream, depth, width, verbose];
};