private XmlElement MakeFieldEntry(CType type, string name, Offset offset) { XmlElement result; if (type is CBits) { CBits bit = (CBits)type; result = MakeElem("bit-field"); AddTypeBasicAttrs(result, bit.Next, false); AddNameAndOffsetAttrs(result, name, offset); AddAttr(result, "len", bit.Len); } else { result = MakeElem("field"); AddTypeBasicAttrs(result, type, true); AddNameAndOffsetAttrs(result, name, offset); } return(result); }
public void VisitBits(CBits bits) { throw new InvalidOperationException(); }