// to be the class of the object being constructed, rather than void.
// So instead we simply check whether the type annotation was void.
boolean returnTypeIsVoid = false;
if (returnTypeExpression instanceof ILanguageIdentifierNode)
{
LanguageIdentifierKind kind = ((ILanguageIdentifierNode)returnTypeExpression).getKind();
if (kind == LanguageIdentifierKind.VOID)
returnTypeIsVoid = true;
}
if (!returnTypeIsVoid)
{