15 references to WhileKeyword
Microsoft.CodeAnalysis.CSharp (9)
Lowering\Instrumentation\DebugInfoInjector.cs (1)
255
whileSyntax.
WhileKeyword
.SpanStart,
Syntax.xml.Main.Generated.cs (1)
1885
=> node.Update(VisitList(node.AttributeLists), VisitToken(node.
WhileKeyword
), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Condition) ?? throw new ArgumentNullException("condition"), VisitToken(node.CloseParenToken), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"));
Syntax.xml.Syntax.Generated.cs (6)
7460
if (attributeLists != this.AttributeLists || whileKeyword != this.
WhileKeyword
|| openParenToken != this.OpenParenToken || condition != this.Condition || closeParenToken != this.CloseParenToken || statement != this.Statement)
7471
public new WhileStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.
WhileKeyword
, this.OpenParenToken, this.Condition, this.CloseParenToken, this.Statement);
7473
public WhileStatementSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(this.AttributeLists, this.
WhileKeyword
, openParenToken, this.Condition, this.CloseParenToken, this.Statement);
7474
public WhileStatementSyntax WithCondition(ExpressionSyntax condition) => Update(this.AttributeLists, this.
WhileKeyword
, this.OpenParenToken, condition, this.CloseParenToken, this.Statement);
7475
public WhileStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.AttributeLists, this.
WhileKeyword
, this.OpenParenToken, this.Condition, closeParenToken, this.Statement);
7476
public WhileStatementSyntax WithStatement(StatementSyntax statement) => Update(this.AttributeLists, this.
WhileKeyword
, this.OpenParenToken, this.Condition, this.CloseParenToken, statement);
Syntax\LookupPosition.cs (1)
361
return ((WhileStatementSyntax)statement).
WhileKeyword
;
Microsoft.CodeAnalysis.CSharp.Features (2)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1809
return TextSpan.FromBounds(whileStatement.
WhileKeyword
.SpanStart, whileStatement.CloseParenToken.Span.End);
Highlighting\KeywordHighlighters\LoopHighlighter.cs (1)
74
=> spans.Add(statement.
WhileKeyword
.Span);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Generated\Syntax.Test.xml.Generated.cs (2)
12610
Assert.Equal(SyntaxKind.WhileKeyword, node.
WhileKeyword
.Kind());
12615
var newNode = node.WithAttributeLists(node.AttributeLists).WithWhileKeyword(node.
WhileKeyword
).WithOpenParenToken(node.OpenParenToken).WithCondition(node.Condition).WithCloseParenToken(node.CloseParenToken).WithStatement(node.Statement);
Parsing\StatementParsingTests.cs (2)
1479
Assert.NotEqual(default, ws.
WhileKeyword
);
1480
Assert.Equal(SyntaxKind.WhileKeyword, ws.
WhileKeyword
.Kind());