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

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

private ApplyBuiltinMethodTypeInference ( MethodInvocationExpression expression, IMethod method ) : void
expression Boo.Lang.Compiler.Ast.MethodInvocationExpression
method IMethod
Результат void
        void ApplyBuiltinMethodTypeInference(MethodInvocationExpression expression, IMethod method)
        {
            var inferredType = _invocationTypeReferenceRules.Instance.ApplyTo(expression, method);
            if (inferredType != null)
            {
                var parent = expression.ParentNode;
                if (parent.NodeType != NodeType.ExpressionStatement)
                    parent.Replace(expression, CodeBuilder.CreateCast(inferredType, expression));
            }
        }
ProcessMethodBodies