103 references to AwaitExpression
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Expressions.cs (2)
779
case SyntaxKind.
AwaitExpression
:
8093
(node.Kind() == SyntaxKind.
AwaitExpression
&& plainName == WellKnownMemberNames.GetResult) ||
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
668
else if (nodeOpt?.Kind() == SyntaxKind.
AwaitExpression
&& symbol.Name == WellKnownMemberNames.GetAwaiter)
Compilation\MemberSemanticModel.cs (1)
917
if (node.Kind() != SyntaxKind.
AwaitExpression
)
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
371
Debug.Assert(node.Syntax.IsKind(SyntaxKind.
AwaitExpression
) || node.WasCompilerGenerated);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
536
SynthesizedLocalKind.Spill => awaitSyntaxOpt.IsKind(SyntaxKind.
AwaitExpression
) || awaitSyntaxOpt.IsKind(SyntaxKind.SwitchExpression),
Parser\LanguageParser.cs (2)
10853
case SyntaxKind.
AwaitExpression
:
11046
this.ParseSubExpression(GetPrecedence(SyntaxKind.
AwaitExpression
)));
Syntax\LambdaUtilities.cs (1)
431
case SyntaxKind.
AwaitExpression
:
Syntax\SyntaxBindingUtilities.cs (1)
15
node.IsKind(SyntaxKind.
AwaitExpression
) ||
Syntax\SyntaxFacts.cs (1)
419
case
AwaitExpression
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
571
case SyntaxKind.
AwaitExpression
:
727
case SyntaxKind.
AwaitExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
95
public int AwaitExpression => (int)SyntaxKind.
AwaitExpression
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1729
memberAccessExpression.Parent.IsParentKind(SyntaxKind.
AwaitExpression
))
Microsoft.CodeAnalysis.CSharp.Features (9)
CodeRefactorings\InlineMethod\CSharpInlineMethodRefactoringProvider.cs (1)
98
or SyntaxKind.
AwaitExpression
;
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (5)
1853
case SyntaxKind.
AwaitExpression
:
2174
case SyntaxKind.
AwaitExpression
:
2716
if (newNode.IsKind(SyntaxKind.
AwaitExpression
) && oldNode.IsKind(SyntaxKind.
AwaitExpression
))
2766
Debug.Assert(awaitExpression.IsKind(SyntaxKind.
AwaitExpression
));
EditAndContinue\SyntaxComparer.cs (1)
536
case SyntaxKind.
AwaitExpression
:
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
431
case SyntaxKind.
AwaitExpression
:
src\Compilers\CSharp\Portable\Syntax\SyntaxBindingUtilities.cs (1)
15
node.IsKind(SyntaxKind.
AwaitExpression
) ||
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\AwaitExpressionTests.cs (2)
158
var syntaxNode = (AwaitExpressionSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.
AwaitExpression
).AsNode();
294
var expr = (AwaitExpressionSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.
AwaitExpression
).AsNode();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (72)
IncrementalParsing\ChangingAsync.cs (4)
32
Assert.Equal(default(SyntaxNodeOrToken), oldTree.FindNodeOrTokenByKind(SyntaxKind.
AwaitExpression
));
33
Assert.NotEqual(default(SyntaxNodeOrToken), newTree.FindNodeOrTokenByKind(SyntaxKind.
AwaitExpression
));
53
Assert.NotEqual(default(SyntaxNodeOrToken), oldTree.FindNodeOrTokenByKind(SyntaxKind.
AwaitExpression
));
54
Assert.Equal(default(SyntaxNodeOrToken), newTree.FindNodeOrTokenByKind(SyntaxKind.
AwaitExpression
));
Parsing\AsyncStreamsParsingTests.cs (1)
413
N(SyntaxKind.
AwaitExpression
);
Parsing\AwaitParsingTests.cs (52)
65
N(SyntaxKind.
AwaitExpression
);
129
N(SyntaxKind.
AwaitExpression
);
194
N(SyntaxKind.
AwaitExpression
);
272
N(SyntaxKind.
AwaitExpression
);
381
N(SyntaxKind.
AwaitExpression
);
398
N(SyntaxKind.
AwaitExpression
);
445
N(SyntaxKind.
AwaitExpression
);
489
N(SyntaxKind.
AwaitExpression
);
533
N(SyntaxKind.
AwaitExpression
);
567
N(SyntaxKind.
AwaitExpression
);
595
N(SyntaxKind.
AwaitExpression
);
629
N(SyntaxKind.
AwaitExpression
);
663
N(SyntaxKind.
AwaitExpression
);
704
N(SyntaxKind.
AwaitExpression
);
741
N(SyntaxKind.
AwaitExpression
);
744
N(SyntaxKind.
AwaitExpression
);
775
N(SyntaxKind.
AwaitExpression
);
803
N(SyntaxKind.
AwaitExpression
);
836
N(SyntaxKind.
AwaitExpression
);
871
N(SyntaxKind.
AwaitExpression
);
900
N(SyntaxKind.
AwaitExpression
);
948
N(SyntaxKind.
AwaitExpression
);
993
N(SyntaxKind.
AwaitExpression
);
1062
N(SyntaxKind.
AwaitExpression
);
1123
N(SyntaxKind.
AwaitExpression
);
1171
N(SyntaxKind.
AwaitExpression
);
1208
N(SyntaxKind.
AwaitExpression
);
1261
N(SyntaxKind.
AwaitExpression
);
1396
N(SyntaxKind.
AwaitExpression
);
1476
N(SyntaxKind.
AwaitExpression
);
1646
N(SyntaxKind.
AwaitExpression
);
1860
N(SyntaxKind.
AwaitExpression
);
1886
N(SyntaxKind.
AwaitExpression
);
1889
N(SyntaxKind.
AwaitExpression
);
1916
N(SyntaxKind.
AwaitExpression
);
1958
N(SyntaxKind.
AwaitExpression
);
2000
N(SyntaxKind.
AwaitExpression
);
2042
N(SyntaxKind.
AwaitExpression
);
2073
N(SyntaxKind.
AwaitExpression
);
2105
N(SyntaxKind.
AwaitExpression
);
2137
N(SyntaxKind.
AwaitExpression
);
2169
N(SyntaxKind.
AwaitExpression
);
2195
N(SyntaxKind.
AwaitExpression
);
2221
N(SyntaxKind.
AwaitExpression
);
2247
N(SyntaxKind.
AwaitExpression
);
2273
N(SyntaxKind.
AwaitExpression
);
2299
N(SyntaxKind.
AwaitExpression
);
2325
N(SyntaxKind.
AwaitExpression
);
2361
N(SyntaxKind.
AwaitExpression
);
2455
N(SyntaxKind.
AwaitExpression
);
2593
N(SyntaxKind.
AwaitExpression
);
2639
N(SyntaxKind.
AwaitExpression
);
Parsing\CollectionExpressionParsingTests.cs (2)
6213
N(SyntaxKind.
AwaitExpression
);
6274
N(SyntaxKind.
AwaitExpression
);
Parsing\ExpressionParsingTests.cs (2)
3203
N(SyntaxKind.
AwaitExpression
);
3786
N(SyntaxKind.
AwaitExpression
);
Parsing\LambdaParameterParsingTests.cs (1)
5100
N(SyntaxKind.
AwaitExpression
);
Parsing\LocalFunctionParsingTests.cs (4)
134
N(SyntaxKind.
AwaitExpression
);
256
N(SyntaxKind.
AwaitExpression
);
1527
N(SyntaxKind.
AwaitExpression
);
1629
N(SyntaxKind.
AwaitExpression
);
Parsing\StatementAttributeParsingTests.cs (1)
4305
N(SyntaxKind.
AwaitExpression
);
Parsing\StatementParsingTests.cs (1)
2775
N(SyntaxKind.
AwaitExpression
);
Parsing\Utf8StringLiteralsParsingTests.cs (4)
944
N(SyntaxKind.
AwaitExpression
);
960
N(SyntaxKind.
AwaitExpression
);
976
N(SyntaxKind.
AwaitExpression
);
994
N(SyntaxKind.
AwaitExpression
);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (1)
117
case SyntaxKind.
AwaitExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
571
case SyntaxKind.
AwaitExpression
:
727
case SyntaxKind.
AwaitExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
95
public int AwaitExpression => (int)SyntaxKind.
AwaitExpression
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1729
memberAccessExpression.Parent.IsParentKind(SyntaxKind.
AwaitExpression
))