1 write to GetResultMethod
Microsoft.CodeAnalysis.CSharp (1)
Compilation\AwaitExpressionInfo.cs (1)
45GetResultMethod = getResult;
28 references to GetResultMethod
Microsoft.CodeAnalysis.CSharp (4)
Compilation\AwaitExpressionInfo.cs (4)
29/// <see cref="IsCompletedProperty" />, and <see cref="GetResultMethod" /> will be 59&& object.Equals(this.GetResultMethod, other.GetResultMethod) 66return Hash.Combine(GetAwaiterMethod, Hash.Combine(IsCompletedProperty, Hash.Combine(GetResultMethod, Hash.Combine(RuntimeAwaitMethod, IsDynamic.GetHashCode()))));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
Semantics\AwaitExpressionTests.cs (18)
95info.GetResultMethod.ToTestDisplayString() 120Assert.Equal("System.Int32 System.Runtime.CompilerServices.TaskAwaiter<System.Int32>.GetResult()", info.GetResultMethod.ToTestDisplayString()); 254Assert.Equal("System.Int32 System.Runtime.CompilerServices.TaskAwaiter<System.Int32>.GetResult()", info.GetResultMethod.ToTestDisplayString()); 280Assert.Null(info.GetResultMethod); 306AssertEx.Equal("void System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.GetResult()", info.GetResultMethod.ToTestDisplayString()); 340Assert.Null(info.GetResultMethod); 386AssertEx.Equal("void MyAwaiter.GetResult()", info.GetResultMethod.ToTestDisplayString()); 399Assert.Null(info.GetResultMethod); 518Assert.Equal("System.Int32 System.Runtime.CompilerServices.TaskAwaiter<System.Int32>.GetResult()", info.GetResultMethod.ToTestDisplayString()); 547Assert.Null(info.GetResultMethod); 706Assert.Null(info.GetResultMethod); 713Assert.NotNull(info.GetResultMethod); 757Assert.Null(info.GetResultMethod); 764Assert.NotNull(info.GetResultMethod); 870Assert.NotNull(info.GetResultMethod); 871Assert.Equal("void MyAwaiter.GetResult()", info.GetResultMethod.ToTestDisplayString()); 934Assert.NotNull(info.GetResultMethod); 935Assert.Equal("void MyAwaiter.GetResult()", info.GetResultMethod.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Compilation\ForEachStatementInfoTests.cs (6)
127Assert.Null(moveNextAwaitInfo.GetResultMethod); 136Assert.NotNull(moveNextAwaitInfo.GetResultMethod); 147Assert.Null(disposeAwaitInfo.GetResultMethod); 156Assert.NotNull(disposeAwaitInfo.GetResultMethod); 191Assert.Null(moveNextAwaitInfo.GetResultMethod); 197Assert.Null(disposeAwaitInfo.GetResultMethod);