12 references to MemberInfo
Microsoft.CodeAnalysis.CSharp.Features (12)
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 (1)
164
MemberInfo
memberInfo)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (5)
31
private readonly ConcurrentDictionary<IMethodSymbol,
MemberInfo
> _methodToMemberInfo = new();
85
public bool TryGetMemberInfo(IMethodSymbol method, out
MemberInfo
memberInfo)
97
public bool TryGetMemberInfoOneArgument(IMethodSymbol method, out
MemberInfo
memberInfo)
122
var
newMemberInfo = _methodToMemberInfo.GetOrAdd(overloadWithTwoArguments, _ => ComputeMemberInfo(overloadWithTwoArguments, requireRangeMember: true));
130
private
MemberInfo
ComputeMemberInfo(IMethodSymbol sliceLikeMethod, bool requireRangeMember)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.Result.cs (2)
31
MemberInfo
memberInfo,
39
public readonly
MemberInfo
MemberInfo = memberInfo;