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