61 references to CheckedKeyword
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Crefs.cs (2)
226bool isChecked = syntax.CheckedKeyword.IsKind(SyntaxKind.CheckedKeyword); 267bool isChecked = syntax.CheckedKeyword.IsKind(SyntaxKind.CheckedKeyword);
Binder\Semantics\Operators\OperatorFacts.cs (2)
126bool isChecked = declaration.CheckedKeyword?.Kind == SyntaxKind.CheckedKeyword; 163return declaration.CheckedKeyword?.Kind == SyntaxKind.CheckedKeyword ?
Parser\DocumentationCommentParser.cs (1)
1132return TryEatToken(SyntaxKind.CheckedKeyword);
Parser\LanguageParser.cs (10)
3599else if (this.PeekToken(1).Kind is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword) 3768return TryEatToken(SyntaxKind.CheckedKeyword); 7940case SyntaxKind.CheckedKeyword: 8764case SyntaxKind.CheckedKeyword: 9043Debug.Assert(this.CurrentToken.Kind is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword); 10559case SyntaxKind.CheckedKeyword: 10861case SyntaxKind.CheckedKeyword: 11411case SyntaxKind.CheckedKeyword: 12060Debug.Assert(checkedOrUnchecked.Kind is SyntaxKind.CheckedKeyword or SyntaxKind.UncheckedKeyword); 12061var kind = checkedOrUnchecked.Kind == SyntaxKind.CheckedKeyword ? SyntaxKind.CheckedExpression : SyntaxKind.UncheckedExpression;
SymbolDisplay\SymbolDisplayVisitor.Members.cs (2)
698AddKeyword(SyntaxKind.CheckedKeyword); 736AddKeyword(SyntaxKind.CheckedKeyword);
Symbols\Source\SourceUserDefinedConversionSymbol.cs (1)
32else if (syntax.CheckedKeyword.IsKind(SyntaxKind.CheckedKeyword))
Symbols\Source\SourceUserDefinedOperatorSymbol.cs (1)
32else if (!syntax.OperatorToken.IsMissing && syntax.CheckedKeyword.IsKind(SyntaxKind.CheckedKeyword))
Syntax\SyntaxKindFacts.cs (4)
549case SyntaxKind.CheckedKeyword: 755case SyntaxKind.CheckedKeyword: 1003return SyntaxKind.CheckedKeyword; 1651case SyntaxKind.CheckedKeyword:
Syntax\SyntaxNormalizer.cs (1)
976case SyntaxKind.CheckedKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
18public static readonly SyntaxToken CheckedKeyword = Token(SyntaxKind.CheckedKeyword);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2652token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.CheckedKeyword))
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\KeywordRecommenders\CheckedKeywordRecommender.cs (1)
16: base(SyntaxKind.CheckedKeyword)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (32)
Generated\Syntax.Test.xml.Generated.cs (8)
137=> InternalSyntaxFactory.CheckedExpression(SyntaxKind.CheckedExpression, InternalSyntaxFactory.Token(SyntaxKind.CheckedKeyword), InternalSyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.CloseParenToken)); 413=> InternalSyntaxFactory.CheckedStatement(SyntaxKind.CheckedStatement, new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.CheckedKeyword), GenerateBlock()); 1221Assert.Equal(SyntaxKind.CheckedKeyword, node.Keyword.Kind); 2372Assert.Equal(SyntaxKind.CheckedKeyword, node.Keyword.Kind); 10353=> SyntaxFactory.CheckedExpression(SyntaxKind.CheckedExpression, SyntaxFactory.Token(SyntaxKind.CheckedKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.CloseParenToken)); 10629=> SyntaxFactory.CheckedStatement(SyntaxKind.CheckedStatement, new SyntaxList<AttributeListSyntax>(), SyntaxFactory.Token(SyntaxKind.CheckedKeyword), GenerateBlock()); 11437Assert.Equal(SyntaxKind.CheckedKeyword, node.Keyword.Kind()); 12588Assert.Equal(SyntaxKind.CheckedKeyword, node.Keyword.Kind());
Parsing\AwaitParsingTests.cs (2)
600N(SyntaxKind.CheckedKeyword); 2078N(SyntaxKind.CheckedKeyword);
Parsing\CrefParsingTests.cs (11)
430N(SyntaxKind.CheckedKeyword); 486N(SyntaxKind.CheckedKeyword); 573N(SyntaxKind.CheckedKeyword); 654N(SyntaxKind.CheckedKeyword); 728N(SyntaxKind.CheckedKeyword); 891N(SyntaxKind.CheckedKeyword); 960N(SyntaxKind.CheckedKeyword); 1059N(SyntaxKind.CheckedKeyword); 1151N(SyntaxKind.CheckedKeyword); 2095N(SyntaxKind.CheckedKeyword); 2155N(SyntaxKind.CheckedKeyword);
Parsing\ExpressionParsingTests.cs (1)
866TestSingleParamFunctionalOperator(SyntaxKind.CheckedKeyword);
Parsing\MemberDeclarationParsingTests.cs (7)
9678N(SyntaxKind.CheckedKeyword); 9734N(SyntaxKind.CheckedKeyword); 9791N(SyntaxKind.CheckedKeyword); 9865N(SyntaxKind.CheckedKeyword); 9913N(SyntaxKind.CheckedKeyword); 9963N(SyntaxKind.CheckedKeyword); 19107N(SyntaxKind.CheckedKeyword);
Parsing\StatementAttributeParsingTests.cs (2)
1738N(SyntaxKind.CheckedKeyword); 1796N(SyntaxKind.CheckedKeyword);
Parsing\StatementParsingTests.cs (1)
1429Assert.Equal(SyntaxKind.CheckedKeyword, cs.Keyword.Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
18public static readonly SyntaxToken CheckedKeyword = Token(SyntaxKind.CheckedKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
2652token.GetPreviousToken(includeSkipped: true).IsKind(SyntaxKind.CheckedKeyword))