@@ -52,8 +52,8 @@ public static void Main()
5252 }
5353
5454 // Validate the error message when annotated parameter is passed to another annotated parameter
55- [ ExpectedWarning ( "IL2067" , "'sourceType'" , "PublicParameterlessConstructorParameter(Type)" , "'type'" , nameof ( DataFlowTypeExtensions . RequiresPublicConstructors ) + "(Type)" ) ]
56- [ ExpectedWarning ( "IL2067" , nameof ( DataFlowTypeExtensions ) + "." + nameof ( DataFlowTypeExtensions . RequiresNonPublicConstructors ) ) ]
55+ [ ExpectedWarning ( "IL2067" , "'sourceType'" , "PublicParameterlessConstructorParameter(Type)" , "'type'" , nameof ( DataFlowTypeExtensions . RequiresPublicConstructors ) + "(Type)" ) ]
56+ [ ExpectedWarning ( "IL2067" , nameof ( DataFlowTypeExtensions ) + "." + nameof ( DataFlowTypeExtensions . RequiresNonPublicConstructors ) ) ]
5757 private static void PublicParameterlessConstructorParameter (
5858 [ DynamicallyAccessedMembers ( DynamicallyAccessedMemberTypes . PublicParameterlessConstructor ) ]
5959 Type sourceType )
@@ -73,8 +73,8 @@ private static void PublicConstructorsParameter(
7373 type . RequiresNonPublicConstructors ( ) ;
7474 }
7575
76- [ ExpectedWarning ( "IL2067" , nameof ( DataFlowTypeExtensions ) + "." + nameof ( DataFlowTypeExtensions . RequiresPublicParameterlessConstructor ) ) ]
77- [ ExpectedWarning ( "IL2067" , nameof ( DataFlowTypeExtensions ) + "." + nameof ( DataFlowTypeExtensions . RequiresPublicConstructors ) ) ]
76+ [ ExpectedWarning ( "IL2067" , nameof ( DataFlowTypeExtensions ) + "." + nameof ( DataFlowTypeExtensions . RequiresPublicParameterlessConstructor ) ) ]
77+ [ ExpectedWarning ( "IL2067" , nameof ( DataFlowTypeExtensions ) + "." + nameof ( DataFlowTypeExtensions . RequiresPublicConstructors ) ) ]
7878 private static void NonPublicConstructorsParameter (
7979 [ DynamicallyAccessedMembers ( DynamicallyAccessedMemberTypes . NonPublicConstructors ) ]
8080 Type type )
@@ -84,7 +84,7 @@ private static void NonPublicConstructorsParameter(
8484 type . RequiresNonPublicConstructors ( ) ;
8585 }
8686
87- [ ExpectedWarning ( "IL2067" , nameof ( DataFlowTypeExtensions ) + "." + nameof ( DataFlowTypeExtensions . RequiresPublicConstructors ) ) ]
87+ [ ExpectedWarning ( "IL2067" , nameof ( DataFlowTypeExtensions ) + "." + nameof ( DataFlowTypeExtensions . RequiresPublicConstructors ) ) ]
8888 private void InstanceMethod (
8989 [ DynamicallyAccessedMembers ( DynamicallyAccessedMemberTypes . PublicParameterlessConstructor ) ]
9090 Type type )
@@ -161,7 +161,7 @@ private void TwoAnnotatedParametersIntoOneValue(
161161 }
162162
163163 // Validate the error message for the case of unannotated method return value passed to an annotated parameter.
164- [ ExpectedWarning ( "IL2067" , "'type'" , "NoAnnotation(Type)" , "'type'" , nameof ( DataFlowTypeExtensions . RequiresPublicParameterlessConstructor ) + "(Type)" ) ]
164+ [ ExpectedWarning ( "IL2067" , "'type'" , "NoAnnotation(Type)" , "'type'" , nameof ( DataFlowTypeExtensions . RequiresPublicParameterlessConstructor ) + "(Type)" ) ]
165165 private void NoAnnotation ( Type type )
166166 {
167167 type . RequiresPublicParameterlessConstructor ( ) ;
0 commit comments