Function SgNodeHelper::getParent#
Defined in File SgNodeHelper.h
Function Documentation#
-
SgNode *SgNodeHelper::getParent(SgNode *node)#
returns the parent of a node. Essentially a wrapper function of the ROSE get_parent() function, but throws an exception if no parent exists. For SgProject node no exception is thrown if no parent exists because it is the root node of a ROSE AST.