1 write to GetResultMethod
Microsoft.CodeAnalysis.CSharp (1)
Compilation\AwaitExpressionInfo.cs (1)
45
GetResultMethod
= 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
)
66
return Hash.Combine(GetAwaiterMethod, Hash.Combine(IsCompletedProperty, Hash.Combine(
GetResultMethod
, Hash.Combine(RuntimeAwaitMethod, IsDynamic.GetHashCode()))));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (16)
Semantics\AwaitExpressionTests.cs (16)
95
info.
GetResultMethod
.ToTestDisplayString()
120
Assert.Equal("System.Int32 System.Runtime.CompilerServices.TaskAwaiter<System.Int32>.GetResult()", info.
GetResultMethod
.ToTestDisplayString());
254
Assert.Equal("System.Int32 System.Runtime.CompilerServices.TaskAwaiter<System.Int32>.GetResult()", info.
GetResultMethod
.ToTestDisplayString());
280
Assert.Null(info.
GetResultMethod
);
306
AssertEx.Equal("void System.Runtime.CompilerServices.YieldAwaitable.YieldAwaiter.GetResult()", info.
GetResultMethod
.ToTestDisplayString());
319
Assert.Null(info.
GetResultMethod
);
438
Assert.Equal("System.Int32 System.Runtime.CompilerServices.TaskAwaiter<System.Int32>.GetResult()", info.
GetResultMethod
.ToTestDisplayString());
467
Assert.Null(info.
GetResultMethod
);
626
Assert.Null(info.
GetResultMethod
);
633
Assert.NotNull(info.
GetResultMethod
);
677
Assert.Null(info.
GetResultMethod
);
684
Assert.NotNull(info.
GetResultMethod
);
790
Assert.NotNull(info.
GetResultMethod
);
791
Assert.Equal("void MyAwaiter.GetResult()", info.
GetResultMethod
.ToTestDisplayString());
854
Assert.NotNull(info.
GetResultMethod
);
855
Assert.Equal("void MyAwaiter.GetResult()", info.
GetResultMethod
.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Compilation\ForEachStatementInfoTests.cs (6)
127
Assert.Null(moveNextAwaitInfo.
GetResultMethod
);
136
Assert.NotNull(moveNextAwaitInfo.
GetResultMethod
);
147
Assert.Null(disposeAwaitInfo.
GetResultMethod
);
156
Assert.NotNull(disposeAwaitInfo.
GetResultMethod
);
191
Assert.Null(moveNextAwaitInfo.
GetResultMethod
);
197
Assert.Null(disposeAwaitInfo.
GetResultMethod
);