File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -916,6 +916,8 @@ public object VisitUnaryExpression(UnaryExpressionAst unaryExpressionAst)
916916 return Assign ( child , Increment ( child ) ) ;
917917 case TokenKind . PostfixMinusMinus :
918918 return Assign ( child , Decrement ( child ) ) ;
919+ case TokenKind . Not :
920+ return Not ( PSIsTrue ( child ) ) ;
919921 default :
920922 ReportNotSupported (
921923 unaryExpressionAst . Extent ,
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ internal static class ReflectionCache
6161 var parameters = method . GetParameters ( ) ;
6262 return parameters . Length == 2
6363 && parameters [ 0 ] . ParameterType == typeof ( object )
64- && parameters [ 1 ] . ParameterType . IsGenericParameter ;
64+ && parameters [ 1 ] . ParameterType . IsByRef ;
6565 } ,
6666 null )
6767 . FirstOrDefault ( ) ;
You can’t perform that action at this time.
0 commit comments