1 write to DisposeMethod
Microsoft.CodeAnalysis.CSharp (1)
Compilation\ForEachStatementInfo.cs (1)
78this.DisposeMethod = disposeMethod;
61 references to DisposeMethod
Microsoft.CodeAnalysis.CSharp (3)
Compilation\ForEachStatementInfo.cs (3)
95&& object.Equals(this.DisposeMethod, other.DisposeMethod) 107Hash.Combine(DisposeMethod,
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
179info.DisposeMethod,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (17)
CodeGen\CodeGenAwaitForeachTests.cs (16)
943Assert.Null(info.DisposeMethod); 1667Assert.Null(info.DisposeMethod); 3724Assert.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 4471Assert.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 4545Assert.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 4655Assert.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 4754Assert.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 5058Assert.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 5139Assert.Null(info.DisposeMethod); 5359Assert.Null(info.DisposeMethod); 6445Assert.Null(info.DisposeMethod); 9118info.DisposeMethod.ToTestDisplayString()); 9194info.DisposeMethod.ToTestDisplayString()); 9272info.DisposeMethod.ToTestDisplayString()); 9325Assert.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString()); 9404info.DisposeMethod.ToTestDisplayString());
CodeGen\CodeGenForEachTests.cs (1)
1761Assert.Equal("void DisposableEnumerator.Dispose()", info.DisposeMethod.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (30)
RefStructInterfacesTests.cs (27)
9026AssertEx.Equal("void S2.Dispose()", info.DisposeMethod.ToTestDisplayString()); 9230AssertEx.Equal("void S2.Dispose()", info.DisposeMethod.ToTestDisplayString()); 9394Assert.Null(info.DisposeMethod); 9594AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString()); 9818AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString()); 10027AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString()); 10254AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString()); 10637AssertEx.Equal("void S2.Dispose()", info.DisposeMethod.ToTestDisplayString()); 10834AssertEx.Equal("void S2.Dispose()", info.DisposeMethod.ToTestDisplayString()); 11075AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString()); 11302AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString()); 11514AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString()); 11614Assert.Null(info.DisposeMethod); 11709Assert.Null(info.DisposeMethod); 16765AssertEx.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 16830AssertEx.Equal("System.Threading.Tasks.ValueTask S2.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 16895AssertEx.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 16979AssertEx.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 17067AssertEx.Equal("System.Threading.Tasks.ValueTask IMyAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 17160Assert.Null(info.DisposeMethod); 17257AssertEx.Equal("System.Threading.Tasks.ValueTask System.IAsyncDisposable.DisposeAsync()", info.DisposeMethod.ToTestDisplayString()); 17341Assert.Null(info.DisposeMethod); 19207Assert.Null(info.DisposeMethod); 19378Assert.Null(info.DisposeMethod); 19535Assert.Null(info.DisposeMethod); 19703Assert.Null(info.DisposeMethod); 19871AssertEx.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
Semantics\InlineArrayTests.cs (3)
18599Assert.Null(forEachInfo.DisposeMethod); 18925Assert.Null(forEachInfo.DisposeMethod); 19262Assert.Null(forEachInfo.DisposeMethod);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\ForEachTests.cs (8)
2136Assert.Equal<ISymbol>(comp.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose).GetPublicSymbol(), loopInfo.DisposeMethod); 2188Assert.Equal<ISymbol>(comp.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose).GetPublicSymbol(), loopInfo0.DisposeMethod); 2197Assert.Equal(loopInfo0.DisposeMethod, loopInfo1.DisposeMethod); 3284Assert.Equal(enumeratorInfo.PatternDisposeInfo.Method.GetPublicSymbol(), statementInfo.DisposeMethod); 3288Assert.Equal("System.ValueTask System.IAsyncDisposable.DisposeAsync()", statementInfo.DisposeMethod.ToTestDisplayString()); 3292Assert.Equal("void System.IDisposable.Dispose()", statementInfo.DisposeMethod.ToTestDisplayString()); 3298Assert.Null(statementInfo.DisposeMethod);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
2004Assert.Equal("void System.IDisposable.Dispose()", info.DisposeMethod.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
179info.DisposeMethod,