9 references to ERR_LabelShadow
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Statements.cs (1)
498
Error(diagnostics, ErrorCode.
ERR_LabelShadow
, node.Identifier, node.Identifier.ValueText);
Errors\ErrorFacts.cs (1)
744
or ErrorCode.
ERR_LabelShadow
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\GotoTest.cs (1)
1091
Diagnostic(ErrorCode.
ERR_LabelShadow
, "L").WithArguments("L").WithLocation(11, 1));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\NameCollisionTests.cs (4)
262
Diagnostic(ErrorCode.
ERR_LabelShadow
, "name1").WithArguments("name1"),
265
Diagnostic(ErrorCode.
ERR_LabelShadow
, "name2").WithArguments("name2"),
268
Diagnostic(ErrorCode.
ERR_LabelShadow
, "name1").WithArguments("name1"),
271
Diagnostic(ErrorCode.
ERR_LabelShadow
, "name2").WithArguments("name2"));
Semantics\SemanticErrorTests.cs (2)
5176
new ErrorDescription[] { new ErrorDescription { Code = (int)ErrorCode.
ERR_LabelShadow
, Line = 11, Column = 13 } });
5204
Diagnostic(ErrorCode.
ERR_LabelShadow
, "label1").WithArguments("label1"),