Function SgNodeHelper::determineChildIndex

Function SgNodeHelper::determineChildIndex#

Function Documentation#

size_t SgNodeHelper::determineChildIndex(SgNode *node)#

computes for a given node the index number of it from the parent. e.g. node1(node2,node3,node4) : node4 has index 2 (starting at 0) For the root node of an AST (e.g. SgProject) this function returns -1.