1 instantiation of AwaitExpressionInfo
Microsoft.CodeAnalysis.CSharp (1)
Compilation\MemberSemanticModel.cs (1)
929
return new
AwaitExpressionInfo
(
31 references to AwaitExpressionInfo
Microsoft.CodeAnalysis.CSharp (11)
Compilation\AwaitExpressionInfo.cs (3)
13
public readonly struct AwaitExpressionInfo : IEquatable<
AwaitExpressionInfo
>
33
return obj is
AwaitExpressionInfo
otherAwait && Equals(otherAwait);
36
public bool Equals(
AwaitExpressionInfo
other)
Compilation\CSharpSemanticModel.cs (1)
4835
public abstract
AwaitExpressionInfo
GetAwaitExpressionInfo(AwaitExpressionSyntax node);
Compilation\MemberSemanticModel.cs (2)
915
public override
AwaitExpressionInfo
GetAwaitExpressionInfo(AwaitExpressionSyntax node)
926
return default(
AwaitExpressionInfo
);
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
395
public override
AwaitExpressionInfo
GetAwaitExpressionInfo(AwaitExpressionSyntax node)
Compilation\SyntaxTreeSemanticModel.cs (2)
2354
public override
AwaitExpressionInfo
GetAwaitExpressionInfo(AwaitExpressionSyntax node)
2357
return memberModel == null ? default(
AwaitExpressionInfo
) : memberModel.GetAwaitExpressionInfo(node);
CSharpExtensions.cs (2)
927
public static
AwaitExpressionInfo
GetAwaitExpressionInfo(this SemanticModel? semanticModel, AwaitExpressionSyntax awaitExpression)
936
return default(
AwaitExpressionInfo
);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
194
var
info = semanticModel.GetAwaitExpressionInfo(awaitExpression);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenAwaitUsingTests.cs (10)
2296
var
first = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), getResult1.GetPublicSymbol(), false);
2298
var
nulls1 = new AwaitExpressionInfo(null, isCompleted1.GetPublicSymbol(), getResult1.GetPublicSymbol(), false);
2299
var
nulls2 = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), null, getResult1.GetPublicSymbol(), false);
2300
var
nulls3 = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), null, false);
2301
var
nulls4 = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), null, true);
2324
var
second1 = new AwaitExpressionInfo(getAwaiter2.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), getResult1.GetPublicSymbol(), false);
2325
var
second2 = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted2.GetPublicSymbol(), getResult1.GetPublicSymbol(), false);
2326
var
second3 = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), getResult2.GetPublicSymbol(), false);
2327
var
second4 = new AwaitExpressionInfo(getAwaiter2.GetPublicSymbol(), isCompleted2.GetPublicSymbol(), getResult2.GetPublicSymbol(), false);
2342
var
another = new AwaitExpressionInfo(getAwaiter1.GetPublicSymbol(), isCompleted1.GetPublicSymbol(), getResult1.GetPublicSymbol(), false);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\AwaitExpressionTests.cs (8)
87
var
info = model.GetAwaitExpressionInfo(awaitExpression);
116
var
info = GetAwaitExpressionInfo(text);
134
var
info = GetAwaitExpressionInfo(text);
144
AwaitExpressionInfo
info = default;
152
private
AwaitExpressionInfo
GetAwaitExpressionInfo(string text, out CSharpCompilation compilation, params DiagnosticDescription[] diagnostics)
163
private
AwaitExpressionInfo
GetAwaitExpressionInfo(string text, params DiagnosticDescription[] diagnostics)
264
var
info = GetAwaitExpressionInfo(text, out compilation,
295
var
info = model.GetAwaitExpressionInfo(expr);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
194
var
info = semanticModel.GetAwaitExpressionInfo(awaitExpression);