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