54 references to WRN_AssignmentToSelf
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (2)
282case ErrorCode.WRN_AssignmentToSelf: 1361or ErrorCode.WRN_AssignmentToSelf
Generated\ErrorFacts.Generated.cs (1)
107case ErrorCode.WRN_AssignmentToSelf:
Lowering\DiagnosticsPass_Warnings.cs (2)
881Error(ErrorCode.WRN_AssignmentToSelf, node); 925Error(ErrorCode.WRN_AssignmentToSelf, leftArgument);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenDeconstructTests.cs (10)
6794Diagnostic(ErrorCode.WRN_AssignmentToSelf, "x").WithLocation(6, 26) 8232Diagnostic(ErrorCode.WRN_AssignmentToSelf, "x").WithLocation(8, 11), 8235Diagnostic(ErrorCode.WRN_AssignmentToSelf, "this.x").WithLocation(8, 18), 8238Diagnostic(ErrorCode.WRN_AssignmentToSelf, "C.y").WithLocation(8, 26) 8263Diagnostic(ErrorCode.WRN_AssignmentToSelf, "x"), 8266Diagnostic(ErrorCode.WRN_AssignmentToSelf, "y").WithLocation(9, 14), 8269Diagnostic(ErrorCode.WRN_AssignmentToSelf, "z").WithLocation(9, 17) 8298Diagnostic(ErrorCode.WRN_AssignmentToSelf, "x").WithLocation(8, 10) 8328Diagnostic(ErrorCode.WRN_AssignmentToSelf, "x").WithLocation(14, 14) 8413Diagnostic(ErrorCode.WRN_AssignmentToSelf, "x").WithLocation(9, 10)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_ISwitchOperation.cs (1)
1125Diagnostic(ErrorCode.WRN_AssignmentToSelf, "result = result").WithLocation(12, 17)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (38)
Semantics\LambdaTests.cs (1)
1642Diagnostic(ErrorCode.WRN_AssignmentToSelf, "y = y").WithLocation(9, 45),
Semantics\NullableReferenceTypesTests.cs (5)
135293Diagnostic(ErrorCode.WRN_AssignmentToSelf, "a = a").WithLocation(11, 9), 135302Diagnostic(ErrorCode.WRN_AssignmentToSelf, "b.F = b.F").WithLocation(14, 9), 135337Diagnostic(ErrorCode.WRN_AssignmentToSelf, "a = a").WithLocation(15, 9), 135340Diagnostic(ErrorCode.WRN_AssignmentToSelf, "b.A = b.A").WithLocation(18, 9)); 135364Diagnostic(ErrorCode.WRN_AssignmentToSelf, "c.F = c.F").WithLocation(10, 9),
Semantics\RefEscapingTests.cs (1)
479Diagnostic(ErrorCode.WRN_AssignmentToSelf, "sp = sp").WithLocation(28, 13)
Semantics\SemanticAnalyzerTests.cs (5)
883Diagnostic(ErrorCode.WRN_AssignmentToSelf, "x = x"), 886Diagnostic(ErrorCode.WRN_AssignmentToSelf, "y = y"), 889Diagnostic(ErrorCode.WRN_AssignmentToSelf, "s1.z = s1.z"), 892Diagnostic(ErrorCode.WRN_AssignmentToSelf, "s2.z = s2.z"), 895Diagnostic(ErrorCode.WRN_AssignmentToSelf, "q = q"));
Semantics\SemanticErrorTests.cs (26)
22314new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.WRN_AssignmentToSelf, Line = 7, Column = 7, IsWarning = true } }); 22362Diagnostic(ErrorCode.WRN_AssignmentToSelf, "l = l"), 22365Diagnostic(ErrorCode.WRN_AssignmentToSelf, "p = p"), 22368Diagnostic(ErrorCode.WRN_AssignmentToSelf, "f = f"), 22371Diagnostic(ErrorCode.WRN_AssignmentToSelf, "e = e")); 22407Diagnostic(ErrorCode.WRN_AssignmentToSelf, "f = this.f"), 22410Diagnostic(ErrorCode.WRN_AssignmentToSelf, "e = this.e"), 22413Diagnostic(ErrorCode.WRN_AssignmentToSelf, "sf = sf"), 22416Diagnostic(ErrorCode.WRN_AssignmentToSelf, "se = se"), 22419Diagnostic(ErrorCode.WRN_AssignmentToSelf, "sf = Program.sf"), 22422Diagnostic(ErrorCode.WRN_AssignmentToSelf, "se = Program.se")); 22496Diagnostic(ErrorCode.WRN_AssignmentToSelf, "b = (byte)b"), 22499Diagnostic(ErrorCode.WRN_AssignmentToSelf, "sb = (sbyte)sb"), 22502Diagnostic(ErrorCode.WRN_AssignmentToSelf, "s = (short)s"), 22505Diagnostic(ErrorCode.WRN_AssignmentToSelf, "us = (ushort)us"), 22508Diagnostic(ErrorCode.WRN_AssignmentToSelf, "i = (int)i"), 22511Diagnostic(ErrorCode.WRN_AssignmentToSelf, "ui = (uint)ui"), 22514Diagnostic(ErrorCode.WRN_AssignmentToSelf, "l = (long)l"), 22517Diagnostic(ErrorCode.WRN_AssignmentToSelf, "ul = (ulong)ul"), 22520Diagnostic(ErrorCode.WRN_AssignmentToSelf, "f = (float)f"), 22523Diagnostic(ErrorCode.WRN_AssignmentToSelf, "d = (double)d"), 22526Diagnostic(ErrorCode.WRN_AssignmentToSelf, "m = (decimal)m"), 22529Diagnostic(ErrorCode.WRN_AssignmentToSelf, "bo = (bool)bo"), 22532Diagnostic(ErrorCode.WRN_AssignmentToSelf, "o = (object)o"), 22535Diagnostic(ErrorCode.WRN_AssignmentToSelf, "cl = (C)cl"), 22538Diagnostic(ErrorCode.WRN_AssignmentToSelf, "st = (S)st"));