14 references to Keyword
Microsoft.CodeAnalysis.CSharp (5)
Syntax.xml.Main.Generated.cs (1)
1906
=> node.Update(VisitList(node.AttributeLists), VisitToken(node.
Keyword
), (BlockSyntax?)Visit(node.Block) ?? throw new ArgumentNullException("block"));
Syntax.xml.Syntax.Generated.cs (3)
8135
if (attributeLists != this.AttributeLists || keyword != this.
Keyword
|| block != this.Block)
8146
public new CheckedStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.
Keyword
, this.Block);
8148
public CheckedStatementSyntax WithBlock(BlockSyntax block) => Update(this.AttributeLists, this.
Keyword
, block);
Syntax\LookupPosition.cs (1)
321
return ((CheckedStatementSyntax)statement).
Keyword
;
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
617
CheckedStatementSyntax checkedStatementNode => checkedStatementNode.
Keyword
.Span.End,
Microsoft.CodeAnalysis.CSharp.Features (2)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1830
return ((CheckedStatementSyntax)node).
Keyword
.Span;
Highlighting\KeywordHighlighters\CheckedStatementHighlighter.cs (1)
28
=> highlights.Add(checkedStatement.
Keyword
.Span);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Generated\Syntax.Test.xml.Generated.cs (2)
12731
Assert.Equal(SyntaxKind.CheckedKeyword, node.
Keyword
.Kind());
12733
var newNode = node.WithAttributeLists(node.AttributeLists).WithKeyword(node.
Keyword
).WithBlock(node.Block);
Parsing\StatementParsingTests.cs (4)
1428
Assert.NotEqual(default, cs.
Keyword
);
1429
Assert.Equal(SyntaxKind.CheckedKeyword, cs.
Keyword
.Kind());
1445
Assert.NotEqual(default, cs.
Keyword
);
1446
Assert.Equal(SyntaxKind.UncheckedKeyword, cs.
Keyword
.Kind());