3 references to CanRewriteForEachAsFor
Microsoft.CodeAnalysis.CSharp (3)
Binder\ForEachLoopBinder.cs (2)
1299
!LocalRewriter.
CanRewriteForEachAsFor
(Compilation, syntax, collectionType, out _, out _, BindingDiagnosticBag.Discarded))
1829
!LocalRewriter.
CanRewriteForEachAsFor
(Compilation, collectionSyntax, type, out _, out _, BindingDiagnosticBag.Discarded))
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
73
return
CanRewriteForEachAsFor
(_compilation, forEachSyntax, nodeExpressionType, out indexerGet, out lengthGet, _diagnostics);