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