Implemented interface member:
property
ForEachInfo
Microsoft.CodeAnalysis.ConvertLinq.ConvertForEachToLinqQuery.IConverter<TForEachStatement, TStatement>.ForEachInfo
1 write to ForEachInfo
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertLinq\ConvertForEachToLinqQuery\AbstractConverter.cs (1)
26=> ForEachInfo = forEachInfo;
25 references to ForEachInfo
Microsoft.CodeAnalysis.CSharp.Features (25)
ConvertLinq\ConvertForEachToLinqQuery\AbstractConverter.cs (9)
61CreateFromClause(ForEachInfo.ForEachStatement, ForEachInfo.LeadingTokens.GetTrivia(), Enumerable.Empty<SyntaxTrivia>()), 63SyntaxFactory.List(ForEachInfo.ConvertingExtendedNodes.Select(node => CreateQueryClause(node))), 65.WithCommentsFrom(leadingTokensForSelect, ForEachInfo.TrailingTokens.Concat(trailingTokensForSelect)), 130var foreachStatement = ForEachInfo.ForEachStatement; 131selectExpression = selectExpression.WithCommentsFrom(leadingTokensForSelect, ForEachInfo.TrailingTokens.Concat(trailingTokensForSelect)); 138leadingCommentsTrivia: ForEachInfo.LeadingTokens.GetTrivia(), 232if (extendedNodeIndex == ForEachInfo.ConvertingExtendedNodes.Length) 238var node = ForEachInfo.ConvertingExtendedNodes[extendedNodeIndex];
ConvertLinq\ConvertForEachToLinqQuery\AbstractToMethodConverter.cs (8)
59var previous = ForEachInfo.ForEachStatement.GetPreviousStatement(); 89ForEachInfo.SemanticModel.GetSymbolInfo(assignmentExpression.Left, cancellationToken).Symbol, 90ForEachInfo.SemanticModel.GetSymbolInfo(_modifyingExpression, cancellationToken).Symbol) && 104ForEachInfo.ForEachStatement, 114var expresisonSymbol = ForEachInfo.SemanticModel.GetSymbolInfo(_modifyingExpression, cancellationToken).Symbol; 116ForEachInfo.ForEachStatement.GetNextStatement() is ReturnStatementSyntax returnStatement && 119expresisonSymbol, ForEachInfo.SemanticModel.GetSymbolInfo(returnStatement.Expression, cancellationToken).Symbol)) 147editor.RemoveNode(ForEachInfo.ForEachStatement);
ConvertLinq\ConvertForEachToLinqQuery\DefaultConverter.cs (5)
31var variableNamesReadInside = new HashSet<string>(ForEachInfo.Statements 32.SelectMany(statement => ForEachInfo.SemanticModel.AnalyzeDataFlow(statement).ReadInside).Select(symbol => symbol.Name)); 33var identifiersUsedInStatements = ForEachInfo.Identifiers 39ForEachInfo.Statements.SelectAsArray(statement => statement.KeepCommentsAndAddElasticMarkers())); 42ForEachInfo.ForEachStatement,
ConvertLinq\ConvertForEachToLinqQuery\ToToListConverter.cs (2)
36ForEachInfo.SemanticModel.GetSymbolInfo(objectCreationExpression.Type, cancellationToken).Symbol is ITypeSymbol typeSymbol && 37CSharpConvertForEachToLinqQueryProvider.TypeSymbolIsList(typeSymbol, ForEachInfo.SemanticModel) &&
ConvertLinq\ConvertForEachToLinqQuery\YieldReturnConverter.cs (1)
44ForEachInfo.ForEachStatement,