1 write to MethodSuffix
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (1)
Microsoft.NetCore.Analyzers\Performance\DoNotUseCountWhenAnyCanBeUsedTests.Code.cs (1)
33MethodSuffix = IsAsync ? "Async" : string.Empty;
16 references to MethodSuffix
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (16)
Microsoft.NetCore.Analyzers\Performance\DoNotUseCountWhenAnyCanBeUsedTests.Code.cs (8)
34MemberName = operationName + MethodSuffix; 58=> $@"{GetLogicalNotText(negate)}{GetTargetExpressionCode(withPredicate, "Any" + this.MethodSuffix)}"; 200public static {boolReturnType} Any{this.MethodSuffix}(this {targetType} q) => {boolReturnValue}; 201public static {boolReturnType} Any{this.MethodSuffix}<TSource>(this {targetTypeOfSource} q, {predicate} predicate) => {boolReturnValue}; 204public static {intReturnType} Sum{this.MethodSuffix}(this {targetType} q) => {intReturnValue}; 333Public Function Any{this.MethodSuffix}(q As {targetType}) As {boolReturnType} 337Public Function Any{this.MethodSuffix}(Of TSource)(q As {targetTypeOfSource}, predicate As {predicate}) As {boolReturnType} 349Public Function Sum{this.MethodSuffix}(q As {targetType}) As {intReturnType}
Microsoft.NetCore.Analyzers\Performance\DoNotUseCountWhenAnyCanBeUsedTests.Tests.cs (8)
50SourceProvider.GetTargetExpressionEqualsInvocationCode(0, false, "Sum" + SourceProvider.MethodSuffix), 60SourceProvider.GetEqualsTargetExpressionInvocationCode(0, false, "Sum" + SourceProvider.MethodSuffix), 71SourceProvider.GetTargetExpressionBinaryExpressionCode(value, @operator, false, "Sum" + SourceProvider.MethodSuffix), 82SourceProvider.GetTargetExpressionBinaryExpressionCode(value, @operator, false, "Sum" + SourceProvider.MethodSuffix), 1504SourceProvider.GetTargetExpressionEqualsInvocationCode(0, false, "Sum" + SourceProvider.MethodSuffix), 1514SourceProvider.GetEqualsTargetExpressionInvocationCode(0, false, "Sum" + SourceProvider.MethodSuffix), 1525SourceProvider.GetTargetExpressionBinaryExpressionCode(value, @operator, false, "Sum" + SourceProvider.MethodSuffix), 1536SourceProvider.GetTargetExpressionBinaryExpressionCode(value, @operator, false, "Sum" + SourceProvider.MethodSuffix),