2 references to GetExpressionOfForeachStatement
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
74var collectionType = semanticModel.GetTypeInfo(syntaxFacts.GetExpressionOfForeachStatement(node), cancellationToken).Type;
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UseCollectionInitializerHelpers.cs (1)
46var expression = syntaxFacts.GetExpressionOfForeachStatement(match);