Boo.Lang.Compiler.Steps.ProcessMethodBodies.CheckSwitchArguments C# (CSharp) Метод

CheckSwitchArguments() приватный Метод

private CheckSwitchArguments ( MethodInvocationExpression node ) : bool
node Boo.Lang.Compiler.Ast.MethodInvocationExpression
Результат bool
        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;
        }
ProcessMethodBodies