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)
35private readonly ConcurrentDictionary<IMethodSymbol, MemberInfo> _methodToMemberInfo = new(); 56public bool TryGetMemberInfo(IMethodSymbol methodSymbol, out MemberInfo memberInfo) 68private MemberInfo ComputeMemberInfo(IMethodSymbol method)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (3)
129if (!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)
31private readonly ConcurrentDictionary<IMethodSymbol, MemberInfo> _methodToMemberInfo = new(); 75public bool TryGetMemberInfo(IMethodSymbol method, out MemberInfo memberInfo) 87public bool TryGetMemberInfoOneArgument(IMethodSymbol method, out MemberInfo memberInfo) 114var newMemberInfo = _methodToMemberInfo.GetOrAdd(overloadWithTwoArguments, _ => ComputeMemberInfo(overloadWithTwoArguments, requireRangeMember: true)); 122private MemberInfo ComputeMemberInfo(IMethodSymbol sliceLikeMethod, bool requireRangeMember)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.Result.cs (2)
27MemberInfo memberInfo, 35public readonly MemberInfo MemberInfo = memberInfo;