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)
8135if (attributeLists != this.AttributeLists || keyword != this.Keyword || block != this.Block) 8146public new CheckedStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Keyword, this.Block); 8148public CheckedStatementSyntax WithBlock(BlockSyntax block) => Update(this.AttributeLists, this.Keyword, block);
Syntax\LookupPosition.cs (1)
321return ((CheckedStatementSyntax)statement).Keyword;
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
617CheckedStatementSyntax checkedStatementNode => checkedStatementNode.Keyword.Span.End,
Microsoft.CodeAnalysis.CSharp.Features (2)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1830return ((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)
12731Assert.Equal(SyntaxKind.CheckedKeyword, node.Keyword.Kind()); 12733var newNode = node.WithAttributeLists(node.AttributeLists).WithKeyword(node.Keyword).WithBlock(node.Block);
Parsing\StatementParsingTests.cs (4)
1428Assert.NotEqual(default, cs.Keyword); 1429Assert.Equal(SyntaxKind.CheckedKeyword, cs.Keyword.Kind()); 1445Assert.NotEqual(default, cs.Keyword); 1446Assert.Equal(SyntaxKind.UncheckedKeyword, cs.Keyword.Kind());