1 write to NeedsDisposal
Microsoft.CodeAnalysis.CSharp (1)
Binder\ForEachEnumeratorInfo.cs (1)
86this.NeedsDisposal = needsDisposal;
5 references to NeedsDisposal
Microsoft.CodeAnalysis.CSharp (5)
Compilation\MemberSemanticModel.cs (1)
972if (enumeratorInfoOpt.NeedsDisposal)
FlowAnalysis\NullableWalker.cs (1)
11042if (enumeratorInfoOpt is { NeedsDisposal: true, DisposeAwaitableInfo: BoundAwaitableInfo awaitDisposalInfo })
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
317if (!enumeratorInfo.NeedsDisposal)
Operations\CSharpOperationFactory.cs (2)
1908needsDispose: enumeratorInfoOpt.NeedsDisposal, 1909knownToImplementIDisposable: enumeratorInfoOpt.NeedsDisposal ?