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