6 references to TooManyStatementsInLambdaExpressionDescriptor
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Diagnostics\OperationAnalyzerTests.cs (2)
1436
Diagnostic(LambdaTestAnalyzer.
TooManyStatementsInLambdaExpressionDescriptor
.Id, "input => { input++; input++; if (input > 0) return true; return false; }").WithLocation(10, 32),
1439
Diagnostic(LambdaTestAnalyzer.
TooManyStatementsInLambdaExpressionDescriptor
.Id, "(s, e) => { int i = 0; i++; i++; i++; }").WithLocation(23, 19));
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\OperationTestAnalyzer.cs (2)
1305
TooManyStatementsInLambdaExpressionDescriptor
,
1323
operationContext.ReportDiagnostic(Diagnostic.Create(
TooManyStatementsInLambdaExpressionDescriptor
, operationContext.Operation.Syntax.GetLocation()));
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Diagnostics\OperationAnalyzerTests.vb (2)
1392
Diagnostic(LambdaTestAnalyzer.
TooManyStatementsInLambdaExpressionDescriptor
.Id, "Sub(s As Object, a As EventArgs)
1404
Diagnostic(LambdaTestAnalyzer.
TooManyStatementsInLambdaExpressionDescriptor
.Id, "Function(value As Integer)