@@ -58,9 +58,9 @@ public static void AssertOpCodes(this MethodInfo method, params OpCode[] expecte
5858 Asserts . AreEqual ( expectedCodes , actualCodes ) ;
5959 }
6060
61- [ Conditional ( "DEBUG" ) ]
6261 [ UnconditionalSuppressMessage ( "ReflectionAnalysis" , "IL2026:RequiresUnreferencedCode" ,
6362 Justification = "The method is used for the testing purposes only." ) ]
63+ [ Conditional ( "DEBUG" ) ]
6464 public static void PrintExpression ( this Expression expr , bool completeTypeNames = false ) =>
6565 Console . WriteLine (
6666 expr . ToExpressionString ( out var _ , out var _ , out var _ ,
@@ -69,6 +69,8 @@ public static void PrintExpression(this Expression expr, bool completeTypeNames
6969 indentSpaces : 4 )
7070 ) ;
7171
72+ [ UnconditionalSuppressMessage ( "ReflectionAnalysis" , "IL2026:RequiresUnreferencedCode" ,
73+ Justification = "The method is used for the testing purposes only." ) ]
7274 [ Conditional ( "DEBUG" ) ]
7375 public static void PrintCSharp ( this Expression expr , bool completeTypeNames = false ,
7476 [ CallerMemberName ] string caller = "" , [ CallerFilePath ] string filePath = "" )
@@ -89,6 +91,8 @@ public static void PrintCSharp(this Expression expr, bool completeTypeNames = fa
8991#endif
9092 }
9193
94+ [ UnconditionalSuppressMessage ( "ReflectionAnalysis" , "IL2026:RequiresUnreferencedCode" ,
95+ Justification = "The method is used for the testing purposes only." ) ]
9296 [ Conditional ( "DEBUG" ) ]
9397 public static void PrintCSharp ( this Expression expr , Func < string , string > transform ,
9498 [ CallerMemberName ] string caller = "" , [ CallerFilePath ] string filePath = "" )
@@ -100,6 +104,8 @@ public static void PrintCSharp(this Expression expr, Func<string, string> transf
100104#endif
101105 }
102106
107+ [ UnconditionalSuppressMessage ( "ReflectionAnalysis" , "IL2026:RequiresUnreferencedCode" ,
108+ Justification = "The method is used for the testing purposes only." ) ]
103109 [ Conditional ( "DEBUG" ) ]
104110 public static void PrintCSharp ( this Expression expr , CodePrinter . ObjectToCode objectToCode ,
105111 [ CallerMemberName ] string caller = "" , [ CallerFilePath ] string filePath = "" )
@@ -111,6 +117,8 @@ public static void PrintCSharp(this Expression expr, CodePrinter.ObjectToCode ob
111117#endif
112118 }
113119
120+ [ UnconditionalSuppressMessage ( "ReflectionAnalysis" , "IL2026:RequiresUnreferencedCode" ,
121+ Justification = "The method is used for the testing purposes only." ) ]
114122 [ Conditional ( "DEBUG" ) ]
115123 public static void PrintCSharp ( this Expression expr , ref string result )
116124 {
0 commit comments