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)
135312Diagnostic(ErrorCode.WRN_AssignmentToSelf, "a = a").WithLocation(11, 9), 135321Diagnostic(ErrorCode.WRN_AssignmentToSelf, "b.F = b.F").WithLocation(14, 9), 135356Diagnostic(ErrorCode.WRN_AssignmentToSelf, "a = a").WithLocation(15, 9), 135359Diagnostic(ErrorCode.WRN_AssignmentToSelf, "b.A = b.A").WithLocation(18, 9)); 135383Diagnostic(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)
22359new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.WRN_AssignmentToSelf, Line = 7, Column = 7, IsWarning = true } }); 22407Diagnostic(ErrorCode.WRN_AssignmentToSelf, "l = l"), 22410Diagnostic(ErrorCode.WRN_AssignmentToSelf, "p = p"), 22413Diagnostic(ErrorCode.WRN_AssignmentToSelf, "f = f"), 22416Diagnostic(ErrorCode.WRN_AssignmentToSelf, "e = e")); 22452Diagnostic(ErrorCode.WRN_AssignmentToSelf, "f = this.f"), 22455Diagnostic(ErrorCode.WRN_AssignmentToSelf, "e = this.e"), 22458Diagnostic(ErrorCode.WRN_AssignmentToSelf, "sf = sf"), 22461Diagnostic(ErrorCode.WRN_AssignmentToSelf, "se = se"), 22464Diagnostic(ErrorCode.WRN_AssignmentToSelf, "sf = Program.sf"), 22467Diagnostic(ErrorCode.WRN_AssignmentToSelf, "se = Program.se")); 22541Diagnostic(ErrorCode.WRN_AssignmentToSelf, "b = (byte)b"), 22544Diagnostic(ErrorCode.WRN_AssignmentToSelf, "sb = (sbyte)sb"), 22547Diagnostic(ErrorCode.WRN_AssignmentToSelf, "s = (short)s"), 22550Diagnostic(ErrorCode.WRN_AssignmentToSelf, "us = (ushort)us"), 22553Diagnostic(ErrorCode.WRN_AssignmentToSelf, "i = (int)i"), 22556Diagnostic(ErrorCode.WRN_AssignmentToSelf, "ui = (uint)ui"), 22559Diagnostic(ErrorCode.WRN_AssignmentToSelf, "l = (long)l"), 22562Diagnostic(ErrorCode.WRN_AssignmentToSelf, "ul = (ulong)ul"), 22565Diagnostic(ErrorCode.WRN_AssignmentToSelf, "f = (float)f"), 22568Diagnostic(ErrorCode.WRN_AssignmentToSelf, "d = (double)d"), 22571Diagnostic(ErrorCode.WRN_AssignmentToSelf, "m = (decimal)m"), 22574Diagnostic(ErrorCode.WRN_AssignmentToSelf, "bo = (bool)bo"), 22577Diagnostic(ErrorCode.WRN_AssignmentToSelf, "o = (object)o"), 22580Diagnostic(ErrorCode.WRN_AssignmentToSelf, "cl = (C)cl"), 22583Diagnostic(ErrorCode.WRN_AssignmentToSelf, "st = (S)st"));