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