1 write to GetResultMethod
Microsoft.CodeAnalysis.CSharp (1)
Compilation\AwaitExpressionInfo.cs (1)
45GetResultMethod = getResult;
26 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 (16)
Semantics\AwaitExpressionTests.cs (16)
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()); 319Assert.Null(info.GetResultMethod); 438Assert.Equal("System.Int32 System.Runtime.CompilerServices.TaskAwaiter<System.Int32>.GetResult()", info.GetResultMethod.ToTestDisplayString()); 467Assert.Null(info.GetResultMethod); 626Assert.Null(info.GetResultMethod); 633Assert.NotNull(info.GetResultMethod); 677Assert.Null(info.GetResultMethod); 684Assert.NotNull(info.GetResultMethod); 790Assert.NotNull(info.GetResultMethod); 791Assert.Equal("void MyAwaiter.GetResult()", info.GetResultMethod.ToTestDisplayString()); 854Assert.NotNull(info.GetResultMethod); 855Assert.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);