bool CheckSwitchArguments(MethodInvocationExpression node)
{
ExpressionCollection args = node.Arguments;
if (args.Count > 1)
{
Visit(args[0]);
if (TypeSystemServices.IsIntegerNumber(GetExpressionType(args[0])))
{
for (int i=1; i<args.Count; ++i)
{
if (NodeType.ReferenceExpression != args[i].NodeType)
{
return false;
}
}
return true;
}
}
return false;
}