1 write to GetResult
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
2187
this.
GetResult
= getResult;
21 references to GetResult
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Await.cs (1)
41
TypeSymbol awaitExpressionType = (info.
GetResult
?? info.RuntimeAsyncAwaitCall?.Method)?.ReturnType ?? (hasErrors ? CreateErrorType() : Compilation.DynamicType);
Binder\ForEachLoopBinder.cs (1)
266
if (!hasErrors && (moveNextAwaitableInfo.
GetResult
?? moveNextAwaitableInfo.RuntimeAsyncAwaitCall?.Method)?.ReturnType.SpecialType != SpecialType.System_Boolean)
BoundTree\BoundAwaitableInfo.cs (2)
23
Debug.Assert(
GetResult
is null);
30
Debug.Assert(
GetResult
is not null);
Compilation\MemberSemanticModel.cs (1)
963
getResult: awaitableInfo.
GetResult
.GetPublicSymbol(),
FlowAnalysis\NullableWalker.cs (5)
12990
if (awaitableInfo is {
GetResult
: null, RuntimeAsyncAwaitCall: not null })
12995
else if (node.Type.IsValueType || node.HasErrors || awaitableInfo.
GetResult
is null)
13004
var getResult = awaitableInfo.
GetResult
;
13663
if (node is { GetAwaiter: null,
GetResult
: null, RuntimeAsyncAwaitCall: null, RuntimeAsyncAwaitCallPlaceholder: null })
13687
Debug.Assert(node.
GetResult
is null);
Generated\BoundNodes.xml.Generated.cs (4)
2209
if (awaitableInstancePlaceholder != this.AwaitableInstancePlaceholder || isDynamic != this.IsDynamic || getAwaiter != this.GetAwaiter || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(isCompleted, this.IsCompleted) || !Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(getResult, this.
GetResult
) || runtimeAsyncAwaitCall != this.RuntimeAsyncAwaitCall || runtimeAsyncAwaitCallPlaceholder != this.RuntimeAsyncAwaitCallPlaceholder)
11461
MethodSymbol? getResult = this.VisitMethodSymbol(node.
GetResult
);
13441
MethodSymbol? getResult = GetUpdatedSymbol(node, node.
GetResult
);
15967
new TreeDumperNode("getResult", node.
GetResult
, null),
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
366
MethodSymbol getResult = VisitMethodSymbol(node.AwaitableInfo.
GetResult
);
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (1)
200
var getResultMethod = awaitableInfo.
GetResult
;
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (1)
133
var getResult = VisitMethodSymbol(node.
GetResult
);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (3)
231
Debug.Assert(moveNextAwaitableInfo is {
GetResult
: not null } or { RuntimeAsyncAwaitCall: not null });
238
rewrittenCondition = RewriteAwaitExpression(forEachSyntax, rewrittenCondition, moveNextAwaitableInfo, (moveNextAwaitableInfo.
GetResult
?? moveNextAwaitableInfo.RuntimeAsyncAwaitCall!.Method)!.ReturnType, debugInfo, used: true);
487
TypeSymbol awaitExpressionType = disposeAwaitableInfoOpt.
GetResult
?.ReturnType ?? _compilation.DynamicType;
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
480
TypeSymbol awaitExpressionType = awaitOpt.
GetResult
?.ReturnType ?? _compilation.DynamicType;