public override void LeaveUnaryExpression(UnaryExpression node)
{
if (IsDuckTyped(node.Operand) &&
node.Operator == UnaryOperatorType.UnaryNegation)
{
MethodInvocationExpression mie = CodeBuilder.CreateMethodInvocation(
node.LexicalInfo,
RuntimeServices_InvokeUnaryOperator,
CodeBuilder.CreateStringLiteral(
AstUtil.GetMethodNameForOperator(node.Operator)),
node.Operand);
Replace(mie);
}
}