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