27 references to AwaitKeyword
Microsoft.CodeAnalysis.CSharp (17)
Binder\UsingStatementBinder.cs (2)
80
bool hasAwait = _syntax.
AwaitKeyword
.Kind() != default;
84
var boundUsingStatement = BindUsingStatementOrDeclarationFromParts((CSharpSyntaxNode)expressionSyntax ?? declarationSyntax, _syntax.UsingKeyword, _syntax.
AwaitKeyword
, originalBinder, this, diagnostics);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (2)
51
SyntaxToken awaitKeyword = node.Syntax.Kind() == SyntaxKind.UsingStatement ? ((UsingStatementSyntax)node.Syntax).
AwaitKeyword
: default;
190
BoundStatement tryFinally = RewriteUsingStatementTryFinally(usingSyntax, usingSyntax, tryBlock, boundTemp, usingSyntax.
AwaitKeyword
, node.AwaitOpt, node.PatternDisposeInfoOpt);
Syntax.xml.Main.Generated.cs (1)
1900
=> node.Update(VisitList(node.AttributeLists), VisitToken(node.
AwaitKeyword
), VisitToken(node.UsingKeyword), VisitToken(node.OpenParenToken), (VariableDeclarationSyntax?)Visit(node.Declaration), (ExpressionSyntax?)Visit(node.Expression), VisitToken(node.CloseParenToken), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"));
Syntax.xml.Syntax.Generated.cs (8)
7992
if (attributeLists != this.AttributeLists || awaitKeyword != this.
AwaitKeyword
|| usingKeyword != this.UsingKeyword || openParenToken != this.OpenParenToken || declaration != this.Declaration || expression != this.Expression || closeParenToken != this.CloseParenToken || statement != this.Statement)
8003
public new UsingStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.
AwaitKeyword
, this.UsingKeyword, this.OpenParenToken, this.Declaration, this.Expression, this.CloseParenToken, this.Statement);
8005
public UsingStatementSyntax WithUsingKeyword(SyntaxToken usingKeyword) => Update(this.AttributeLists, this.
AwaitKeyword
, usingKeyword, this.OpenParenToken, this.Declaration, this.Expression, this.CloseParenToken, this.Statement);
8006
public UsingStatementSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(this.AttributeLists, this.
AwaitKeyword
, this.UsingKeyword, openParenToken, this.Declaration, this.Expression, this.CloseParenToken, this.Statement);
8007
public UsingStatementSyntax WithDeclaration(VariableDeclarationSyntax? declaration) => Update(this.AttributeLists, this.
AwaitKeyword
, this.UsingKeyword, this.OpenParenToken, declaration, this.Expression, this.CloseParenToken, this.Statement);
8008
public UsingStatementSyntax WithExpression(ExpressionSyntax? expression) => Update(this.AttributeLists, this.
AwaitKeyword
, this.UsingKeyword, this.OpenParenToken, this.Declaration, expression, this.CloseParenToken, this.Statement);
8009
public UsingStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.AttributeLists, this.
AwaitKeyword
, this.UsingKeyword, this.OpenParenToken, this.Declaration, this.Expression, closeParenToken, this.Statement);
8010
public UsingStatementSyntax WithStatement(StatementSyntax statement) => Update(this.AttributeLists, this.
AwaitKeyword
, this.UsingKeyword, this.OpenParenToken, this.Declaration, this.Expression, this.CloseParenToken, statement);
Syntax\SyntaxBindingUtilities.cs (2)
17
or VariableDeclaratorSyntax { Parent.Parent: UsingStatementSyntax {
AwaitKeyword
.RawKind: not 0 } or LocalDeclarationStatementSyntax { AwaitKeyword.RawKind: not 0 } }
18
or UsingStatementSyntax { Expression: not null,
AwaitKeyword
.RawKind: not 0 };
Syntax\SyntaxFacts.cs (1)
554
case UsingStatementSyntax @using when @using.
AwaitKeyword
.IsKind(SyntaxKind.AwaitKeyword):
Syntax\UsingStatementSyntax.cs (1)
12
=> Update(
AwaitKeyword
, usingKeyword, openParenToken, declaration, expression, closeParenToken, statement);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
199
usingStatement.
AwaitKeyword
,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
123
isAsync = usingStatement.
AwaitKeyword
!= default;
Microsoft.CodeAnalysis.CSharp.Features (4)
Highlighting\KeywordHighlighters\AsyncAwaitHighlighter.cs (1)
76
UsingStatementSyntax usingStatement => TryAddAsyncOrAwaitKeyword(usingStatement.
AwaitKeyword
, spans),
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
199
usingStatement.
AwaitKeyword
,
src\Compilers\CSharp\Portable\Syntax\SyntaxBindingUtilities.cs (2)
17
or VariableDeclaratorSyntax { Parent.Parent: UsingStatementSyntax {
AwaitKeyword
.RawKind: not 0 } or LocalDeclarationStatementSyntax { AwaitKeyword.RawKind: not 0 } }
18
or UsingStatementSyntax { Expression: not null,
AwaitKeyword
.RawKind: not 0 };
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
12699
Assert.Equal(SyntaxKind.None, node.
AwaitKeyword
.Kind());
12706
var newNode = node.WithAttributeLists(node.AttributeLists).WithAwaitKeyword(node.
AwaitKeyword
).WithUsingKeyword(node.UsingKeyword).WithOpenParenToken(node.OpenParenToken).WithDeclaration(node.Declaration).WithExpression(node.Expression).WithCloseParenToken(node.CloseParenToken).WithStatement(node.Statement);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
123
isAsync = usingStatement.
AwaitKeyword
!= default;
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
123
isAsync = usingStatement.
AwaitKeyword
!= default;