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
*/
pub fn getSymbolName(self: SymbolRelation) -> string;

SymbolRelation::getDestination

/**
* @brief get the destination of this reference relation. 
* @return ExpressionParent 
*/
pub fn getDestination(self: SymbolRelation) -> *ElementParent;

SymbolRelation::__all__

Data constraint method.

pub fn __all__(db: CfamilyDB) -> *SymbolRelation;

SymbolRelation::getSource

/**
* @brief get the reference element which references some definitions.
* @return Expression 
*/
pub fn getSource(self: SymbolRelation) -> ElementParent;