9 references to WRN_ByRefNonAgileField
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
333case ErrorCode.WRN_ByRefNonAgileField: 776or 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)
19477Diagnostic(ErrorCode.WRN_ByRefNonAgileField, "x.i").WithArguments("X.i")); 19526Diagnostic(ErrorCode.WRN_ByRefNonAgileField, "b.Instance").WithArguments("ByRef.Instance"), 19529Diagnostic(ErrorCode.WRN_ByRefNonAgileField, "b.Instance").WithArguments("ByRef.Instance")); 19571Diagnostic(ErrorCode.WRN_ByRefNonAgileField, "((ByRef)this).F").WithArguments("ByRef.F"), 19574Diagnostic(ErrorCode.WRN_ByRefNonAgileField, "((ByRef)this).F").WithArguments("ByRef.F"));