1 write to GetAwaiterMethod
Microsoft.CodeAnalysis.CSharp (1)
Compilation\AwaitExpressionInfo.cs (1)
43
GetAwaiterMethod
= getAwaiter;
31 references to GetAwaiterMethod
Microsoft.CodeAnalysis.CSharp (4)
Compilation\AwaitExpressionInfo.cs (4)
28
/// supported task type. In such cases, <see cref="
GetAwaiterMethod
" />,
57
return object.Equals(this.
GetAwaiterMethod
, other.
GetAwaiterMethod
)
66
return 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)
192
return info.
GetAwaiterMethod
;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
Semantics\AwaitExpressionTests.cs (18)
91
info.
GetAwaiterMethod
.ToTestDisplayString()
119
Assert.Equal("System.Runtime.CompilerServices.TaskAwaiter<System.Int32> System.Threading.Tasks.Task<System.Int32>.GetAwaiter()", info.
GetAwaiterMethod
.ToTestDisplayString());
253
Assert.Equal("System.Runtime.CompilerServices.TaskAwaiter<System.Int32> System.Threading.Tasks.Task<System.Int32>.GetAwaiter()", info.
GetAwaiterMethod
.ToTestDisplayString());
279
Assert.Null(info.
GetAwaiterMethod
);
305
AssertEx.Equal("System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter System.Runtime.CompilerServices.YieldAwaitable.GetAwaiter()", info.
GetAwaiterMethod
.ToTestDisplayString());
318
Assert.Null(info.
GetAwaiterMethod
);
437
Assert.Equal("System.Runtime.CompilerServices.TaskAwaiter<System.Int32> System.Threading.Tasks.Task<System.Int32>.GetAwaiter()", info.
GetAwaiterMethod
.ToTestDisplayString());
465
Assert.Null(info.
GetAwaiterMethod
);
624
Assert.Null(info.
GetAwaiterMethod
);
631
AssertEx.Equal("System.Runtime.CompilerServices.ValueTaskAwaiter System.Threading.Tasks.ValueTask.GetAwaiter()", info.
GetAwaiterMethod
.ToTestDisplayString());
675
Assert.Null(info.
GetAwaiterMethod
);
682
AssertEx.Equal("System.Runtime.CompilerServices.ValueTaskAwaiter System.Threading.Tasks.ValueTask.GetAwaiter()", info.
GetAwaiterMethod
.ToTestDisplayString());
786
Assert.NotNull(info.
GetAwaiterMethod
);
787
Assert.Equal("MyAwaiter MyValueTask.GetAwaiter()", info.
GetAwaiterMethod
.ToTestDisplayString());
850
Assert.NotNull(info.
GetAwaiterMethod
);
851
Assert.Equal("MyAwaiter MyValueTask.GetAwaiter()", info.
GetAwaiterMethod
.ToTestDisplayString());
895
AssertEx.Equal("System.Runtime.CompilerServices.ValueTaskAwaiter System.Threading.Tasks.ValueTask.GetAwaiter()", speculativeInfo.
GetAwaiterMethod
.ToTestDisplayString());
924
AssertEx.Equal("System.Runtime.CompilerServices.ValueTaskAwaiter System.Threading.Tasks.ValueTask.GetAwaiter()", speculativeInfo.
GetAwaiterMethod
.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Compilation\ForEachStatementInfoTests.cs (6)
125
Assert.Null(moveNextAwaitInfo.
GetAwaiterMethod
);
134
moveNextAwaitInfo.
GetAwaiterMethod
.ToTestDisplayString());
145
Assert.Null(disposeAwaitInfo.
GetAwaiterMethod
);
154
disposeAwaitInfo.
GetAwaiterMethod
.ToTestDisplayString());
189
Assert.Null(moveNextAwaitInfo.
GetAwaiterMethod
);
195
Assert.Null(disposeAwaitInfo.
GetAwaiterMethod
);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
192
return info.
GetAwaiterMethod
;
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
192
return info.
GetAwaiterMethod
;