6 references to InvalidStatementDescriptor
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Diagnostics\OperationAnalyzerTests.cs (2)
151
Diagnostic(BadStuffTestAnalyzer.
InvalidStatementDescriptor
.Id, "goto;").WithLocation(11, 9),
153
Diagnostic(BadStuffTestAnalyzer.
InvalidStatementDescriptor
.Id, "").WithLocation(11, 13),
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\OperationTestAnalyzer.cs (2)
48
get { return ImmutableArray.Create(InvalidExpressionDescriptor,
InvalidStatementDescriptor
, IsInvalidDescriptor); }
59
operationContext.ReportDiagnostic(Diagnostic.Create(
InvalidStatementDescriptor
, operationContext.Operation.Syntax.GetLocation()));
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Diagnostics\OperationAnalyzerTests.vb (2)
140
Diagnostic(BadStuffTestAnalyzer.
InvalidStatementDescriptor
.Id, "Goto").WithLocation(8, 9),
142
Diagnostic(BadStuffTestAnalyzer.
InvalidStatementDescriptor
.Id, "").WithLocation(8, 13),