15 references to WRN_VolatileByRef
Microsoft.CodeAnalysis.CSharp (4)
Errors\ErrorFacts.cs (2)
339
case ErrorCode.
WRN_VolatileByRef
:
888
or ErrorCode.
WRN_VolatileByRef
Generated\ErrorFacts.Generated.cs (1)
34
case ErrorCode.
WRN_VolatileByRef
:
Lowering\DiagnosticsPass_Warnings.cs (1)
63
Error(ErrorCode.
WRN_VolatileByRef
, fieldAccess, fieldSymbol);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\SemanticErrorTests.cs (8)
20244
Diagnostic(ErrorCode.
WRN_VolatileByRef
, "x.i").WithArguments("TestClass.i"),
20246
Diagnostic(ErrorCode.
WRN_VolatileByRef
, "x.i").WithArguments("TestClass.i"));
20304
Diagnostic(ErrorCode.
WRN_VolatileByRef
, "x").WithArguments("TestClass.x"),
20306
Diagnostic(ErrorCode.
WRN_VolatileByRef
, "x").WithArguments("TestClass.x"),
20308
Diagnostic(ErrorCode.
WRN_VolatileByRef
, "x").WithArguments("TestClass.x"),
20310
Diagnostic(ErrorCode.
WRN_VolatileByRef
, "x").WithArguments("TestClass.x"),
20312
Diagnostic(ErrorCode.
WRN_VolatileByRef
, "x").WithArguments("TestClass.x"));
20338
Diagnostic(ErrorCode.
WRN_VolatileByRef
, "x").WithArguments("Test.x"));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Diagnostics\DiagnosticTest.cs (3)
577
Diagnostic(ErrorCode.
WRN_VolatileByRef
, "i").WithArguments("C.i"));
588
Diagnostic(ErrorCode.
WRN_VolatileByRef
, "i").WithArguments("C.i").WithWarningAsError(true));
595
Diagnostic(ErrorCode.
WRN_VolatileByRef
, "i").WithArguments("C.i").WithWarningAsError(true));