if_diff/src/idfAst.cxx
//============================================================================
// Determine a location that considers the children as well as this node.
//============================================================================
Determine a location that considers the children as well as this node.
Determine a location that considers the children as well as this node .
void idfAst::determineSubtreeLocation()
{
  locationStruct *comp1 = getComparableLocation();
  locationStruct loc;
  locationStruct *comp2 = children.getSubtreeLocation(loc) ? &loc : NULL;
  hasSubtreeLocation = idf_location_union(comp1, comp2, subtreeLocation);
  if (!hasSubtreeLocation && comp1 != NULL) {
    loc = *comp1;
    hasSubtreeLocation = true;
  }
}
void idfAst :: determineSubtreeLocation ( ) { locationStruct * comp1 = getComparableLocation ( ) ; locationStruct loc ; locationStruct * comp2 = children . getSubtreeLocation ( loc ) ? & loc : NULL ; hasSubtreeLocation = idf_location_union ( comp1 , comp2 , subtreeLocation ) ; if ( ! hasSubtreeLocation && comp1 != NULL ) { loc = * comp1 ; hasSubtreeLocation = true ; } }
Determine a location that considers the children as well as this node.
Determine a location that considers the children as well as this node .