src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (11)
463if (semanticModel.GetSymbolInfo(invocationExpression, cancellationToken).Symbol is not IMethodSymbol method)
474var symbol = semanticModel.GetSymbolInfo(memberAccess, cancellationToken).Symbol;
485var methodOrProperty = semanticModel.GetSymbolInfo(elementAccess, cancellationToken).Symbol;
509var leftSymbol = semanticModel.GetSymbolInfo(assignment.Left, cancellationToken).Symbol;
557var symbol = semanticModel.GetSymbolInfo(identifier, cancellationToken).Symbol;
881if (semanticModel.GetSymbolInfo(memberAccessExpression, cancellationToken).Symbol is not IMethodSymbol { IsStatic: true } createMethod)
884if (semanticModel.GetSymbolInfo(memberAccessExpression.Expression, cancellationToken).Symbol is not INamedTypeSymbol factoryType)
1109var expressionSymbol = semanticModel.GetSymbolInfo(memberAccess.Expression, cancellationToken).Symbol;
1113var emptySymbol = semanticModel.GetSymbolInfo(memberAccess, cancellationToken).Symbol;
1141var expressionSymbol = semanticModel.GetSymbolInfo(memberAccess.Expression, cancellationToken).Symbol;
1145var emptySymbol = semanticModel.GetSymbolInfo(memberAccess, cancellationToken).Symbol;
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (11)
463if (semanticModel.GetSymbolInfo(invocationExpression, cancellationToken).Symbol is not IMethodSymbol method)
474var symbol = semanticModel.GetSymbolInfo(memberAccess, cancellationToken).Symbol;
485var methodOrProperty = semanticModel.GetSymbolInfo(elementAccess, cancellationToken).Symbol;
509var leftSymbol = semanticModel.GetSymbolInfo(assignment.Left, cancellationToken).Symbol;
557var symbol = semanticModel.GetSymbolInfo(identifier, cancellationToken).Symbol;
881if (semanticModel.GetSymbolInfo(memberAccessExpression, cancellationToken).Symbol is not IMethodSymbol { IsStatic: true } createMethod)
884if (semanticModel.GetSymbolInfo(memberAccessExpression.Expression, cancellationToken).Symbol is not INamedTypeSymbol factoryType)
1109var expressionSymbol = semanticModel.GetSymbolInfo(memberAccess.Expression, cancellationToken).Symbol;
1113var emptySymbol = semanticModel.GetSymbolInfo(memberAccess, cancellationToken).Symbol;
1141var expressionSymbol = semanticModel.GetSymbolInfo(memberAccess.Expression, cancellationToken).Symbol;
1145var emptySymbol = semanticModel.GetSymbolInfo(memberAccess, cancellationToken).Symbol;