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