2 overrides of AwaitKeyword
Microsoft.CodeAnalysis.CSharp (2)
Syntax.xml.Syntax.Generated.cs (2)
7736public override SyntaxToken AwaitKeyword 7840public override SyntaxToken AwaitKeyword
14 references to AwaitKeyword
Microsoft.CodeAnalysis.CSharp (9)
Binder\ForEachLoopBinder.cs (4)
38=> _syntax.AwaitKeyword != default; 220CheckFeatureAvailability(_syntax.AwaitKeyword, MessageID.IDS_FeatureAsyncStreams, diagnostics); 262ReportBadAwaitDiagnostics(_syntax.AwaitKeyword, diagnostics, ref hasErrors); 616ReportBadAwaitDiagnostics(_syntax.AwaitKeyword, diagnostics, ref hasErrors);
FlowAnalysis\AbstractFlowPass.cs (1)
2910if (AwaitUsingAndForeachAddsPendingBranch && ((CommonForEachStatementSyntax)node.Syntax).AwaitKeyword != default)
Lowering\Instrumentation\DebugInfoInjector.cs (2)
293var span = forEachSyntax.AwaitKeyword != default 294? TextSpan.FromBounds(forEachSyntax.AwaitKeyword.Span.Start, forEachSyntax.ForEachKeyword.Span.End)
Syntax\SyntaxBindingUtilities.cs (1)
16node is CommonForEachStatementSyntax { AwaitKeyword.RawKind: not 0 }
Syntax\SyntaxFacts.cs (1)
553case CommonForEachStatementSyntax @foreach when @foreach.AwaitKeyword.IsKind(SyntaxKind.AwaitKeyword):
Microsoft.CodeAnalysis.CSharp.Features (5)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
1822(commonForEachStatement.AwaitKeyword.Span.Length > 0) ? commonForEachStatement.AwaitKeyword.SpanStart : commonForEachStatement.ForEachKeyword.SpanStart, 2268Debug.Assert(((CommonForEachStatementSyntax)node).AwaitKeyword.IsKind(SyntaxKind.AwaitKeyword));
Highlighting\KeywordHighlighters\AsyncAwaitHighlighter.cs (1)
79CommonForEachStatementSyntax forEachStatement => TryAddAsyncOrAwaitKeyword(forEachStatement.AwaitKeyword, spans),
src\Compilers\CSharp\Portable\Syntax\SyntaxBindingUtilities.cs (1)
16node is CommonForEachStatementSyntax { AwaitKeyword.RawKind: not 0 }