400 references to QuestionToken
Microsoft.CodeAnalysis.CSharp (28)
Binder\Binder_Constraints.cs (1)
151
if (questionToken.IsKind(SyntaxKind.
QuestionToken
))
Parser\DocumentationCommentParser.cs (1)
1434
if (CurrentToken.Kind == SyntaxKind.
QuestionToken
)
Parser\LanguageParser.cs (16)
1947
this.CurrentToken.Kind == SyntaxKind.
QuestionToken
1948
? this.AddError(this.EatToken(), ErrorCode.ERR_UnexpectedToken, SyntaxFacts.GetText(SyntaxKind.
QuestionToken
))
1955
this.TryEatToken(SyntaxKind.
QuestionToken
)),
5635
case SyntaxKind.
QuestionToken
:
6571
case SyntaxKind.
QuestionToken
6572
when lastTokenOfType.Kind is not SyntaxKind.
QuestionToken
// don't allow `Type??`
6889
case SyntaxKind.
QuestionToken
when canBeNullableType():
6966
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
QuestionToken
);
8018
case SyntaxKind.
QuestionToken
:
8909
case SyntaxKind.
QuestionToken
:
10571
if (CurrentToken.Kind == SyntaxKind.
QuestionToken
&& precedence <= Precedence.Conditional)
10932
case SyntaxKind.
QuestionToken
:
10993
case SyntaxKind.
QuestionToken
:
11016
or SyntaxKind.
QuestionToken
;
11802
case SyntaxKind.
QuestionToken
:
11982
case SyntaxKind.
QuestionToken
: // e.g. `new(a, b)?()`
Parser\LanguageParser_Patterns.cs (1)
398
case SyntaxKind.
QuestionToken
:
Parser\Lexer.cs (2)
614
info.Kind = SyntaxKind.
QuestionToken
;
4073
info.Kind = SyntaxKind.
QuestionToken
;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (3)
78
AddPunctuation(type.NullableAnnotation == CodeAnalysis.NullableAnnotation.Annotated ? SyntaxKind.
QuestionToken
: SyntaxKind.ExclamationToken);
226
AddPunctuation(SyntaxKind.
QuestionToken
);
871
AddPunctuation(SyntaxKind.
QuestionToken
);
Syntax\SyntaxKindFacts.cs (1)
1383
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 (5)
CSharpSyntaxKinds.cs (1)
50
public int QuestionToken => (int)SyntaxKind.
QuestionToken
;
SpacingFormattingRule.cs (1)
87
if ((previousToken.IsKeyword() || previousToken.Kind() is SyntaxKind.
QuestionToken
or SyntaxKind.AsteriskToken or SyntaxKind.CloseBracketToken or SyntaxKind.CloseParenToken or SyntaxKind.GreaterThanToken)
TokenBasedFormattingRule.cs (3)
451
if (currentToken.IsKind(SyntaxKind.
QuestionToken
) && currentToken.Parent.IsKind(SyntaxKind.ConditionalAccessExpression))
457
if (currentToken.Kind() == SyntaxKind.
QuestionToken
&&
464
if (currentToken.IsKind(SyntaxKind.
QuestionToken
) &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
ConditionalExpressionPlacementCodeFixProvider.cs (1)
59
Contract.ThrowIfTrue(questionToken.Kind() != SyntaxKind.
QuestionToken
);
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
2334
previousToken.IsKind(SyntaxKind.
QuestionToken
))
2379
if (token.IsKind(SyntaxKind.
QuestionToken
) &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
87
case SyntaxKind.
QuestionToken
: // for int?
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
129
case SyntaxKind.
QuestionToken
: // for int?
MultiLineConditionalExpressionFormattingRule.cs (1)
36
if (token.Kind() is SyntaxKind.
QuestionToken
or
Microsoft.CodeAnalysis.CSharp.Features (9)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (2)
378
if (token.IsKind(SyntaxKind.
QuestionToken
) &&
516
SyntaxKind.
QuestionToken
||
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (1)
191
var questionToken = dotToken.GetPreviousToken().Kind() == SyntaxKind.
QuestionToken
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Conversions.cs (1)
80
var questionToken = dotToken.GetPreviousToken().Kind() == SyntaxKind.
QuestionToken
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
185
case SyntaxKind.
QuestionToken
:
Completion\KeywordRecommenders\ThrowKeywordRecommender.cs (1)
38
if (context.TargetToken.Kind() is SyntaxKind.
QuestionToken
or
ConditionalExpressionPlacementCodeFixProvider.cs (1)
59
Contract.ThrowIfTrue(questionToken.Kind() != SyntaxKind.
QuestionToken
);
ConvertCast\CSharpConvertTryCastToDirectCastCodeRefactoringProvider.cs (1)
58
typeNode = NullableType(typeNode, Token(SyntaxKind.
QuestionToken
));
MultiLineConditionalExpressionFormattingRule.cs (1)
36
if (token.Kind() is SyntaxKind.
QuestionToken
or
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (340)
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());
894
Assert.Equal(SyntaxKind.
QuestionToken
, node.QuestionToken.Kind);
1030
Assert.Equal(SyntaxKind.
QuestionToken
, node.OperatorToken.Kind);
1109
Assert.Equal(SyntaxKind.
QuestionToken
, node.QuestionToken.Kind);
10032
=> SyntaxFactory.NullableType(GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.
QuestionToken
));
10068
=> SyntaxFactory.ConditionalAccessExpression(GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.
QuestionToken
), GenerateIdentifierName());
10089
=> SyntaxFactory.ConditionalExpression(GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.
QuestionToken
), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.ColonToken), GenerateIdentifierName());
10870
Assert.Equal(SyntaxKind.
QuestionToken
, node.QuestionToken.Kind());
11006
Assert.Equal(SyntaxKind.
QuestionToken
, node.OperatorToken.Kind());
11085
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)
600
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\AwaitParsingTests.cs (1)
907
N(SyntaxKind.
QuestionToken
);
Parsing\CrefParsingTests.cs (5)
1350
N(SyntaxKind.
QuestionToken
);
1553
N(SyntaxKind.
QuestionToken
);
1605
N(SyntaxKind.
QuestionToken
);
1683
N(SyntaxKind.
QuestionToken
);
1696
N(SyntaxKind.
QuestionToken
);
Parsing\DeclarationExpressionTests.cs (7)
44
N(SyntaxKind.
QuestionToken
);
81
N(SyntaxKind.
QuestionToken
);
116
N(SyntaxKind.
QuestionToken
);
166
N(SyntaxKind.
QuestionToken
);
216
N(SyntaxKind.
QuestionToken
);
273
N(SyntaxKind.
QuestionToken
);
339
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 (3)
907
Assert.Equal(SyntaxKind.
QuestionToken
, ts.QuestionToken.Kind());
5048
N(SyntaxKind.
QuestionToken
);
5984
N(SyntaxKind.
QuestionToken
);
Parsing\FileModifierParsingTests.cs (2)
1676
N(SyntaxKind.
QuestionToken
);
1936
N(SyntaxKind.
QuestionToken
);
Parsing\ImplicitObjectCreationParsingTests.cs (2)
74
N(SyntaxKind.
QuestionToken
);
164
N(SyntaxKind.
QuestionToken
);
Parsing\LambdaAttributeParsingTests.cs (16)
1531
N(SyntaxKind.
QuestionToken
);
1570
N(SyntaxKind.
QuestionToken
);
1618
N(SyntaxKind.
QuestionToken
);
2034
N(SyntaxKind.
QuestionToken
);
2089
N(SyntaxKind.
QuestionToken
);
2148
N(SyntaxKind.
QuestionToken
);
2199
N(SyntaxKind.
QuestionToken
);
2243
N(SyntaxKind.
QuestionToken
);
2297
N(SyntaxKind.
QuestionToken
);
2352
N(SyntaxKind.
QuestionToken
);
2410
N(SyntaxKind.
QuestionToken
);
2459
N(SyntaxKind.
QuestionToken
);
2525
N(SyntaxKind.
QuestionToken
);
2562
N(SyntaxKind.
QuestionToken
);
2607
N(SyntaxKind.
QuestionToken
);
2643
N(SyntaxKind.
QuestionToken
);
Parsing\LambdaParameterParsingTests.cs (3)
4190
N(SyntaxKind.
QuestionToken
);
4197
N(SyntaxKind.
QuestionToken
);
4215
N(SyntaxKind.
QuestionToken
);
Parsing\LambdaReturnTypeParsingTests.cs (40)
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
);
1433
N(SyntaxKind.
QuestionToken
);
1483
N(SyntaxKind.
QuestionToken
);
1530
N(SyntaxKind.
QuestionToken
);
1561
N(SyntaxKind.
QuestionToken
);
1595
N(SyntaxKind.
QuestionToken
);
1625
N(SyntaxKind.
QuestionToken
);
1653
N(SyntaxKind.
QuestionToken
);
1691
N(SyntaxKind.
QuestionToken
);
1749
N(SyntaxKind.
QuestionToken
);
1794
N(SyntaxKind.
QuestionToken
);
1828
N(SyntaxKind.
QuestionToken
);
1835
N(SyntaxKind.
QuestionToken
);
1876
N(SyntaxKind.
QuestionToken
);
1883
N(SyntaxKind.
QuestionToken
);
1924
N(SyntaxKind.
QuestionToken
);
1936
N(SyntaxKind.
QuestionToken
);
3068
N(SyntaxKind.
QuestionToken
);
3116
N(SyntaxKind.
QuestionToken
);
3159
N(SyntaxKind.
QuestionToken
);
3207
N(SyntaxKind.
QuestionToken
);
3250
N(SyntaxKind.
QuestionToken
);
3320
N(SyntaxKind.
QuestionToken
);
4361
N(SyntaxKind.
QuestionToken
);
Parsing\LocalFunctionParsingTests.cs (2)
217
N(SyntaxKind.
QuestionToken
);
332
N(SyntaxKind.
QuestionToken
);
Parsing\MemberDeclarationParsingTests.cs (2)
1976
N(SyntaxKind.
QuestionToken
);
2175
N(SyntaxKind.
QuestionToken
);
Parsing\NullableParsingTests.cs (35)
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
);
712
N(SyntaxKind.
QuestionToken
);
920
N(SyntaxKind.
QuestionToken
);
991
N(SyntaxKind.
QuestionToken
);
1051
N(SyntaxKind.
QuestionToken
);
1072
N(SyntaxKind.
QuestionToken
);
1117
N(SyntaxKind.
QuestionToken
);
1141
N(SyntaxKind.
QuestionToken
);
1184
N(SyntaxKind.
QuestionToken
);
1236
N(SyntaxKind.
QuestionToken
);
1300
N(SyntaxKind.
QuestionToken
);
1355
N(SyntaxKind.
QuestionToken
);
1422
N(SyntaxKind.
QuestionToken
);
1475
N(SyntaxKind.
QuestionToken
);
1531
N(SyntaxKind.
QuestionToken
);
1543
N(SyntaxKind.
QuestionToken
);
1595
N(SyntaxKind.
QuestionToken
);
1607
N(SyntaxKind.
QuestionToken
);
1659
N(SyntaxKind.
QuestionToken
);
1671
N(SyntaxKind.
QuestionToken
);
1745
N(SyntaxKind.
QuestionToken
);
1762
N(SyntaxKind.
QuestionToken
);
Parsing\PatternParsingTests.cs (19)
2609
N(SyntaxKind.
QuestionToken
);
6409
N(SyntaxKind.
QuestionToken
);
6461
N(SyntaxKind.
QuestionToken
);
6523
N(SyntaxKind.
QuestionToken
);
6555
N(SyntaxKind.
QuestionToken
);
6588
N(SyntaxKind.
QuestionToken
);
6591
N(SyntaxKind.
QuestionToken
);
10261
N(SyntaxKind.
QuestionToken
);
12192
N(SyntaxKind.
QuestionToken
);
12238
N(SyntaxKind.
QuestionToken
);
12290
N(SyntaxKind.
QuestionToken
);
12341
N(SyntaxKind.
QuestionToken
);
12393
N(SyntaxKind.
QuestionToken
);
12439
N(SyntaxKind.
QuestionToken
);
12491
N(SyntaxKind.
QuestionToken
);
12542
N(SyntaxKind.
QuestionToken
);
12596
N(SyntaxKind.
QuestionToken
);
12651
N(SyntaxKind.
QuestionToken
);
12705
N(SyntaxKind.
QuestionToken
);
Parsing\PatternParsingTests2.cs (2)
304
N(SyntaxKind.
QuestionToken
);
861
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)
4571
N(SyntaxKind.
QuestionToken
);
4916
N(SyntaxKind.
QuestionToken
);
Parsing\StatementParsingTests.cs (6)
2975
N(SyntaxKind.
QuestionToken
);
3048
N(SyntaxKind.
QuestionToken
);
3120
N(SyntaxKind.
QuestionToken
);
4098
N(SyntaxKind.
QuestionToken
);
4157
N(SyntaxKind.
QuestionToken
);
4241
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
);
463
N(SyntaxKind.
QuestionToken
);
473
N(SyntaxKind.
QuestionToken
);
544
N(SyntaxKind.
QuestionToken
);
554
N(SyntaxKind.
QuestionToken
);
615
N(SyntaxKind.
QuestionToken
);
629
N(SyntaxKind.
QuestionToken
);
673
N(SyntaxKind.
QuestionToken
);
739
N(SyntaxKind.
QuestionToken
);
783
N(SyntaxKind.
QuestionToken
);
841
N(SyntaxKind.
QuestionToken
);
877
N(SyntaxKind.
QuestionToken
);
916
N(SyntaxKind.
QuestionToken
);
967
N(SyntaxKind.
QuestionToken
);
Parsing\TypeArgumentListParsingTests.cs (3)
1486
N(SyntaxKind.
QuestionToken
);
1606
N(SyntaxKind.
QuestionToken
);
1712
N(SyntaxKind.
QuestionToken
);
Parsing\UsingDirectiveParsingTests.cs (9)
1884
N(SyntaxKind.
QuestionToken
);
1931
N(SyntaxKind.
QuestionToken
);
1975
N(SyntaxKind.
QuestionToken
);
2050
N(SyntaxKind.
QuestionToken
);
2125
N(SyntaxKind.
QuestionToken
);
3227
N(SyntaxKind.
QuestionToken
);
3291
N(SyntaxKind.
QuestionToken
);
3355
N(SyntaxKind.
QuestionToken
);
3425
N(SyntaxKind.
QuestionToken
);
Parsing\ValueTupleTests.cs (2)
754
N(SyntaxKind.
QuestionToken
);
807
N(SyntaxKind.
QuestionToken
);
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Classification\ClassificationHelpers.cs (1)
410
case SyntaxKind.
QuestionToken
:
CSharpSyntaxKinds.cs (1)
50
public int QuestionToken => (int)SyntaxKind.
QuestionToken
;
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
2334
previousToken.IsKind(SyntaxKind.
QuestionToken
))
2379
if (token.IsKind(SyntaxKind.
QuestionToken
) &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
87
case SyntaxKind.
QuestionToken
: // for int?
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
129
case SyntaxKind.
QuestionToken
: // for int?
SpacingFormattingRule.cs (1)
87
if ((previousToken.IsKeyword() || previousToken.Kind() is SyntaxKind.
QuestionToken
or SyntaxKind.AsteriskToken or SyntaxKind.CloseBracketToken or SyntaxKind.CloseParenToken or SyntaxKind.GreaterThanToken)
TokenBasedFormattingRule.cs (3)
451
if (currentToken.IsKind(SyntaxKind.
QuestionToken
) && currentToken.Parent.IsKind(SyntaxKind.ConditionalAccessExpression))
457
if (currentToken.Kind() == SyntaxKind.
QuestionToken
&&
464
if (currentToken.IsKind(SyntaxKind.
QuestionToken
) &&
Microsoft.VisualStudio.LanguageServices.CSharp (2)
LanguageService\CSharpHelpContextService.cs (2)
166
else if (token.Parent is NullableTypeSyntax && token.IsKind(SyntaxKind.
QuestionToken
))
315
if (token.IsKind(SyntaxKind.
QuestionToken
) && token.Parent is ConditionalExpressionSyntax)