1 write to GetAwaiterMethod
Microsoft.CodeAnalysis.CSharp (1)
Compilation\AwaitExpressionInfo.cs (1)
43GetAwaiterMethod = getAwaiter;
31 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)
192return info.GetAwaiterMethod;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
Semantics\AwaitExpressionTests.cs (18)
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()); 318Assert.Null(info.GetAwaiterMethod); 437Assert.Equal("System.Runtime.CompilerServices.TaskAwaiter<System.Int32> System.Threading.Tasks.Task<System.Int32>.GetAwaiter()", info.GetAwaiterMethod.ToTestDisplayString()); 465Assert.Null(info.GetAwaiterMethod); 624Assert.Null(info.GetAwaiterMethod); 631AssertEx.Equal("System.Runtime.CompilerServices.ValueTaskAwaiter System.Threading.Tasks.ValueTask.GetAwaiter()", info.GetAwaiterMethod.ToTestDisplayString()); 675Assert.Null(info.GetAwaiterMethod); 682AssertEx.Equal("System.Runtime.CompilerServices.ValueTaskAwaiter System.Threading.Tasks.ValueTask.GetAwaiter()", info.GetAwaiterMethod.ToTestDisplayString()); 786Assert.NotNull(info.GetAwaiterMethod); 787Assert.Equal("MyAwaiter MyValueTask.GetAwaiter()", info.GetAwaiterMethod.ToTestDisplayString()); 850Assert.NotNull(info.GetAwaiterMethod); 851Assert.Equal("MyAwaiter MyValueTask.GetAwaiter()", info.GetAwaiterMethod.ToTestDisplayString()); 895AssertEx.Equal("System.Runtime.CompilerServices.ValueTaskAwaiter System.Threading.Tasks.ValueTask.GetAwaiter()", speculativeInfo.GetAwaiterMethod.ToTestDisplayString()); 924AssertEx.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)
192return info.GetAwaiterMethod;
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
192return info.GetAwaiterMethod;