while(identTupleIt.hasNext())
{
if(returnType.getType() == TypeConstants.referenceType)
{
String referenceTypeName = returnType.getReferenceTypeName();
IdentPrimaryTuple ipt = (IdentPrimaryTuple)identTupleIt.next();
if(i++ == 0) // first element in the list has the same symbol table
{ // as the primary expression
ipt.setSymbolTable(_symTab);
}
returnType = ipt.validate(referenceTypeName);
} else {
identTupleIt.next(); // <--- Added by dawood
}
}
_dataType.copy(returnType);