597 references to QuestionToken
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
107
if (token.IsKind(SyntaxKind.
QuestionToken
) || token.IsKind(SyntaxKind.GreaterThanToken))
Microsoft.CodeAnalysis.CSharp (31)
Binder\Binder_Constraints.cs (1)
151
if (questionToken.IsKind(SyntaxKind.
QuestionToken
))
Parser\DocumentationCommentParser.cs (1)
1444
if (CurrentToken.Kind == SyntaxKind.
QuestionToken
)
Parser\LanguageParser.cs (19)
1165
if (this.CurrentToken.Kind == SyntaxKind.
QuestionToken
&&
2250
this.CurrentToken.Kind == SyntaxKind.
QuestionToken
2251
? this.AddError(this.EatToken(), ErrorCode.ERR_UnexpectedToken, SyntaxFacts.GetText(SyntaxKind.
QuestionToken
))
2258
this.TryEatToken(SyntaxKind.
QuestionToken
)),
5962
case SyntaxKind.
QuestionToken
:
6979
case SyntaxKind.
QuestionToken
6980
when lastTokenOfType.Kind is not SyntaxKind.
QuestionToken
// don't allow `Type??`
7296
case SyntaxKind.
QuestionToken
:
7363
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
QuestionToken
);
7904
or SyntaxKind.
QuestionToken
8624
case SyntaxKind.
QuestionToken
:
9507
case SyntaxKind.
QuestionToken
:
11077
if (this.CurrentToken.Kind == SyntaxKind.
QuestionToken
&& precedence <= Precedence.Conditional)
11689
case SyntaxKind.
QuestionToken
:
11794
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
QuestionToken
);
11861
case SyntaxKind.
QuestionToken
:
11884
or SyntaxKind.
QuestionToken
;
12680
case SyntaxKind.
QuestionToken
:
12900
case SyntaxKind.
QuestionToken
: // e.g. `new(a, b)?()`
Parser\LanguageParser_Patterns.cs (1)
402
case SyntaxKind.
QuestionToken
:
Parser\Lexer.cs (2)
570
: SyntaxKind.
QuestionToken
;
3731
info.Kind = SyntaxKind.
QuestionToken
;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (3)
74
AddPunctuation(type.NullableAnnotation == CodeAnalysis.NullableAnnotation.Annotated ? SyntaxKind.
QuestionToken
: SyntaxKind.ExclamationToken);
229
AddPunctuation(SyntaxKind.
QuestionToken
);
877
AddPunctuation(SyntaxKind.
QuestionToken
);
Syntax\SyntaxKindFacts.cs (1)
1419
case SyntaxKind.
QuestionToken
:
Syntax\SyntaxNormalizer.cs (3)
682
if (token.IsKind(SyntaxKind.
QuestionToken
))
720
if ((next.IsKind(SyntaxKind.
QuestionToken
) || next.IsKind(SyntaxKind.ColonToken))
893
!next.IsKind(SyntaxKind.
QuestionToken
) &&
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
72
public static readonly SyntaxToken QuestionToken = Token(SyntaxKind.
QuestionToken
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
304
case SyntaxKind.
QuestionToken
: // for int?
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
85
if ((previousToken.IsKeyword() || previousToken.Kind() is SyntaxKind.
QuestionToken
or SyntaxKind.AsteriskToken or SyntaxKind.CloseBracketToken or SyntaxKind.CloseParenToken or SyntaxKind.GreaterThanToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (3)
457
if (currentToken.IsKind(SyntaxKind.
QuestionToken
) && currentToken.Parent.IsKind(SyntaxKind.ConditionalAccessExpression))
463
if (currentToken.Kind() == SyntaxKind.
QuestionToken
&&
470
if (currentToken.IsKind(SyntaxKind.
QuestionToken
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
59
public int QuestionToken => (int)SyntaxKind.
QuestionToken
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (1)
54
Contract.ThrowIfTrue(questionToken.Kind() != SyntaxKind.
QuestionToken
);
src\Analyzers\CSharp\CodeFixes\UseConditionalExpression\MultiLineConditionalExpressionFormattingRule.cs (1)
34
=> token.Kind() is SyntaxKind.
QuestionToken
or SyntaxKind.ColonToken && token.GetRequiredParent().HasAnnotation(SpecializedFormattingAnnotation);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
2343
if (previousToken.Kind() is SyntaxKind.AsteriskToken or SyntaxKind.
QuestionToken
&&
2382
if (token.IsKind(SyntaxKind.
QuestionToken
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
129
case SyntaxKind.
QuestionToken
: // for int?
Microsoft.CodeAnalysis.CSharp.Features (8)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (2)
366
if (token.IsKind(SyntaxKind.
QuestionToken
) &&
515
SyntaxKind.
QuestionToken
||
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (1)
190
var questionToken = dotToken.GetPreviousToken().Kind() == SyntaxKind.
QuestionToken
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Conversions.cs (1)
84
var questionToken = dotToken.GetPreviousToken().Kind() == SyntaxKind.
QuestionToken
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
214
case SyntaxKind.
QuestionToken
:
Completion\KeywordRecommenders\ThrowKeywordRecommender.cs (1)
38
if (context.TargetToken.Kind() is SyntaxKind.
QuestionToken
or
src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (1)
54
Contract.ThrowIfTrue(questionToken.Kind() != SyntaxKind.
QuestionToken
);
src\Analyzers\CSharp\CodeFixes\UseConditionalExpression\MultiLineConditionalExpressionFormattingRule.cs (1)
34
=> token.Kind() is SyntaxKind.
QuestionToken
or SyntaxKind.ColonToken && token.GetRequiredParent().HasAnnotation(SpecializedFormattingAnnotation);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (532)
Generated\Syntax.Test.xml.Generated.cs (12)
56
=> InternalSyntaxFactory.NullableType(GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.
QuestionToken
));
92
=> InternalSyntaxFactory.ConditionalAccessExpression(GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.
QuestionToken
), GenerateIdentifierName());
113
=> InternalSyntaxFactory.ConditionalExpression(GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.
QuestionToken
), GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.ColonToken), GenerateIdentifierName());
912
Assert.Equal(SyntaxKind.
QuestionToken
, node.QuestionToken.Kind);
1048
Assert.Equal(SyntaxKind.
QuestionToken
, node.OperatorToken.Kind);
1127
Assert.Equal(SyntaxKind.
QuestionToken
, node.QuestionToken.Kind);
10272
=> SyntaxFactory.NullableType(GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.
QuestionToken
));
10308
=> SyntaxFactory.ConditionalAccessExpression(GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.
QuestionToken
), GenerateIdentifierName());
10329
=> SyntaxFactory.ConditionalExpression(GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.
QuestionToken
), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.ColonToken), GenerateIdentifierName());
11128
Assert.Equal(SyntaxKind.
QuestionToken
, node.QuestionToken.Kind());
11264
Assert.Equal(SyntaxKind.
QuestionToken
, node.OperatorToken.Kind());
11343
Assert.Equal(SyntaxKind.
QuestionToken
, node.QuestionToken.Kind());
LexicalAndXml\CrefLexerTests.cs (14)
129
AssertTokens("?", Token(SyntaxKind.
QuestionToken
));
130
AssertTokens("??", Token(SyntaxKind.
QuestionToken
), Token(SyntaxKind.
QuestionToken
));
149
AssertTokens("?", Token(SyntaxKind.
QuestionToken
, "?", "?"));
150
AssertTokens("??", Token(SyntaxKind.
QuestionToken
, "?", "?"), Token(SyntaxKind.
QuestionToken
, "?", "?"));
168
AssertTokens("???", Token(SyntaxKind.
QuestionToken
), Token(SyntaxKind.
QuestionToken
), Token(SyntaxKind.
QuestionToken
));
169
AssertTokens("????", Token(SyntaxKind.
QuestionToken
), Token(SyntaxKind.
QuestionToken
), Token(SyntaxKind.
QuestionToken
), Token(SyntaxKind.
QuestionToken
));
392
Token(SyntaxKind.
QuestionToken
),
LexicalAndXml\LexicalTests.cs (1)
927
TestPunctuation(SyntaxKind.
QuestionToken
);
LexicalAndXml\NameAttributeValueLexerTests.cs (13)
134
AssertTokens("?", Token(SyntaxKind.
QuestionToken
));
135
AssertTokens("??", Token(SyntaxKind.
QuestionToken
), Token(SyntaxKind.
QuestionToken
));
154
AssertTokens("?", Token(SyntaxKind.
QuestionToken
, "?", "?"));
155
AssertTokens("??", Token(SyntaxKind.
QuestionToken
, "?", "?"), Token(SyntaxKind.
QuestionToken
, "?", "?"));
173
AssertTokens("???", Token(SyntaxKind.
QuestionToken
), Token(SyntaxKind.
QuestionToken
), Token(SyntaxKind.
QuestionToken
));
174
AssertTokens("????", Token(SyntaxKind.
QuestionToken
), Token(SyntaxKind.
QuestionToken
), Token(SyntaxKind.
QuestionToken
), Token(SyntaxKind.
QuestionToken
));
Parsing\AsyncParsingTests.cs (4)
2670
N(SyntaxKind.
QuestionToken
);
2719
N(SyntaxKind.
QuestionToken
);
2761
N(SyntaxKind.
QuestionToken
);
2815
N(SyntaxKind.
QuestionToken
);
Parsing\AwaitParsingTests.cs (11)
908
N(SyntaxKind.
QuestionToken
);
1170
N(SyntaxKind.
QuestionToken
);
1207
N(SyntaxKind.
QuestionToken
);
1260
N(SyntaxKind.
QuestionToken
);
1313
N(SyntaxKind.
QuestionToken
);
1395
N(SyntaxKind.
QuestionToken
);
1475
N(SyntaxKind.
QuestionToken
);
1554
N(SyntaxKind.
QuestionToken
);
1645
N(SyntaxKind.
QuestionToken
);
1712
N(SyntaxKind.
QuestionToken
);
1766
N(SyntaxKind.
QuestionToken
);
Parsing\CollectionExpressionParsingTests.cs (109)
733
N(SyntaxKind.
QuestionToken
);
793
N(SyntaxKind.
QuestionToken
);
1882
N(SyntaxKind.
QuestionToken
);
1937
N(SyntaxKind.
QuestionToken
);
1976
N(SyntaxKind.
QuestionToken
);
1997
N(SyntaxKind.
QuestionToken
);
2346
N(SyntaxKind.
QuestionToken
);
2390
N(SyntaxKind.
QuestionToken
);
2431
N(SyntaxKind.
QuestionToken
);
2484
N(SyntaxKind.
QuestionToken
);
2528
N(SyntaxKind.
QuestionToken
);
2561
N(SyntaxKind.
QuestionToken
);
2610
N(SyntaxKind.
QuestionToken
);
2617
N(SyntaxKind.
QuestionToken
);
2654
N(SyntaxKind.
QuestionToken
);
2661
N(SyntaxKind.
QuestionToken
);
2714
N(SyntaxKind.
QuestionToken
);
2721
N(SyntaxKind.
QuestionToken
);
2760
N(SyntaxKind.
QuestionToken
);
2767
N(SyntaxKind.
QuestionToken
);
2824
N(SyntaxKind.
QuestionToken
);
2841
N(SyntaxKind.
QuestionToken
);
2868
N(SyntaxKind.
QuestionToken
);
2901
N(SyntaxKind.
QuestionToken
);
2926
N(SyntaxKind.
QuestionToken
);
2941
N(SyntaxKind.
QuestionToken
);
2972
N(SyntaxKind.
QuestionToken
);
3003
N(SyntaxKind.
QuestionToken
);
3034
N(SyntaxKind.
QuestionToken
);
3041
N(SyntaxKind.
QuestionToken
);
3080
N(SyntaxKind.
QuestionToken
);
3132
N(SyntaxKind.
QuestionToken
);
3139
N(SyntaxKind.
QuestionToken
);
3173
N(SyntaxKind.
QuestionToken
);
3225
N(SyntaxKind.
QuestionToken
);
3232
N(SyntaxKind.
QuestionToken
);
3254
N(SyntaxKind.
QuestionToken
);
3299
N(SyntaxKind.
QuestionToken
);
3306
N(SyntaxKind.
QuestionToken
);
3330
N(SyntaxKind.
QuestionToken
);
3337
N(SyntaxKind.
QuestionToken
);
3381
N(SyntaxKind.
QuestionToken
);
3388
N(SyntaxKind.
QuestionToken
);
3412
N(SyntaxKind.
QuestionToken
);
3419
N(SyntaxKind.
QuestionToken
);
3426
N(SyntaxKind.
QuestionToken
);
3470
N(SyntaxKind.
QuestionToken
);
3477
N(SyntaxKind.
QuestionToken
);
3501
N(SyntaxKind.
QuestionToken
);
3508
N(SyntaxKind.
QuestionToken
);
3515
N(SyntaxKind.
QuestionToken
);
3559
N(SyntaxKind.
QuestionToken
);
3566
N(SyntaxKind.
QuestionToken
);
3590
N(SyntaxKind.
QuestionToken
);
3597
N(SyntaxKind.
QuestionToken
);
3604
N(SyntaxKind.
QuestionToken
);
3650
N(SyntaxKind.
QuestionToken
);
3657
N(SyntaxKind.
QuestionToken
);
3677
N(SyntaxKind.
QuestionToken
);
3684
N(SyntaxKind.
QuestionToken
);
3691
N(SyntaxKind.
QuestionToken
);
3746
N(SyntaxKind.
QuestionToken
);
3753
N(SyntaxKind.
QuestionToken
);
3773
N(SyntaxKind.
QuestionToken
);
3780
N(SyntaxKind.
QuestionToken
);
3787
N(SyntaxKind.
QuestionToken
);
4190
N(SyntaxKind.
QuestionToken
);
4543
N(SyntaxKind.
QuestionToken
);
4594
N(SyntaxKind.
QuestionToken
);
4824
N(SyntaxKind.
QuestionToken
);
6619
N(SyntaxKind.
QuestionToken
);
6677
N(SyntaxKind.
QuestionToken
);
6709
N(SyntaxKind.
QuestionToken
);
6758
N(SyntaxKind.
QuestionToken
);
6802
N(SyntaxKind.
QuestionToken
);
6853
N(SyntaxKind.
QuestionToken
);
7059
N(SyntaxKind.
QuestionToken
);
7103
N(SyntaxKind.
QuestionToken
);
7161
N(SyntaxKind.
QuestionToken
);
7220
N(SyntaxKind.
QuestionToken
);
7269
N(SyntaxKind.
QuestionToken
);
7308
N(SyntaxKind.
QuestionToken
);
9054
N(SyntaxKind.
QuestionToken
);
9136
N(SyntaxKind.
QuestionToken
);
9291
N(SyntaxKind.
QuestionToken
);
9344
N(SyntaxKind.
QuestionToken
);
10164
N(SyntaxKind.
QuestionToken
);
10214
N(SyntaxKind.
QuestionToken
);
12974
N(SyntaxKind.
QuestionToken
);
13053
N(SyntaxKind.
QuestionToken
);
13120
N(SyntaxKind.
QuestionToken
);
13197
N(SyntaxKind.
QuestionToken
);
13269
N(SyntaxKind.
QuestionToken
);
13351
N(SyntaxKind.
QuestionToken
);
13434
N(SyntaxKind.
QuestionToken
);
13532
N(SyntaxKind.
QuestionToken
);
13612
N(SyntaxKind.
QuestionToken
);
13718
N(SyntaxKind.
QuestionToken
);
13806
N(SyntaxKind.
QuestionToken
);
13927
N(SyntaxKind.
QuestionToken
);
15966
N(SyntaxKind.
QuestionToken
);
16049
N(SyntaxKind.
QuestionToken
);
18138
N(SyntaxKind.
QuestionToken
);
18222
N(SyntaxKind.
QuestionToken
);
18284
N(SyntaxKind.
QuestionToken
);
18339
N(SyntaxKind.
QuestionToken
);
18399
N(SyntaxKind.
QuestionToken
);
18462
N(SyntaxKind.
QuestionToken
);
18539
N(SyntaxKind.
QuestionToken
);
Parsing\CrefParsingTests.cs (5)
1677
N(SyntaxKind.
QuestionToken
);
1880
N(SyntaxKind.
QuestionToken
);
1932
N(SyntaxKind.
QuestionToken
);
2010
N(SyntaxKind.
QuestionToken
);
2023
N(SyntaxKind.
QuestionToken
);
Parsing\DeclarationExpressionTests.cs (8)
45
N(SyntaxKind.
QuestionToken
);
82
N(SyntaxKind.
QuestionToken
);
117
N(SyntaxKind.
QuestionToken
);
162
N(SyntaxKind.
QuestionToken
);
203
N(SyntaxKind.
QuestionToken
);
253
N(SyntaxKind.
QuestionToken
);
310
N(SyntaxKind.
QuestionToken
);
376
N(SyntaxKind.
QuestionToken
);
Parsing\DeclarationParsingTests.cs (4)
7098
N(SyntaxKind.
QuestionToken
);
7146
N(SyntaxKind.
QuestionToken
);
7190
N(SyntaxKind.
QuestionToken
);
7238
N(SyntaxKind.
QuestionToken
);
Parsing\DeconstructionTests.cs (2)
3261
N(SyntaxKind.
QuestionToken
);
3315
N(SyntaxKind.
QuestionToken
);
Parsing\ExpressionParsingTests.cs (6)
907
Assert.Equal(SyntaxKind.
QuestionToken
, ts.QuestionToken.Kind());
5048
N(SyntaxKind.
QuestionToken
);
5984
N(SyntaxKind.
QuestionToken
);
6846
N(SyntaxKind.
QuestionToken
);
6908
N(SyntaxKind.
QuestionToken
);
6989
N(SyntaxKind.
QuestionToken
);
Parsing\FieldKeywordParsingTests.cs (1)
1170
N(SyntaxKind.
QuestionToken
);
Parsing\FileModifierParsingTests.cs (2)
1677
N(SyntaxKind.
QuestionToken
);
1937
N(SyntaxKind.
QuestionToken
);
Parsing\ImplicitObjectCreationParsingTests.cs (2)
74
N(SyntaxKind.
QuestionToken
);
164
N(SyntaxKind.
QuestionToken
);
Parsing\LambdaAttributeParsingTests.cs (17)
1483
N(SyntaxKind.
QuestionToken
);
1530
N(SyntaxKind.
QuestionToken
);
1565
N(SyntaxKind.
QuestionToken
);
1613
N(SyntaxKind.
QuestionToken
);
2019
N(SyntaxKind.
QuestionToken
);
2074
N(SyntaxKind.
QuestionToken
);
2133
N(SyntaxKind.
QuestionToken
);
2184
N(SyntaxKind.
QuestionToken
);
2228
N(SyntaxKind.
QuestionToken
);
2280
N(SyntaxKind.
QuestionToken
);
2342
N(SyntaxKind.
QuestionToken
);
2404
N(SyntaxKind.
QuestionToken
);
2471
N(SyntaxKind.
QuestionToken
);
2537
N(SyntaxKind.
QuestionToken
);
2574
N(SyntaxKind.
QuestionToken
);
2619
N(SyntaxKind.
QuestionToken
);
2655
N(SyntaxKind.
QuestionToken
);
Parsing\LambdaParameterParsingTests.cs (3)
4278
N(SyntaxKind.
QuestionToken
);
4285
N(SyntaxKind.
QuestionToken
);
4303
N(SyntaxKind.
QuestionToken
);
Parsing\LambdaReturnTypeParsingTests.cs (41)
678
N(SyntaxKind.
QuestionToken
);
711
N(SyntaxKind.
QuestionToken
);
753
N(SyntaxKind.
QuestionToken
);
798
N(SyntaxKind.
QuestionToken
);
840
N(SyntaxKind.
QuestionToken
);
883
N(SyntaxKind.
QuestionToken
);
920
N(SyntaxKind.
QuestionToken
);
948
N(SyntaxKind.
QuestionToken
);
1001
N(SyntaxKind.
QuestionToken
);
1045
N(SyntaxKind.
QuestionToken
);
1094
N(SyntaxKind.
QuestionToken
);
1140
N(SyntaxKind.
QuestionToken
);
1196
N(SyntaxKind.
QuestionToken
);
1246
N(SyntaxKind.
QuestionToken
);
1292
N(SyntaxKind.
QuestionToken
);
1329
N(SyntaxKind.
QuestionToken
);
1384
N(SyntaxKind.
QuestionToken
);
1421
N(SyntaxKind.
QuestionToken
);
1506
N(SyntaxKind.
QuestionToken
);
1556
N(SyntaxKind.
QuestionToken
);
1603
N(SyntaxKind.
QuestionToken
);
1634
N(SyntaxKind.
QuestionToken
);
1668
N(SyntaxKind.
QuestionToken
);
1698
N(SyntaxKind.
QuestionToken
);
1726
N(SyntaxKind.
QuestionToken
);
1764
N(SyntaxKind.
QuestionToken
);
1822
N(SyntaxKind.
QuestionToken
);
1867
N(SyntaxKind.
QuestionToken
);
1901
N(SyntaxKind.
QuestionToken
);
1908
N(SyntaxKind.
QuestionToken
);
1949
N(SyntaxKind.
QuestionToken
);
1956
N(SyntaxKind.
QuestionToken
);
1997
N(SyntaxKind.
QuestionToken
);
2009
N(SyntaxKind.
QuestionToken
);
3141
N(SyntaxKind.
QuestionToken
);
3189
N(SyntaxKind.
QuestionToken
);
3232
N(SyntaxKind.
QuestionToken
);
3280
N(SyntaxKind.
QuestionToken
);
3323
N(SyntaxKind.
QuestionToken
);
3393
N(SyntaxKind.
QuestionToken
);
4434
N(SyntaxKind.
QuestionToken
);
Parsing\LocalFunctionParsingTests.cs (2)
217
N(SyntaxKind.
QuestionToken
);
332
N(SyntaxKind.
QuestionToken
);
Parsing\MemberDeclarationParsingTests.cs (2)
1970
N(SyntaxKind.
QuestionToken
);
2169
N(SyntaxKind.
QuestionToken
);
Parsing\NameParsingTests.cs (1)
1456
N(SyntaxKind.
QuestionToken
);
Parsing\NullableParsingTests.cs (49)
120
N(SyntaxKind.
QuestionToken
);
237
N(SyntaxKind.
QuestionToken
);
249
N(SyntaxKind.
QuestionToken
);
309
N(SyntaxKind.
QuestionToken
);
321
N(SyntaxKind.
QuestionToken
);
350
N(SyntaxKind.
QuestionToken
);
383
N(SyntaxKind.
QuestionToken
);
386
N(SyntaxKind.
QuestionToken
);
430
N(SyntaxKind.
QuestionToken
);
475
N(SyntaxKind.
QuestionToken
);
478
N(SyntaxKind.
QuestionToken
);
538
N(SyntaxKind.
QuestionToken
);
585
N(SyntaxKind.
QuestionToken
);
669
N(SyntaxKind.
QuestionToken
);
713
N(SyntaxKind.
QuestionToken
);
922
N(SyntaxKind.
QuestionToken
);
993
N(SyntaxKind.
QuestionToken
);
1053
N(SyntaxKind.
QuestionToken
);
1074
N(SyntaxKind.
QuestionToken
);
1119
N(SyntaxKind.
QuestionToken
);
1143
N(SyntaxKind.
QuestionToken
);
1186
N(SyntaxKind.
QuestionToken
);
1238
N(SyntaxKind.
QuestionToken
);
1302
N(SyntaxKind.
QuestionToken
);
1357
N(SyntaxKind.
QuestionToken
);
1424
N(SyntaxKind.
QuestionToken
);
1477
N(SyntaxKind.
QuestionToken
);
1533
N(SyntaxKind.
QuestionToken
);
1545
N(SyntaxKind.
QuestionToken
);
1597
N(SyntaxKind.
QuestionToken
);
1609
N(SyntaxKind.
QuestionToken
);
1661
N(SyntaxKind.
QuestionToken
);
1673
N(SyntaxKind.
QuestionToken
);
1747
N(SyntaxKind.
QuestionToken
);
1764
N(SyntaxKind.
QuestionToken
);
1807
N(SyntaxKind.
QuestionToken
);
1845
N(SyntaxKind.
QuestionToken
);
1881
N(SyntaxKind.
QuestionToken
);
1893
N(SyntaxKind.
QuestionToken
);
1923
N(SyntaxKind.
QuestionToken
);
1939
N(SyntaxKind.
QuestionToken
);
1973
N(SyntaxKind.
QuestionToken
);
2012
N(SyntaxKind.
QuestionToken
);
2058
N(SyntaxKind.
QuestionToken
);
2114
N(SyntaxKind.
QuestionToken
);
2173
N(SyntaxKind.
QuestionToken
);
2243
N(SyntaxKind.
QuestionToken
);
2291
N(SyntaxKind.
QuestionToken
);
2342
N(SyntaxKind.
QuestionToken
);
Parsing\PatternParsingTests.cs (19)
2597
N(SyntaxKind.
QuestionToken
);
6370
N(SyntaxKind.
QuestionToken
);
6422
N(SyntaxKind.
QuestionToken
);
6484
N(SyntaxKind.
QuestionToken
);
6516
N(SyntaxKind.
QuestionToken
);
6549
N(SyntaxKind.
QuestionToken
);
6552
N(SyntaxKind.
QuestionToken
);
10222
N(SyntaxKind.
QuestionToken
);
12153
N(SyntaxKind.
QuestionToken
);
12199
N(SyntaxKind.
QuestionToken
);
12251
N(SyntaxKind.
QuestionToken
);
12302
N(SyntaxKind.
QuestionToken
);
12354
N(SyntaxKind.
QuestionToken
);
12400
N(SyntaxKind.
QuestionToken
);
12452
N(SyntaxKind.
QuestionToken
);
12503
N(SyntaxKind.
QuestionToken
);
12557
N(SyntaxKind.
QuestionToken
);
12612
N(SyntaxKind.
QuestionToken
);
12666
N(SyntaxKind.
QuestionToken
);
Parsing\PatternParsingTests_ListPatterns.cs (9)
1128
N(SyntaxKind.
QuestionToken
);
1164
N(SyntaxKind.
QuestionToken
);
1204
N(SyntaxKind.
QuestionToken
);
1255
N(SyntaxKind.
QuestionToken
);
1318
N(SyntaxKind.
QuestionToken
);
1381
N(SyntaxKind.
QuestionToken
);
1444
N(SyntaxKind.
QuestionToken
);
1511
N(SyntaxKind.
QuestionToken
);
1578
N(SyntaxKind.
QuestionToken
);
Parsing\PatternParsingTests2.cs (12)
305
N(SyntaxKind.
QuestionToken
);
862
N(SyntaxKind.
QuestionToken
);
1401
N(SyntaxKind.
QuestionToken
);
1447
N(SyntaxKind.
QuestionToken
);
1497
N(SyntaxKind.
QuestionToken
);
1524
N(SyntaxKind.
QuestionToken
);
1577
N(SyntaxKind.
QuestionToken
);
1604
N(SyntaxKind.
QuestionToken
);
1656
N(SyntaxKind.
QuestionToken
);
1668
N(SyntaxKind.
QuestionToken
);
1717
N(SyntaxKind.
QuestionToken
);
1733
N(SyntaxKind.
QuestionToken
);
Parsing\RangeExpressionParsingTests.cs (6)
70
N(SyntaxKind.
QuestionToken
);
95
N(SyntaxKind.
QuestionToken
);
120
N(SyntaxKind.
QuestionToken
);
145
N(SyntaxKind.
QuestionToken
);
174
N(SyntaxKind.
QuestionToken
);
203
N(SyntaxKind.
QuestionToken
);
Parsing\RecordParsing.cs (3)
2122
N(SyntaxKind.
QuestionToken
);
2182
N(SyntaxKind.
QuestionToken
);
2238
N(SyntaxKind.
QuestionToken
);
Parsing\ScriptParsingTests.cs (114)
2825
N(SyntaxKind.
QuestionToken
);
2855
N(SyntaxKind.
QuestionToken
);
2898
N(SyntaxKind.
QuestionToken
);
2944
N(SyntaxKind.
QuestionToken
);
2958
N(SyntaxKind.
QuestionToken
);
3001
N(SyntaxKind.
QuestionToken
);
3042
N(SyntaxKind.
QuestionToken
);
3088
N(SyntaxKind.
QuestionToken
);
3119
N(SyntaxKind.
QuestionToken
);
3158
N(SyntaxKind.
QuestionToken
);
3206
N(SyntaxKind.
QuestionToken
);
3224
N(SyntaxKind.
QuestionToken
);
3277
N(SyntaxKind.
QuestionToken
);
3322
N(SyntaxKind.
QuestionToken
);
3373
N(SyntaxKind.
QuestionToken
);
3416
N(SyntaxKind.
QuestionToken
);
3467
N(SyntaxKind.
QuestionToken
);
3536
N(SyntaxKind.
QuestionToken
);
3594
N(SyntaxKind.
QuestionToken
);
3669
N(SyntaxKind.
QuestionToken
);
3713
N(SyntaxKind.
QuestionToken
);
3774
N(SyntaxKind.
QuestionToken
);
3818
N(SyntaxKind.
QuestionToken
);
3833
N(SyntaxKind.
QuestionToken
);
3866
N(SyntaxKind.
QuestionToken
);
3881
N(SyntaxKind.
QuestionToken
);
3914
N(SyntaxKind.
QuestionToken
);
3929
N(SyntaxKind.
QuestionToken
);
3962
N(SyntaxKind.
QuestionToken
);
3988
N(SyntaxKind.
QuestionToken
);
4027
N(SyntaxKind.
QuestionToken
);
4041
N(SyntaxKind.
QuestionToken
);
4080
N(SyntaxKind.
QuestionToken
);
4094
N(SyntaxKind.
QuestionToken
);
4124
N(SyntaxKind.
QuestionToken
);
4167
N(SyntaxKind.
QuestionToken
);
4211
N(SyntaxKind.
QuestionToken
);
4256
N(SyntaxKind.
QuestionToken
);
4299
N(SyntaxKind.
QuestionToken
);
4346
N(SyntaxKind.
QuestionToken
);
4397
N(SyntaxKind.
QuestionToken
);
4454
N(SyntaxKind.
QuestionToken
);
4470
N(SyntaxKind.
QuestionToken
);
4513
N(SyntaxKind.
QuestionToken
);
4574
N(SyntaxKind.
QuestionToken
);
4615
N(SyntaxKind.
QuestionToken
);
4659
N(SyntaxKind.
QuestionToken
);
4711
N(SyntaxKind.
QuestionToken
);
4763
N(SyntaxKind.
QuestionToken
);
4812
N(SyntaxKind.
QuestionToken
);
4861
N(SyntaxKind.
QuestionToken
);
4911
N(SyntaxKind.
QuestionToken
);
4969
N(SyntaxKind.
QuestionToken
);
5027
N(SyntaxKind.
QuestionToken
);
5088
N(SyntaxKind.
QuestionToken
);
5157
N(SyntaxKind.
QuestionToken
);
5209
N(SyntaxKind.
QuestionToken
);
5269
N(SyntaxKind.
QuestionToken
);
5331
N(SyntaxKind.
QuestionToken
);
5401
N(SyntaxKind.
QuestionToken
);
5477
N(SyntaxKind.
QuestionToken
);
5495
N(SyntaxKind.
QuestionToken
);
5555
N(SyntaxKind.
QuestionToken
);
5573
N(SyntaxKind.
QuestionToken
);
5636
N(SyntaxKind.
QuestionToken
);
5654
N(SyntaxKind.
QuestionToken
);
5731
N(SyntaxKind.
QuestionToken
);
5749
N(SyntaxKind.
QuestionToken
);
5763
N(SyntaxKind.
QuestionToken
);
5821
N(SyntaxKind.
QuestionToken
);
5870
N(SyntaxKind.
QuestionToken
);
5926
N(SyntaxKind.
QuestionToken
);
5975
N(SyntaxKind.
QuestionToken
);
6034
N(SyntaxKind.
QuestionToken
);
6098
N(SyntaxKind.
QuestionToken
);
6140
N(SyntaxKind.
QuestionToken
);
6185
N(SyntaxKind.
QuestionToken
);
6238
N(SyntaxKind.
QuestionToken
);
6257
N(SyntaxKind.
QuestionToken
);
6353
N(SyntaxKind.
QuestionToken
);
6360
N(SyntaxKind.
QuestionToken
);
6410
N(SyntaxKind.
QuestionToken
);
6459
N(SyntaxKind.
QuestionToken
);
6505
N(SyntaxKind.
QuestionToken
);
6557
N(SyntaxKind.
QuestionToken
);
6617
N(SyntaxKind.
QuestionToken
);
6686
N(SyntaxKind.
QuestionToken
);
6761
N(SyntaxKind.
QuestionToken
);
6830
N(SyntaxKind.
QuestionToken
);
6892
N(SyntaxKind.
QuestionToken
);
6962
N(SyntaxKind.
QuestionToken
);
7032
N(SyntaxKind.
QuestionToken
);
7102
N(SyntaxKind.
QuestionToken
);
7172
N(SyntaxKind.
QuestionToken
);
7242
N(SyntaxKind.
QuestionToken
);
7312
N(SyntaxKind.
QuestionToken
);
7386
N(SyntaxKind.
QuestionToken
);
7469
N(SyntaxKind.
QuestionToken
);
7487
N(SyntaxKind.
QuestionToken
);
7546
N(SyntaxKind.
QuestionToken
);
7602
N(SyntaxKind.
QuestionToken
);
7673
N(SyntaxKind.
QuestionToken
);
7747
N(SyntaxKind.
QuestionToken
);
7811
N(SyntaxKind.
QuestionToken
);
7829
N(SyntaxKind.
QuestionToken
);
7912
N(SyntaxKind.
QuestionToken
);
7930
N(SyntaxKind.
QuestionToken
);
7981
N(SyntaxKind.
QuestionToken
);
8057
N(SyntaxKind.
QuestionToken
);
8094
N(SyntaxKind.
QuestionToken
);
8149
N(SyntaxKind.
QuestionToken
);
8219
N(SyntaxKind.
QuestionToken
);
8295
N(SyntaxKind.
QuestionToken
);
8959
N(SyntaxKind.
QuestionToken
);
Parsing\StatementAttributeParsingTests.cs (2)
4572
N(SyntaxKind.
QuestionToken
);
4917
N(SyntaxKind.
QuestionToken
);
Parsing\StatementParsingTests.cs (14)
2978
N(SyntaxKind.
QuestionToken
);
3051
N(SyntaxKind.
QuestionToken
);
3123
N(SyntaxKind.
QuestionToken
);
4099
N(SyntaxKind.
QuestionToken
);
4158
N(SyntaxKind.
QuestionToken
);
4233
N(SyntaxKind.
QuestionToken
);
4269
N(SyntaxKind.
QuestionToken
);
5523
N(SyntaxKind.
QuestionToken
);
5577
N(SyntaxKind.
QuestionToken
);
5635
N(SyntaxKind.
QuestionToken
);
5701
N(SyntaxKind.
QuestionToken
);
5774
N(SyntaxKind.
QuestionToken
);
5875
N(SyntaxKind.
QuestionToken
);
5969
N(SyntaxKind.
QuestionToken
);
Parsing\SuppressNullableWarningExpressionParsingTests.cs (19)
239
N(SyntaxKind.
QuestionToken
);
270
N(SyntaxKind.
QuestionToken
);
322
N(SyntaxKind.
QuestionToken
);
337
N(SyntaxKind.
QuestionToken
);
389
N(SyntaxKind.
QuestionToken
);
399
N(SyntaxKind.
QuestionToken
);
460
N(SyntaxKind.
QuestionToken
);
470
N(SyntaxKind.
QuestionToken
);
534
N(SyntaxKind.
QuestionToken
);
544
N(SyntaxKind.
QuestionToken
);
605
N(SyntaxKind.
QuestionToken
);
619
N(SyntaxKind.
QuestionToken
);
663
N(SyntaxKind.
QuestionToken
);
729
N(SyntaxKind.
QuestionToken
);
773
N(SyntaxKind.
QuestionToken
);
831
N(SyntaxKind.
QuestionToken
);
867
N(SyntaxKind.
QuestionToken
);
906
N(SyntaxKind.
QuestionToken
);
957
N(SyntaxKind.
QuestionToken
);
Parsing\SwitchExpressionParsingTests.cs (11)
4263
N(SyntaxKind.
QuestionToken
);
4308
N(SyntaxKind.
QuestionToken
);
4368
N(SyntaxKind.
QuestionToken
);
4433
N(SyntaxKind.
QuestionToken
);
4478
N(SyntaxKind.
QuestionToken
);
4539
N(SyntaxKind.
QuestionToken
);
4597
N(SyntaxKind.
QuestionToken
);
4662
N(SyntaxKind.
QuestionToken
);
4727
N(SyntaxKind.
QuestionToken
);
4797
N(SyntaxKind.
QuestionToken
);
4864
N(SyntaxKind.
QuestionToken
);
Parsing\TypeArgumentListParsingTests.cs (3)
1484
N(SyntaxKind.
QuestionToken
);
1604
N(SyntaxKind.
QuestionToken
);
1710
N(SyntaxKind.
QuestionToken
);
Parsing\UsingDirectiveParsingTests.cs (9)
1834
N(SyntaxKind.
QuestionToken
);
1881
N(SyntaxKind.
QuestionToken
);
1925
N(SyntaxKind.
QuestionToken
);
2000
N(SyntaxKind.
QuestionToken
);
2075
N(SyntaxKind.
QuestionToken
);
3177
N(SyntaxKind.
QuestionToken
);
3241
N(SyntaxKind.
QuestionToken
);
3305
N(SyntaxKind.
QuestionToken
);
3375
N(SyntaxKind.
QuestionToken
);
Parsing\ValueTupleTests.cs (2)
754
N(SyntaxKind.
QuestionToken
);
807
N(SyntaxKind.
QuestionToken
);
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
Classification\ClassificationHelpers.cs (1)
408
case SyntaxKind.
QuestionToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
72
public static readonly SyntaxToken QuestionToken = Token(SyntaxKind.
QuestionToken
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
304
case SyntaxKind.
QuestionToken
: // for int?
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
85
if ((previousToken.IsKeyword() || previousToken.Kind() is SyntaxKind.
QuestionToken
or SyntaxKind.AsteriskToken or SyntaxKind.CloseBracketToken or SyntaxKind.CloseParenToken or SyntaxKind.GreaterThanToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (3)
457
if (currentToken.IsKind(SyntaxKind.
QuestionToken
) && currentToken.Parent.IsKind(SyntaxKind.ConditionalAccessExpression))
463
if (currentToken.Kind() == SyntaxKind.
QuestionToken
&&
470
if (currentToken.IsKind(SyntaxKind.
QuestionToken
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
59
public int QuestionToken => (int)SyntaxKind.
QuestionToken
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
2343
if (previousToken.Kind() is SyntaxKind.AsteriskToken or SyntaxKind.
QuestionToken
&&
2382
if (token.IsKind(SyntaxKind.
QuestionToken
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
129
case SyntaxKind.
QuestionToken
: // for int?
Microsoft.VisualStudio.LanguageServices.CSharp (2)
LanguageService\CSharpHelpContextService.cs (2)
163
else if (token.Parent is NullableTypeSyntax && token.IsKind(SyntaxKind.
QuestionToken
))
317
if (token.IsKind(SyntaxKind.
QuestionToken
) && token.Parent is ConditionalExpressionSyntax)