317 references to AsteriskToken
Microsoft.CodeAnalysis.CSharp (36)
Binder\Semantics\Operators\OperatorFacts.cs (2)
75
case SyntaxKind.
AsteriskToken
: return isChecked ? WellKnownMemberNames.CheckedMultiplyOperatorName : WellKnownMemberNames.MultiplyOperatorName;
131
if (opTokenKind != SyntaxKind.
AsteriskToken
&& // IsPrefixUnaryExpressionOperatorToken treats it as pointer dereference operator
Parser\DocumentationCommentParser.cs (1)
1449
while (CurrentToken.Kind == SyntaxKind.
AsteriskToken
)
Parser\LanguageParser.cs (16)
2271
PeekToken(1).Kind == SyntaxKind.
AsteriskToken
6981
and not SyntaxKind.
AsteriskToken
: // don't allow `Type*?`
6985
case SyntaxKind.
AsteriskToken
:
7094
lastTokenOfType = EatToken(SyntaxKind.
AsteriskToken
);
7221
if (this.CurrentToken.Kind == SyntaxKind.VoidKeyword && this.PeekToken(1).Kind != SyntaxKind.
AsteriskToken
)
7308
case SyntaxKind.
AsteriskToken
:
7528
case SyntaxKind.
AsteriskToken
:
7657
if (token.Kind == SyntaxKind.VoidKeyword && this.CurrentToken.Kind != SyntaxKind.
AsteriskToken
)
7690
var asterisk = EatToken(SyntaxKind.
AsteriskToken
);
7847
=> CurrentToken.Kind == SyntaxKind.DelegateKeyword && PeekToken(1).Kind == SyntaxKind.
AsteriskToken
;
7858
while (this.CurrentToken.Kind == SyntaxKind.
AsteriskToken
)
8623
case SyntaxKind.
AsteriskToken
:
9506
case SyntaxKind.
AsteriskToken
:
11789
this.PeekToken(tokenIndex + 1).Kind != SyntaxKind.
AsteriskToken
;
12454
SyntaxKind.
AsteriskToken
12699
case SyntaxKind.
AsteriskToken
:
Parser\Lexer.cs (2)
533
info.Kind = TextWindow.TryAdvance('=') ? SyntaxKind.AsteriskEqualsToken : SyntaxKind.
AsteriskToken
;
3737
info.Kind = SyntaxKind.
AsteriskToken
;
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
585
AddPunctuation(SyntaxKind.
AsteriskToken
);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (4)
113
AddPunctuation(SyntaxKind.
AsteriskToken
);
121
AddPunctuation(SyntaxKind.
AsteriskToken
);
131
AddPunctuation(SyntaxKind.
AsteriskToken
);
148
AddPunctuation(SyntaxKind.
AsteriskToken
);
Syntax\SyntaxKindFacts.cs (5)
431
case SyntaxKind.
AsteriskToken
:
495
case SyntaxKind.
AsteriskToken
:
655
case SyntaxKind.
AsteriskToken
:
1067
return SyntaxKind.
AsteriskToken
;
1379
case SyntaxKind.
AsteriskToken
:
Syntax\SyntaxNormalizer.cs (5)
741
if (next.IsKind(SyntaxKind.
AsteriskToken
) && token.IsKind(SyntaxKind.DelegateKeyword))
747
if (token.IsKind(SyntaxKind.
AsteriskToken
) && next.Parent.IsKind(SyntaxKind.FunctionPointerCallingConvention))
764
case SyntaxKind.
AsteriskToken
:
842
if (next.IsKind(SyntaxKind.
AsteriskToken
) && next.Parent is PointerTypeSyntax)
848
if (token.IsKind(SyntaxKind.
AsteriskToken
) && token.Parent is PointerTypeSyntax &&
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
303
case SyntaxKind.
AsteriskToken
: // for int*
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (4)
85
if ((previousToken.IsKeyword() || previousToken.Kind() is SyntaxKind.QuestionToken or SyntaxKind.
AsteriskToken
or SyntaxKind.CloseBracketToken or SyntaxKind.CloseParenToken or SyntaxKind.GreaterThanToken)
367
if (currentKind == SyntaxKind.
AsteriskToken
&& previousKind == SyntaxKind.DelegateKeyword)
373
if (previousKind == SyntaxKind.
AsteriskToken
&& currentParentKind == SyntaxKind.FunctionPointerCallingConvention)
390
case SyntaxKind.
AsteriskToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (2)
484
if (currentToken.Kind() == SyntaxKind.
AsteriskToken
&& currentToken.Parent is PointerTypeSyntax)
490
if (previousToken.Kind() == SyntaxKind.
AsteriskToken
&& previousToken.Parent is PrefixUnaryExpressionSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
429
case SyntaxKind.
AsteriskToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
44
{ SyntaxKind.
AsteriskToken
, 6 },
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
2323
if (token.IsKind(SyntaxKind.
AsteriskToken
) && semanticModel != null)
2343
if (previousToken.Kind() is SyntaxKind.
AsteriskToken
or SyntaxKind.QuestionToken &&
3057
return targetToken.IsKind(SyntaxKind.
AsteriskToken
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
128
case SyntaxKind.
AsteriskToken
: // for int*
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1051
case SyntaxKind.
AsteriskToken
:
Microsoft.CodeAnalysis.CSharp.Features (1)
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_DelegateAndFunctionPointerInvoke.cs (1)
67
displayParts.Add(Operator(SyntaxKind.
AsteriskToken
));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (251)
Generated\Syntax.Test.xml.Generated.cs (8)
38
=> InternalSyntaxFactory.PointerType(GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.
AsteriskToken
));
41
=> InternalSyntaxFactory.FunctionPointerType(InternalSyntaxFactory.Token(SyntaxKind.DelegateKeyword), InternalSyntaxFactory.Token(SyntaxKind.
AsteriskToken
), null, GenerateFunctionPointerParameterList());
843
Assert.Equal(SyntaxKind.
AsteriskToken
, node.AsteriskToken.Kind);
854
Assert.Equal(SyntaxKind.
AsteriskToken
, node.AsteriskToken.Kind);
10254
=> SyntaxFactory.PointerType(GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.
AsteriskToken
));
10257
=> SyntaxFactory.FunctionPointerType(SyntaxFactory.Token(SyntaxKind.DelegateKeyword), SyntaxFactory.Token(SyntaxKind.
AsteriskToken
), default(FunctionPointerCallingConventionSyntax), GenerateFunctionPointerParameterList());
11059
Assert.Equal(SyntaxKind.
AsteriskToken
, node.AsteriskToken.Kind());
11070
Assert.Equal(SyntaxKind.
AsteriskToken
, node.AsteriskToken.Kind());
LexicalAndXml\CrefLexerTests.cs (5)
131
AssertTokens("*", Token(SyntaxKind.
AsteriskToken
));
151
AssertTokens("*", Token(SyntaxKind.
AsteriskToken
, "*", "*"));
218
AssertTokens("*", Token(SyntaxKind.
AsteriskToken
));
244
AssertTokens("*", Token(SyntaxKind.
AsteriskToken
, "*", "*"));
393
Token(SyntaxKind.
AsteriskToken
),
LexicalAndXml\LexicalTests.cs (1)
905
TestPunctuation(SyntaxKind.
AsteriskToken
);
LexicalAndXml\NameAttributeValueLexerTests.cs (4)
136
AssertTokens("*", Token(SyntaxKind.
AsteriskToken
));
156
AssertTokens("*", Token(SyntaxKind.
AsteriskToken
, "*", "*"));
225
AssertTokens("*", Token(SyntaxKind.
AsteriskToken
));
251
AssertTokens("*", Token(SyntaxKind.
AsteriskToken
, "*", "*"));
Parsing\AnonymousFunctionParsingTests.cs (4)
1934
N(SyntaxKind.
AsteriskToken
);
2063
N(SyntaxKind.
AsteriskToken
);
2141
N(SyntaxKind.
AsteriskToken
);
2227
N(SyntaxKind.
AsteriskToken
);
Parsing\AwaitParsingTests.cs (1)
844
N(SyntaxKind.
AsteriskToken
);
Parsing\CollectionExpressionParsingTests.cs (8)
4886
N(SyntaxKind.
AsteriskToken
);
7541
N(SyntaxKind.
AsteriskToken
);
7558
N(SyntaxKind.
AsteriskToken
);
7582
N(SyntaxKind.
AsteriskToken
);
7614
N(SyntaxKind.
AsteriskToken
);
7667
N(SyntaxKind.
AsteriskToken
);
16566
N(SyntaxKind.
AsteriskToken
);
16649
N(SyntaxKind.
AsteriskToken
);
Parsing\CrefParsingTests.cs (6)
1707
N(SyntaxKind.
AsteriskToken
);
1721
N(SyntaxKind.
AsteriskToken
);
1723
N(SyntaxKind.
AsteriskToken
);
1761
N(SyntaxKind.
AsteriskToken
);
1882
N(SyntaxKind.
AsteriskToken
);
2025
N(SyntaxKind.
AsteriskToken
);
Parsing\DeclarationParsingTests.cs (1)
5331
TestClassBinaryOperatorMethod(SyntaxKind.
AsteriskToken
);
Parsing\DeclarationScopeParsingTests.cs (2)
9548
N(SyntaxKind.
AsteriskToken
);
9600
N(SyntaxKind.
AsteriskToken
);
Parsing\DeconstructionTests.cs (9)
3209
N(SyntaxKind.
AsteriskToken
);
3423
N(SyntaxKind.
AsteriskToken
);
3474
N(SyntaxKind.
AsteriskToken
);
3536
N(SyntaxKind.
AsteriskToken
);
3594
N(SyntaxKind.
AsteriskToken
);
3641
N(SyntaxKind.
AsteriskToken
);
3657
N(SyntaxKind.
AsteriskToken
);
3694
N(SyntaxKind.
AsteriskToken
);
3710
N(SyntaxKind.
AsteriskToken
);
Parsing\ExpressionParsingTests.cs (3)
591
TestPrefixUnary(SyntaxKind.
AsteriskToken
);
644
TestBinary(SyntaxKind.
AsteriskToken
);
5467
N(SyntaxKind.
AsteriskToken
);
Parsing\FieldKeywordParsingTests.cs (1)
1073
N(SyntaxKind.
AsteriskToken
);
Parsing\FileModifierParsingTests.cs (5)
758
N(SyntaxKind.
AsteriskToken
);
1657
N(SyntaxKind.
AsteriskToken
);
1694
N(SyntaxKind.
AsteriskToken
);
1916
N(SyntaxKind.
AsteriskToken
);
1954
N(SyntaxKind.
AsteriskToken
);
Parsing\FunctionPointerTests.cs (84)
28
N(SyntaxKind.
AsteriskToken
);
84
N(SyntaxKind.
AsteriskToken
);
156
N(SyntaxKind.
AsteriskToken
);
206
N(SyntaxKind.
AsteriskToken
);
249
N(SyntaxKind.
AsteriskToken
);
301
N(SyntaxKind.
AsteriskToken
);
352
N(SyntaxKind.
AsteriskToken
);
395
N(SyntaxKind.
AsteriskToken
);
443
N(SyntaxKind.
AsteriskToken
);
541
N(SyntaxKind.
AsteriskToken
);
606
N(SyntaxKind.
AsteriskToken
);
657
N(SyntaxKind.
AsteriskToken
);
666
N(SyntaxKind.
AsteriskToken
);
691
N(SyntaxKind.
AsteriskToken
);
703
N(SyntaxKind.
AsteriskToken
);
716
N(SyntaxKind.
AsteriskToken
);
732
N(SyntaxKind.
AsteriskToken
);
765
N(SyntaxKind.
AsteriskToken
);
787
N(SyntaxKind.
AsteriskToken
);
810
N(SyntaxKind.
AsteriskToken
);
851
N(SyntaxKind.
AsteriskToken
);
887
N(SyntaxKind.
AsteriskToken
);
931
N(SyntaxKind.
AsteriskToken
);
973
N(SyntaxKind.
AsteriskToken
);
1018
N(SyntaxKind.
AsteriskToken
);
1068
N(SyntaxKind.
AsteriskToken
);
1122
N(SyntaxKind.
AsteriskToken
);
1173
N(SyntaxKind.
AsteriskToken
);
1227
N(SyntaxKind.
AsteriskToken
);
1284
N(SyntaxKind.
AsteriskToken
);
1353
N(SyntaxKind.
AsteriskToken
);
1397
N(SyntaxKind.
AsteriskToken
);
1445
N(SyntaxKind.
AsteriskToken
);
1503
N(SyntaxKind.
AsteriskToken
);
1567
N(SyntaxKind.
AsteriskToken
);
1623
N(SyntaxKind.
AsteriskToken
);
1670
N(SyntaxKind.
AsteriskToken
);
1724
N(SyntaxKind.
AsteriskToken
);
1755
N(SyntaxKind.
AsteriskToken
);
1785
N(SyntaxKind.
AsteriskToken
);
1839
N(SyntaxKind.
AsteriskToken
);
1897
N(SyntaxKind.
AsteriskToken
);
1951
N(SyntaxKind.
AsteriskToken
);
1981
N(SyntaxKind.
AsteriskToken
);
2036
N(SyntaxKind.
AsteriskToken
);
2067
N(SyntaxKind.
AsteriskToken
);
2112
N(SyntaxKind.
AsteriskToken
);
2168
N(SyntaxKind.
AsteriskToken
);
2225
N(SyntaxKind.
AsteriskToken
);
2261
N(SyntaxKind.
AsteriskToken
);
2311
N(SyntaxKind.
AsteriskToken
);
2381
N(SyntaxKind.
AsteriskToken
);
2407
N(SyntaxKind.
AsteriskToken
);
2440
N(SyntaxKind.
AsteriskToken
);
2484
N(SyntaxKind.
AsteriskToken
);
2518
N(SyntaxKind.
AsteriskToken
);
2572
N(SyntaxKind.
AsteriskToken
);
2606
N(SyntaxKind.
AsteriskToken
);
2687
N(SyntaxKind.
AsteriskToken
);
2720
N(SyntaxKind.
AsteriskToken
);
2791
N(SyntaxKind.
AsteriskToken
);
2848
N(SyntaxKind.
AsteriskToken
);
2901
N(SyntaxKind.
AsteriskToken
);
2953
N(SyntaxKind.
AsteriskToken
);
2996
N(SyntaxKind.
AsteriskToken
);
3046
N(SyntaxKind.
AsteriskToken
);
3082
N(SyntaxKind.
AsteriskToken
);
3142
N(SyntaxKind.
AsteriskToken
);
3186
N(SyntaxKind.
AsteriskToken
);
3237
N(SyntaxKind.
AsteriskToken
);
3279
N(SyntaxKind.
AsteriskToken
);
3318
N(SyntaxKind.
AsteriskToken
);
3384
N(SyntaxKind.
AsteriskToken
);
3457
N(SyntaxKind.
AsteriskToken
);
3537
N(SyntaxKind.
AsteriskToken
);
3609
N(SyntaxKind.
AsteriskToken
);
3667
N(SyntaxKind.
AsteriskToken
);
3711
N(SyntaxKind.
AsteriskToken
);
3768
N(SyntaxKind.
AsteriskToken
);
3828
N(SyntaxKind.
AsteriskToken
);
3909
N(SyntaxKind.
AsteriskToken
);
3997
N(SyntaxKind.
AsteriskToken
);
4089
N(SyntaxKind.
AsteriskToken
);
4147
N(SyntaxKind.
AsteriskToken
);
Parsing\ImplicitObjectCreationParsingTests.cs (1)
291
[InlineData(SyntaxKind.MultiplyExpression, SyntaxKind.
AsteriskToken
)]
Parsing\LambdaAttributeParsingTests.cs (1)
1361
N(SyntaxKind.
AsteriskToken
);
Parsing\LambdaParameterParsingTests.cs (2)
2680
N(SyntaxKind.
AsteriskToken
);
3805
N(SyntaxKind.
AsteriskToken
);
Parsing\LambdaReturnTypeParsingTests.cs (14)
470
N(SyntaxKind.
AsteriskToken
);
500
N(SyntaxKind.
AsteriskToken
);
530
N(SyntaxKind.
AsteriskToken
);
562
N(SyntaxKind.
AsteriskToken
);
601
N(SyntaxKind.
AsteriskToken
);
624
N(SyntaxKind.
AsteriskToken
);
1378
N(SyntaxKind.
AsteriskToken
);
1423
N(SyntaxKind.
AsteriskToken
);
1463
N(SyntaxKind.
AsteriskToken
);
1500
N(SyntaxKind.
AsteriskToken
);
1542
N(SyntaxKind.
AsteriskToken
);
1589
N(SyntaxKind.
AsteriskToken
);
4859
N(SyntaxKind.
AsteriskToken
);
5756
N(SyntaxKind.
AsteriskToken
);
Parsing\MemberDeclarationParsingTests.cs (14)
1951
N(SyntaxKind.
AsteriskToken
);
1986
N(SyntaxKind.
AsteriskToken
);
2149
N(SyntaxKind.
AsteriskToken
);
2185
N(SyntaxKind.
AsteriskToken
);
9765
[InlineData("*", SyntaxKind.
AsteriskToken
)]
9831
[InlineData("*", SyntaxKind.
AsteriskToken
)]
10047
[InlineData("*", SyntaxKind.
AsteriskToken
)]
13310
N(SyntaxKind.
AsteriskToken
);
13565
N(SyntaxKind.
AsteriskToken
);
15492
N(SyntaxKind.
AsteriskToken
);
15571
N(SyntaxKind.
AsteriskToken
);
15652
N(SyntaxKind.
AsteriskToken
);
15654
N(SyntaxKind.
AsteriskToken
);
15822
N(SyntaxKind.
AsteriskToken
);
Parsing\ParsingErrorRecoveryTests.cs (3)
8060
N(SyntaxKind.
AsteriskToken
);
8063
N(SyntaxKind.
AsteriskToken
);
8100
N(SyntaxKind.
AsteriskToken
);
Parsing\PatternParsingTests.cs (34)
1070
N(SyntaxKind.
AsteriskToken
);
1073
N(SyntaxKind.
AsteriskToken
);
1076
N(SyntaxKind.
AsteriskToken
);
1108
N(SyntaxKind.
AsteriskToken
);
1111
N(SyntaxKind.
AsteriskToken
);
1114
N(SyntaxKind.
AsteriskToken
);
1150
N(SyntaxKind.
AsteriskToken
);
1152
N(SyntaxKind.
AsteriskToken
);
1154
N(SyntaxKind.
AsteriskToken
);
1195
N(SyntaxKind.
AsteriskToken
);
1197
N(SyntaxKind.
AsteriskToken
);
1199
N(SyntaxKind.
AsteriskToken
);
1235
N(SyntaxKind.
AsteriskToken
);
1238
N(SyntaxKind.
AsteriskToken
);
1241
N(SyntaxKind.
AsteriskToken
);
1276
N(SyntaxKind.
AsteriskToken
);
1279
N(SyntaxKind.
AsteriskToken
);
1282
N(SyntaxKind.
AsteriskToken
);
1318
N(SyntaxKind.
AsteriskToken
);
1320
N(SyntaxKind.
AsteriskToken
);
1322
N(SyntaxKind.
AsteriskToken
);
1376
N(SyntaxKind.
AsteriskToken
);
1379
N(SyntaxKind.
AsteriskToken
);
1382
N(SyntaxKind.
AsteriskToken
);
1427
N(SyntaxKind.
AsteriskToken
);
1429
N(SyntaxKind.
AsteriskToken
);
1431
N(SyntaxKind.
AsteriskToken
);
1479
N(SyntaxKind.
AsteriskToken
);
1482
N(SyntaxKind.
AsteriskToken
);
1485
N(SyntaxKind.
AsteriskToken
);
1539
N(SyntaxKind.
AsteriskToken
);
1541
N(SyntaxKind.
AsteriskToken
);
1543
N(SyntaxKind.
AsteriskToken
);
7656
N(SyntaxKind.
AsteriskToken
);
Parsing\ScriptParsingTests.cs (5)
1351
N(SyntaxKind.
AsteriskToken
);
2626
N(SyntaxKind.
AsteriskToken
);
2658
N(SyntaxKind.
AsteriskToken
);
2707
N(SyntaxKind.
AsteriskToken
);
8899
N(SyntaxKind.
AsteriskToken
);
Parsing\StatementAttributeParsingTests.cs (1)
1650
N(SyntaxKind.
AsteriskToken
);
Parsing\StatementParsingTests.cs (2)
4205
N(SyntaxKind.
AsteriskToken
);
4235
N(SyntaxKind.
AsteriskToken
);
Parsing\TopLevelStatementsParsingTests.cs (2)
1131
N(SyntaxKind.
AsteriskToken
);
2691
N(SyntaxKind.
AsteriskToken
);
Parsing\TypeArgumentListParsingTests.cs (2)
329
N(SyntaxKind.
AsteriskToken
);
463
N(SyntaxKind.
AsteriskToken
);
Parsing\UsingDirectiveParsingTests.cs (28)
50
N(SyntaxKind.
AsteriskToken
);
124
N(SyntaxKind.
AsteriskToken
);
218
N(SyntaxKind.
AsteriskToken
);
331
N(SyntaxKind.
AsteriskToken
);
418
N(SyntaxKind.
AsteriskToken
);
520
N(SyntaxKind.
AsteriskToken
);
635
N(SyntaxKind.
AsteriskToken
);
687
N(SyntaxKind.
AsteriskToken
);
736
N(SyntaxKind.
AsteriskToken
);
796
N(SyntaxKind.
AsteriskToken
);
1094
N(SyntaxKind.
AsteriskToken
);
1136
N(SyntaxKind.
AsteriskToken
);
1184
N(SyntaxKind.
AsteriskToken
);
1256
N(SyntaxKind.
AsteriskToken
);
1331
N(SyntaxKind.
AsteriskToken
);
1407
N(SyntaxKind.
AsteriskToken
);
1491
N(SyntaxKind.
AsteriskToken
);
2121
N(SyntaxKind.
AsteriskToken
);
2195
N(SyntaxKind.
AsteriskToken
);
2272
N(SyntaxKind.
AsteriskToken
);
4672
N(SyntaxKind.
AsteriskToken
);
4753
N(SyntaxKind.
AsteriskToken
);
4834
N(SyntaxKind.
AsteriskToken
);
4912
N(SyntaxKind.
AsteriskToken
);
4990
N(SyntaxKind.
AsteriskToken
);
5068
N(SyntaxKind.
AsteriskToken
);
5148
N(SyntaxKind.
AsteriskToken
);
5228
N(SyntaxKind.
AsteriskToken
);
Microsoft.CodeAnalysis.CSharp.Workspaces (15)
Classification\ClassificationHelpers.cs (1)
399
case SyntaxKind.
AsteriskToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
303
case SyntaxKind.
AsteriskToken
: // for int*
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (4)
85
if ((previousToken.IsKeyword() || previousToken.Kind() is SyntaxKind.QuestionToken or SyntaxKind.
AsteriskToken
or SyntaxKind.CloseBracketToken or SyntaxKind.CloseParenToken or SyntaxKind.GreaterThanToken)
367
if (currentKind == SyntaxKind.
AsteriskToken
&& previousKind == SyntaxKind.DelegateKeyword)
373
if (previousKind == SyntaxKind.
AsteriskToken
&& currentParentKind == SyntaxKind.FunctionPointerCallingConvention)
390
case SyntaxKind.
AsteriskToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (2)
484
if (currentToken.Kind() == SyntaxKind.
AsteriskToken
&& currentToken.Parent is PointerTypeSyntax)
490
if (previousToken.Kind() == SyntaxKind.
AsteriskToken
&& previousToken.Parent is PrefixUnaryExpressionSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
429
case SyntaxKind.
AsteriskToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
44
{ SyntaxKind.
AsteriskToken
, 6 },
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
2323
if (token.IsKind(SyntaxKind.
AsteriskToken
) && semanticModel != null)
2343
if (previousToken.Kind() is SyntaxKind.
AsteriskToken
or SyntaxKind.QuestionToken &&
3057
return targetToken.IsKind(SyntaxKind.
AsteriskToken
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
128
case SyntaxKind.
AsteriskToken
: // for int*
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1051
case SyntaxKind.
AsteriskToken
: