1 write to GetAwaiterMethod
Microsoft.CodeAnalysis.CSharp (1)
Compilation\AwaitExpressionInfo.cs (1)
43GetAwaiterMethod = getAwaiter;
33 references to GetAwaiterMethod
Microsoft.CodeAnalysis.CSharp (4)
Compilation\AwaitExpressionInfo.cs (4)
28/// supported task type. In such cases, <see cref="GetAwaiterMethod" />, 57return object.Equals(this.GetAwaiterMethod, other.GetAwaiterMethod) 66return Hash.Combine(GetAwaiterMethod, Hash.Combine(IsCompletedProperty, Hash.Combine(GetResultMethod, Hash.Combine(RuntimeAwaitMethod, IsDynamic.GetHashCode()))));
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
200return info.GetAwaiterMethod;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
Semantics\AwaitExpressionTests.cs (20)
91info.GetAwaiterMethod.ToTestDisplayString() 119Assert.Equal("System.Runtime.CompilerServices.TaskAwaiter<System.Int32> System.Threading.Tasks.Task<System.Int32>.GetAwaiter()", info.GetAwaiterMethod.ToTestDisplayString()); 253Assert.Equal("System.Runtime.CompilerServices.TaskAwaiter<System.Int32> System.Threading.Tasks.Task<System.Int32>.GetAwaiter()", info.GetAwaiterMethod.ToTestDisplayString()); 279Assert.Null(info.GetAwaiterMethod); 305AssertEx.Equal("System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter System.Runtime.CompilerServices.YieldAwaitable.GetAwaiter()", info.GetAwaiterMethod.ToTestDisplayString()); 339Assert.Null(info.GetAwaiterMethod); 385AssertEx.Equal("MyAwaiter? MyTask.GetAwaiter()", info.GetAwaiterMethod.ToTestDisplayString()); 398Assert.Null(info.GetAwaiterMethod); 517Assert.Equal("System.Runtime.CompilerServices.TaskAwaiter<System.Int32> System.Threading.Tasks.Task<System.Int32>.GetAwaiter()", info.GetAwaiterMethod.ToTestDisplayString()); 545Assert.Null(info.GetAwaiterMethod); 704Assert.Null(info.GetAwaiterMethod); 711AssertEx.Equal("System.Runtime.CompilerServices.ValueTaskAwaiter System.Threading.Tasks.ValueTask.GetAwaiter()", info.GetAwaiterMethod.ToTestDisplayString()); 755Assert.Null(info.GetAwaiterMethod); 762AssertEx.Equal("System.Runtime.CompilerServices.ValueTaskAwaiter System.Threading.Tasks.ValueTask.GetAwaiter()", info.GetAwaiterMethod.ToTestDisplayString()); 866Assert.NotNull(info.GetAwaiterMethod); 867Assert.Equal("MyAwaiter MyValueTask.GetAwaiter()", info.GetAwaiterMethod.ToTestDisplayString()); 930Assert.NotNull(info.GetAwaiterMethod); 931Assert.Equal("MyAwaiter MyValueTask.GetAwaiter()", info.GetAwaiterMethod.ToTestDisplayString()); 975AssertEx.Equal("System.Runtime.CompilerServices.ValueTaskAwaiter System.Threading.Tasks.ValueTask.GetAwaiter()", speculativeInfo.GetAwaiterMethod.ToTestDisplayString()); 1004AssertEx.Equal("System.Runtime.CompilerServices.ValueTaskAwaiter System.Threading.Tasks.ValueTask.GetAwaiter()", speculativeInfo.GetAwaiterMethod.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Compilation\ForEachStatementInfoTests.cs (6)
125Assert.Null(moveNextAwaitInfo.GetAwaiterMethod); 134moveNextAwaitInfo.GetAwaiterMethod.ToTestDisplayString()); 145Assert.Null(disposeAwaitInfo.GetAwaiterMethod); 154disposeAwaitInfo.GetAwaiterMethod.ToTestDisplayString()); 189Assert.Null(moveNextAwaitInfo.GetAwaiterMethod); 195Assert.Null(disposeAwaitInfo.GetAwaiterMethod);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
200return info.GetAwaiterMethod;
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
200return info.GetAwaiterMethod;