예제 #1
0
        private void CheckParameters(MethodCall methodCall)
        {
            ArgumentUtility.CheckNotNull("methodCall", methodCall);
            Method calleeMethod = IntrospectionUtility.ExtractMethod(methodCall);

            _parameterFragmentTypes = _symbolTable.InferParameterFragmentTypes(calleeMethod);

            for (int i = 0; i < _parameterFragmentTypes.Length; i++)
            {
                Expression operand          = methodCall.Operands[i];
                Fragment   expectedFragment = _parameterFragmentTypes[i];
                CheckParameter(operand, expectedFragment);
            }
        }