6 references to LabelDescriptor
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Diagnostics\OperationAnalyzerTests.cs (2)
1508
Diagnostic(LabelOperationsTestAnalyzer.
LabelDescriptor
.Id, "Wilma: goto Betty;").WithLocation(6, 9),
1510
Diagnostic(LabelOperationsTestAnalyzer.
LabelDescriptor
.Id, "Betty: goto Wilma;").WithLocation(7, 9),
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\OperationTestAnalyzer.cs (2)
1442
public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
LabelDescriptor
, GotoDescriptor);
1452
operationContext.ReportDiagnostic(Diagnostic.Create(
LabelDescriptor
, operationContext.Operation.Syntax.GetLocation()));
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Diagnostics\OperationAnalyzerTests.vb (2)
1485
Diagnostic(LabelOperationsTestAnalyzer.
LabelDescriptor
.Id, "Wilma:").WithLocation(3, 9),
1487
Diagnostic(LabelOperationsTestAnalyzer.
LabelDescriptor
.Id, "Betty:").WithLocation(5, 9),