SymbolRelation
/**
* @brief Symbol mapping relation between reference node to its resolved node.
*/
Inherit from SymbolTableDO
Primary key: named_declaration_oid: int
schema SymbolRelation extends SymbolTableDO {
@primary named_declaration_oid: int,
symbol_name: string
}
SymbolRelation::getSymbolName
/**
* @brief gets the symbol name of this element.
* @return string
*/
- Parameter
self
:SymbolRelation
- Return
string
pub fn getSymbolName(self: SymbolRelation) -> string;
SymbolRelation::getDestination
/**
* @brief get the destination of this reference relation.
* @return ExpressionParent
*/
- Parameter
self
:SymbolRelation
- Return
*ElementParent
pub fn getDestination(self: SymbolRelation) -> *ElementParent;
SymbolRelation::__all__
Data constraint method.
- Parameter
db
:CfamilyDB
- Return
*SymbolRelation
pub fn __all__(db: CfamilyDB) -> *SymbolRelation;
SymbolRelation::getSource
/**
* @brief get the reference element which references some definitions.
* @return Expression
*/
- Parameter
self
:SymbolRelation
- Return
ElementParent
pub fn getSource(self: SymbolRelation) -> ElementParent;