9 references to WRN_ByRefNonAgileField
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
338case ErrorCode.WRN_ByRefNonAgileField: 788or ErrorCode.WRN_ByRefNonAgileField
Generated\ErrorFacts.Generated.cs (1)
22case ErrorCode.WRN_ByRefNonAgileField:
Lowering\DiagnosticsPass_Warnings.cs (1)
68Error(ErrorCode.WRN_ByRefNonAgileField, fieldAccess, fieldSymbol);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\SemanticErrorTests.cs (5)
19547Diagnostic(ErrorCode.WRN_ByRefNonAgileField, "x.i").WithArguments("X.i")); 19596Diagnostic(ErrorCode.WRN_ByRefNonAgileField, "b.Instance").WithArguments("ByRef.Instance"), 19599Diagnostic(ErrorCode.WRN_ByRefNonAgileField, "b.Instance").WithArguments("ByRef.Instance")); 19641Diagnostic(ErrorCode.WRN_ByRefNonAgileField, "((ByRef)this).F").WithArguments("ByRef.F"), 19644Diagnostic(ErrorCode.WRN_ByRefNonAgileField, "((ByRef)this).F").WithArguments("ByRef.F"));