1 write to PatternDisposeInfo
Microsoft.CodeAnalysis.CSharp (1)
Binder\ForEachEnumeratorInfo.cs (1)
88this.PatternDisposeInfo = patternDisposeInfo;
8 references to PatternDisposeInfo
Microsoft.CodeAnalysis.CSharp (8)
Compilation\MemberSemanticModel.cs (1)
974if (enumeratorInfoOpt.PatternDisposeInfo is { Method: var method })
FlowAnalysis\NullableWalker.cs (1)
11043if (enumeratorInfoOpt.PatternDisposeInfo is { Method: var originalDisposeMethod }) // no statically known Dispose method if doing a runtime check
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (3)
324MethodSymbol? disposeMethod = enumeratorInfo.PatternDisposeInfo?.Method; // pattern-based 351if (implementsInterface || !(enumeratorInfo.PatternDisposeInfo is null)) 359var disposeInfo = enumeratorInfo.PatternDisposeInfo;
Operations\CSharpOperationFactory.cs (3)
1916enumeratorInfoOpt.PatternDisposeInfo?.Method.GetPublicSymbol(), 1921disposeArguments: enumeratorInfoOpt.PatternDisposeInfo is object 1922? CreateDisposeArguments(enumeratorInfoOpt.PatternDisposeInfo)