Example #1
0
        public void VisitInvokeExpression(InvokeExpression node)
        {
            foreach (var arg in node.Arguments)
            {
                arg.Accept(this);
            }

            var method = node.GetMethod(_context);

            _emitter.Emit(OpCodes.Call, method);

            if (NeedStackBalancing(node, method))
            {
                _emitter.Emit(OpCodes.Pop);
            }
        }
Example #2
0
 public void VisitInvokeExpression(InvokeExpression node) => InferSimpleType(node.GetMethod(_context).ReturnType);