15 references to WRN_VolatileByRef
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
321case ErrorCode.WRN_VolatileByRef: 814case ErrorCode.WRN_VolatileByRef:
Generated\ErrorFacts.Generated.cs (1)
34case ErrorCode.WRN_VolatileByRef:
Lowering\DiagnosticsPass_Warnings.cs (1)
63Error(ErrorCode.WRN_VolatileByRef, fieldAccess, fieldSymbol);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\SemanticErrorTests.cs (8)
19950Diagnostic(ErrorCode.WRN_VolatileByRef, "x.i").WithArguments("TestClass.i"), 19952Diagnostic(ErrorCode.WRN_VolatileByRef, "x.i").WithArguments("TestClass.i")); 20010Diagnostic(ErrorCode.WRN_VolatileByRef, "x").WithArguments("TestClass.x"), 20012Diagnostic(ErrorCode.WRN_VolatileByRef, "x").WithArguments("TestClass.x"), 20014Diagnostic(ErrorCode.WRN_VolatileByRef, "x").WithArguments("TestClass.x"), 20016Diagnostic(ErrorCode.WRN_VolatileByRef, "x").WithArguments("TestClass.x"), 20018Diagnostic(ErrorCode.WRN_VolatileByRef, "x").WithArguments("TestClass.x")); 20044Diagnostic(ErrorCode.WRN_VolatileByRef, "x").WithArguments("Test.x"));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Diagnostics\DiagnosticTest.cs (3)
535Diagnostic(ErrorCode.WRN_VolatileByRef, "i").WithArguments("C.i")); 546Diagnostic(ErrorCode.WRN_VolatileByRef, "i").WithArguments("C.i").WithWarningAsError(true)); 553Diagnostic(ErrorCode.WRN_VolatileByRef, "i").WithArguments("C.i").WithWarningAsError(true));