14 references to MemberInfo
Microsoft.CodeAnalysis.CSharp.CodeStyle (14)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
216
=> targetMethod != null && infoCache.TryGetMemberInfo(targetMethod, out
var
memberInfo)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs (3)
35
private readonly ConcurrentDictionary<IMethodSymbol,
MemberInfo
> _methodToMemberInfo = new();
56
public bool TryGetMemberInfo(IMethodSymbol methodSymbol, out
MemberInfo
memberInfo)
68
private
MemberInfo
ComputeMemberInfo(IMethodSymbol method)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (3)
129
if (!infoCache.TryGetMemberInfoOneArgument(targetMethod, out
var
memberInfo))
171
!infoCache.TryGetMemberInfo(targetMethod, out
var
memberInfo))
222
!infoCache.TryGetMemberInfo(targetMethod, out
var
memberInfo))
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (5)
31
private readonly ConcurrentDictionary<IMethodSymbol,
MemberInfo
> _methodToMemberInfo = new();
75
public bool TryGetMemberInfo(IMethodSymbol method, out
MemberInfo
memberInfo)
87
public bool TryGetMemberInfoOneArgument(IMethodSymbol method, out
MemberInfo
memberInfo)
114
var
newMemberInfo = _methodToMemberInfo.GetOrAdd(overloadWithTwoArguments, _ => ComputeMemberInfo(overloadWithTwoArguments, requireRangeMember: true));
122
private
MemberInfo
ComputeMemberInfo(IMethodSymbol sliceLikeMethod, bool requireRangeMember)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.Result.cs (2)
27
MemberInfo
memberInfo,
35
public readonly
MemberInfo
MemberInfo = memberInfo;