if_diff/src/idfAst.cxx
//============================================================================
// Since all astNodeStructs are processed and disposed of during the IF parse
// phase, there's no need for a version of this constructor that doesn't
// map locations back to the original reference.
//============================================================================
Since all astNodeStructs are processed and disposed of during the IF parse
phase, there's no need for a version of this constructor that doesn't
map locations back to the original reference.
Since all astNodeStructs are processed and disposed of during the IF parse phase there ' s no need for a version of this constructor that doesn ' t map locations back to the original reference .
idfAst::idfAst(astnodeStruct *ast, idfAst *par, const idfModel &m)
  : kind(idf_copy_string(ast->node))
  , identifier(ast->identifier)
  , value(idf_copy_string(ast->value))
  , isGen(ast->generated)
  , location(idf_copy_location_list(ast->location, true))
  , discrepancyReportedFlag(false)
  , containsDiscrepancyFlag(false)
  , parent(par)
  , children(ast->children, this, m) 
  , nextSib(NULL)
  , prevSib(NULL)
  , match(NULL)
  , hasSubtreeLocation(false)
{
  determineSubtreeLocation();
}
idfAst :: idfAst ( astnodeStruct * ast , idfAst * par , const idfModel & m ) : kind ( idf_copy_string ( ast -> node ) ) , identifier ( ast -> identifier ) , value ( idf_copy_string ( ast -> value ) ) , isGen ( ast -> generated ) , location ( idf_copy_location_list ( ast -> location , true ) ) , discrepancyReportedFlag ( false ) , containsDiscrepancyFlag ( false ) , parent ( par ) , children ( ast -> children , this , m ) , nextSib ( NULL ) , prevSib ( NULL ) , match ( NULL ) , hasSubtreeLocation ( false ) { determineSubtreeLocation ( ) ; }
Since all astNodeStructs are processed and disposed of during the IF parse
phase, there's no need for a version of this constructor that doesn't
map locations back to the original reference.
Since all astNodeStructs are processed and disposed of during the IF parse phase there ' s no need for a version of this constructor that doesn ' t map locations back to the original reference .
// Constructs and hooks together the children.