public ICodeNode VisitMethodInvocationExpression(MethodInvocationExpression node) { TypeReference typeReference; if (!node.IsTypeOfExpression(out typeReference)) { return null; } return new TypeOfExpression (typeReference, node.UnderlyingSameMethodInstructions); }
private void GetGenericTypeArgument(MethodInvocationExpression expression, int index, CallSiteInfo callSiteInfo) { TypeReference typeRef; if (!expression.IsTypeOfExpression(out typeRef)) { throw new Exception(InvalidStatementExceptionString); } callSiteInfo.GenericTypeArguments.Add(typeRef); }