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