Skip to content

SgNodeHelper::determineChildIndex

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.

Synopsis

Declared in <src/midend/abstractLayer/SgNodeHelper.h>

size_t
determineChildIndex(SgNode* node);

Parameters

Name

Description

node

This class represents the base class for all IR nodes within Sage III.

Created with MrDocs