chc.api.ApiParameter module
Base class and subclasses:
|
Base class of formal parameter of a function. |
|
Formal parameter of a function. |
|
Global variable used in a function; treated as a formal parameter. |
Object representation of api_parameter_t
- class chc.api.ApiParameter.APFormal(cd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.ApiParameter.ApiParameterFormal parameter of a function.
args[0]: parameter index (starting at 1)
- property index: int
- property is_formal: bool
- class chc.api.ApiParameter.APGlobal(cd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.ApiParameter.ApiParameterGlobal variable used in a function; treated as a formal parameter.
- property is_global: bool
- property name: str
- class chc.api.ApiParameter.ApiParameter(cd: InterfaceDictionary, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.api.InterfaceDictionaryRecord.InterfaceDictionaryRecordBase class of formal parameter of a function.
- Parameters
cd (InterfaceDictionary) – The parent dictionary to resolve subexpressions
ixval (IndexedTableValue) – The backing record of the value
- property is_formal: bool
- property is_global: bool