Ejemplo n.º 1
0
 public ICodeNode VisitMethodInvocationExpression(MethodInvocationExpression node)
 {
     if (!node.IsTypeOfExpression(out V_0))
     {
         return(null);
     }
     return(new TypeOfExpression(V_0, node.get_UnderlyingSameMethodInstructions()));
 }
 private void GetGenericTypeArgument(MethodInvocationExpression expression, int index, CallSiteInfo callSiteInfo)
 {
     if (!expression.IsTypeOfExpression(out V_0))
     {
         throw new Exception("Invalid statement.");
     }
     callSiteInfo.get_GenericTypeArguments().Add(V_0);
     return;
 }
        private void GetGenericTypeArgument(MethodInvocationExpression expression, int index, CallSiteInfo callSiteInfo)
        {
            TypeReference typeRef;

            if (!expression.IsTypeOfExpression(out typeRef))
            {
                throw new Exception(InvalidStatementExceptionString);
            }

            callSiteInfo.GenericTypeArguments.Add(typeRef);
        }
Ejemplo n.º 4
0
        public ICodeNode VisitMethodInvocationExpression(MethodInvocationExpression node)
        {
            TypeReference typeReference;

            if (!node.IsTypeOfExpression(out typeReference))
            {
                return(null);
            }

            return(new TypeOfExpression(typeReference, node.UnderlyingSameMethodInstructions));
        }