118 references to AwaitExpression
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Conversions.cs (1)
2703else if (node.Kind() == SyntaxKind.AwaitExpression && memberSymbol.Name == WellKnownMemberNames.GetAwaiter)
Binder\Binder_Expressions.cs (2)
812case SyntaxKind.AwaitExpression: 8311(node.Kind() == SyntaxKind.AwaitExpression && plainName == WellKnownMemberNames.GetResult) ||
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
686else if (nodeOpt?.Kind() == SyntaxKind.AwaitExpression && symbol.Name == WellKnownMemberNames.GetAwaiter)
Compilation\MemberSemanticModel.cs (1)
919if (node.Kind() != SyntaxKind.AwaitExpression)
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
377Debug.Assert(node.Syntax.IsKind(SyntaxKind.AwaitExpression) || node.WasCompilerGenerated);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
672SynthesizedLocalKind.Spill => awaitSyntax.IsKind(SyntaxKind.AwaitExpression) || awaitSyntax.IsKind(SyntaxKind.SwitchExpression),
Parser\LanguageParser.cs (2)
11135case SyntaxKind.AwaitExpression: 11328this.ParseSubExpression(GetPrecedence(SyntaxKind.AwaitExpression)));
Syntax.xml.Internal.Generated.cs (4)
28756var cached = CSharpSyntaxNodeCache.TryGetNode((int)SyntaxKind.AwaitExpression, awaitKeyword, expression, this.context, out hash); 28759var result = new AwaitExpressionSyntax(SyntaxKind.AwaitExpression, awaitKeyword, expression, this.context); 34123var cached = SyntaxNodeCache.TryGetNode((int)SyntaxKind.AwaitExpression, awaitKeyword, expression, out hash); 34126var result = new AwaitExpressionSyntax(SyntaxKind.AwaitExpression, awaitKeyword, expression);
Syntax.xml.Syntax.Generated.cs (1)
1262/// <item><description><see cref="SyntaxKind.AwaitExpression"/></description></item>
Syntax\LambdaUtilities.cs (1)
433case 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)
97public int AwaitExpression => (int)SyntaxKind.AwaitExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1729memberAccessExpression.Parent.IsParentKind(SyntaxKind.AwaitExpression))
Microsoft.CodeAnalysis.CSharp.Features (9)
CodeRefactorings\InlineMethod\CSharpInlineMethodRefactoringProvider.cs (1)
97or SyntaxKind.AwaitExpression;
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (5)
1856case SyntaxKind.AwaitExpression: 2177case SyntaxKind.AwaitExpression: 2732if (newNode.IsKind(SyntaxKind.AwaitExpression) && oldNode.IsKind(SyntaxKind.AwaitExpression)) 2782Debug.Assert(awaitExpression.IsKind(SyntaxKind.AwaitExpression));
EditAndContinue\SyntaxComparer.cs (1)
538case SyntaxKind.AwaitExpression:
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
433case SyntaxKind.AwaitExpression:
src\Compilers\CSharp\Portable\Syntax\SyntaxBindingUtilities.cs (1)
15node.IsKind(SyntaxKind.AwaitExpression) ||
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\AwaitExpressionTests.cs (4)
276var syntaxNode = (AwaitExpressionSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.AwaitExpression).AsNode(); 302var syntaxNode = (AwaitExpressionSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.AwaitExpression).AsNode(); 332var syntaxNode = (AwaitExpressionSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.AwaitExpression).AsNode(); 462var expr = (AwaitExpressionSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.AwaitExpression).AsNode();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (75)
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\AsyncParsingTests.cs (2)
2890N(SyntaxKind.AwaitExpression); 2986N(SyntaxKind.AwaitExpression);
Parsing\AsyncStreamsParsingTests.cs (1)
413N(SyntaxKind.AwaitExpression);
Parsing\AwaitParsingTests.cs (53)
65N(SyntaxKind.AwaitExpression); 129N(SyntaxKind.AwaitExpression); 194N(SyntaxKind.AwaitExpression); 272N(SyntaxKind.AwaitExpression); 388N(SyntaxKind.AwaitExpression); 498N(SyntaxKind.AwaitExpression); 515N(SyntaxKind.AwaitExpression); 562N(SyntaxKind.AwaitExpression); 606N(SyntaxKind.AwaitExpression); 650N(SyntaxKind.AwaitExpression); 684N(SyntaxKind.AwaitExpression); 712N(SyntaxKind.AwaitExpression); 746N(SyntaxKind.AwaitExpression); 780N(SyntaxKind.AwaitExpression); 821N(SyntaxKind.AwaitExpression); 858N(SyntaxKind.AwaitExpression); 861N(SyntaxKind.AwaitExpression); 892N(SyntaxKind.AwaitExpression); 920N(SyntaxKind.AwaitExpression); 953N(SyntaxKind.AwaitExpression); 988N(SyntaxKind.AwaitExpression); 1017N(SyntaxKind.AwaitExpression); 1065N(SyntaxKind.AwaitExpression); 1110N(SyntaxKind.AwaitExpression); 1179N(SyntaxKind.AwaitExpression); 1240N(SyntaxKind.AwaitExpression); 1288N(SyntaxKind.AwaitExpression); 1325N(SyntaxKind.AwaitExpression); 1378N(SyntaxKind.AwaitExpression); 1513N(SyntaxKind.AwaitExpression); 1593N(SyntaxKind.AwaitExpression); 1763N(SyntaxKind.AwaitExpression); 1977N(SyntaxKind.AwaitExpression); 2003N(SyntaxKind.AwaitExpression); 2006N(SyntaxKind.AwaitExpression); 2033N(SyntaxKind.AwaitExpression); 2075N(SyntaxKind.AwaitExpression); 2117N(SyntaxKind.AwaitExpression); 2159N(SyntaxKind.AwaitExpression); 2190N(SyntaxKind.AwaitExpression); 2222N(SyntaxKind.AwaitExpression); 2254N(SyntaxKind.AwaitExpression); 2286N(SyntaxKind.AwaitExpression); 2312N(SyntaxKind.AwaitExpression); 2338N(SyntaxKind.AwaitExpression); 2364N(SyntaxKind.AwaitExpression); 2390N(SyntaxKind.AwaitExpression); 2416N(SyntaxKind.AwaitExpression); 2442N(SyntaxKind.AwaitExpression); 2478N(SyntaxKind.AwaitExpression); 2572N(SyntaxKind.AwaitExpression); 2710N(SyntaxKind.AwaitExpression); 2756N(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)
5100N(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 (5)
Classification\ClassificationHelpers.cs (1)
119case SyntaxKind.AwaitExpression:
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)
97public int AwaitExpression => (int)SyntaxKind.AwaitExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1729memberAccessExpression.Parent.IsParentKind(SyntaxKind.AwaitExpression))
Roslyn.Diagnostics.CSharp.Analyzers (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)
97public int AwaitExpression => (int)SyntaxKind.AwaitExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1729memberAccessExpression.Parent.IsParentKind(SyntaxKind.AwaitExpression))