21 references to WRN_ConvertingLock
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Conversions.cs (1)
284diagnostics.Add(ErrorCode.WRN_ConvertingLock, source.Syntax);
Binder\Binder_Operators.cs (1)
1062if ((ErrorCode)code is not ErrorCode.WRN_ConvertingLock)
Errors\ErrorFacts.cs (2)
568case ErrorCode.WRN_ConvertingLock: 2435or ErrorCode.WRN_ConvertingLock
Generated\ErrorFacts.Generated.cs (1)
340case ErrorCode.WRN_ConvertingLock:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
Semantics\LockTests.cs (14)
1898Diagnostic(ErrorCode.WRN_ConvertingLock, "l").WithLocation(68, 29), 1901Diagnostic(ErrorCode.WRN_ConvertingLock, "l4").WithLocation(68, 32), 1904Diagnostic(ErrorCode.WRN_ConvertingLock, "l").WithLocation(72, 22)); 4094Diagnostic(ErrorCode.WRN_ConvertingLock, "l").WithLocation(6, 13), 4097Diagnostic(ErrorCode.WRN_ConvertingLock, "l").WithLocation(9, 16), 4100Diagnostic(ErrorCode.WRN_ConvertingLock, "l").WithLocation(11, 7), 4103Diagnostic(ErrorCode.WRN_ConvertingLock, "l").WithLocation(13, 5)); 4159Diagnostic(ErrorCode.WRN_ConvertingLock, "new Lock()").WithLocation(7, 22)); 4217Diagnostic(ErrorCode.WRN_ConvertingLock, "new Lock()").WithLocation(14, 20), 4220Diagnostic(ErrorCode.WRN_ConvertingLock, "new Lock()").WithLocation(20, 20)); 4327Diagnostic(ErrorCode.WRN_ConvertingLock, "l2").WithLocation(30, 39), 4330Diagnostic(ErrorCode.WRN_ConvertingLock, "l2").WithLocation(36, 41)); 4447Diagnostic(ErrorCode.WRN_ConvertingLock, "new Lock()").WithLocation(4, 12)); 4564Diagnostic(ErrorCode.WRN_ConvertingLock, "new Lock()").WithLocation(4, 13));
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_ILockStatement.cs (1)
1720Diagnostic(ErrorCode.WRN_ConvertingLock, "l").WithLocation(9, 19)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
326case ErrorCode.WRN_ConvertingLock: