* @param moduleName the name of the module in which the graph exists
* @param typeChecker TypeChecker the type checker to use to generate the type
* @return TypeExpr a new TypeExpr for the target sc.
*/
protected static final TypeExpr getNewTargetTypeExpr(Target target, ModuleName moduleName, TypeChecker typeChecker) {
AdjunctSource scDefinition = target.getTargetDef(null, typeChecker.getTypeCheckInfo(moduleName).getModuleTypeInfo());
CompilerMessageLogger logger = new MessageLogger ();
return typeChecker.checkFunction(scDefinition, moduleName, logger);
}