chc.app.CFileDeclarations module

chc.app.CFileDeclarations.CFileDeclarations(...)

C File level definitions and declarations.

chc.app.CFileDeclarations.CFilename(decls, ixval)

Declarations at the file level.

class chc.app.CFileDeclarations.CFileDeclarations(cfile: CFile, xnode: xml.etree.ElementTree.Element)[source]

Bases: chc.app.CDeclarations.CDeclarations

C File level definitions and declarations.

This information is originally written by cchcil/cHCilWriteXml: write_xml_cfile based on cchcil/cHCilDeclarations.cildeclarations.

Declarations are dependent on CFileDictionary

property cfile: CFile
property dictionary: CFileDictionary
expand(name: str) chc.app.CTyp.CTyp[source]
get_code_line_count() int[source]
get_compinfo(ix: int) chc.app.CCompInfo.CCompInfo[source]
get_compinfo_by_ckey(ckey: int) chc.app.CCompInfo.CCompInfo[source]
get_compinfo_map() Dict[int, chc.util.IndexedTable.IndexedTableValue][source]
get_enuminfo(ix: int) chc.app.CEnumInfo.CEnumInfo[source]
get_enuminfo_map() Dict[int, chc.util.IndexedTable.IndexedTableValue][source]
get_enumitem(ix: int) chc.app.CEnumItem.CEnumItem[source]
get_enumitem_map() Dict[int, chc.util.IndexedTable.IndexedTableValue][source]
get_fieldinfo(ix: int) chc.app.CFieldInfo.CFieldInfo[source]
get_fieldinfo_map() Dict[int, chc.util.IndexedTable.IndexedTableValue][source]
get_filename(ix: int) str[source]
get_global_varinfos() List[chc.app.CVarInfo.CVarInfo][source]
get_initinfo(ix: int) chc.app.CInitInfo.CInitInfo[source]
get_initinfo_map() Dict[int, chc.util.IndexedTable.IndexedTableValue][source]
get_location(ix: int) chc.app.CLocation.CLocation[source]
get_location_map() Dict[int, chc.util.IndexedTable.IndexedTableValue][source]
get_max_line() int[source]
get_offset_init(ix: int) chc.app.CInitInfo.COffsetInitInfo[source]
get_offset_init_map() Dict[int, chc.util.IndexedTable.IndexedTableValue][source]
get_typeinfo(ix: int) chc.app.CTypeInfo.CTypeInfo[source]
get_typeinfo_map() Dict[int, chc.util.IndexedTable.IndexedTableValue][source]
get_varinfo(ix: int) chc.app.CVarInfo.CVarInfo[source]
get_varinfo_map() Dict[int, chc.util.IndexedTable.IndexedTableValue][source]
index_filename(name: str) int[source]
index_location(loc: chc.app.CLocation.CLocation) int[source]
make_opaque_global_varinfo(gvid: int, gname: str, gtypeix: int) int[source]
objectmap_to_string(name: str) str[source]
read_xml_location(xnode: xml.etree.ElementTree.Element, tag: str = 'iloc') chc.app.CLocation.CLocation[source]
read_xml_varinfo(xnode: xml.etree.ElementTree.Element, tag: str = 'ivinfo') chc.app.CVarInfo.CVarInfo[source]
write_xml(node: xml.etree.ElementTree.Element) None[source]
write_xml_location(xnode: xml.etree.ElementTree.Element, loc: chc.app.CLocation.CLocation, tag: str = 'iloc') None[source]
write_xml_varinfo(xnode: xml.etree.ElementTree.Element, vinfo: chc.app.CVarInfo.CVarInfo, tag: str = 'ivinfo') None[source]
class chc.app.CFileDeclarations.CFilename(decls: chc.app.CDeclarations.CDeclarations, ixval: chc.util.IndexedTable.IndexedTableValue)[source]

Bases: chc.app.CDictionaryRecord.CDeclarationsRecord

get_filename() str[source]
chc.app.CFileDeclarations.table_to_string(title: str, d: Dict[Any, Any], headerlen: int = 10) str[source]
chc.app.CFileDeclarations.xfind_node(p: xml.etree.ElementTree.Element, tag: str) xml.etree.ElementTree.Element[source]
chc.app.CFileDeclarations.xget_attr(p: xml.etree.ElementTree.Element, tag: str) str[source]
chc.app.CFileDeclarations.xget_int_attr(p: xml.etree.ElementTree.Element, tag: str) int[source]