6 references to GotoDescriptor
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Diagnostics\OperationAnalyzerTests.cs (2)
1509
Diagnostic(LabelOperationsTestAnalyzer.
GotoDescriptor
.Id, "goto Betty;").WithLocation(6, 16),
1511
Diagnostic(LabelOperationsTestAnalyzer.
GotoDescriptor
.Id, "goto Wilma;").WithLocation(7, 16));
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\OperationTestAnalyzer.cs (2)
1442
public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(LabelDescriptor,
GotoDescriptor
);
1466
operationContext.ReportDiagnostic(Diagnostic.Create(
GotoDescriptor
, branch.Syntax.GetLocation()));
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Diagnostics\OperationAnalyzerTests.vb (2)
1486
Diagnostic(LabelOperationsTestAnalyzer.
GotoDescriptor
.Id, "GoTo Betty").WithLocation(4, 9),
1488
Diagnostic(LabelOperationsTestAnalyzer.
GotoDescriptor
.Id, "GoTo Wilma").WithLocation(6, 9))