}
else{
sourcePosition = errorCallNode.getSourcePosition();
}
final ErrorInfo errorInfo;
if (sourcePosition == null){
errorInfo = new ErrorInfo(QualifiedName.make(moduleName, topLevelFunctionName), 0, 0);
}
else{
errorInfo = new ErrorInfo(QualifiedName.make(moduleName, topLevelFunctionName), sourcePosition.getLine(), sourcePosition.getColumn());
}
errorCallNode.setErrorInfoForErrorCall(errorInfo);
}
break;
default:
{
final ParseTreeNode firstChildNode = errorCallNode.getChild(0);
final ParseTreeNode moduleNode = firstChildNode.getChild(0);
final ParseTreeNode nameNode = firstChildNode.getChild(1);
final SourcePosition sourcePosition = nameNode.getSourcePosition();
final ErrorInfo errorInfo;
if (sourcePosition == null){
errorInfo = new ErrorInfo(QualifiedName.make(moduleName, topLevelFunctionName), 0, 0);
}
else{
errorInfo = new ErrorInfo(QualifiedName.make(moduleName, topLevelFunctionName), sourcePosition.getLine(), sourcePosition.getColumn());
}
// source position can be null for internally generated functions such
// as those arrising from the use of the deriving clause
if (ModuleNameUtilities.getModuleNameFromParseTree(moduleNode).equals(CAL_Prelude.MODULE_NAME)){