287 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)
1439
while (CurrentToken.Kind == SyntaxKind.
AsteriskToken
)
Parser\LanguageParser.cs (16)
1968
PeekToken(1).Kind == SyntaxKind.
AsteriskToken
6573
and not SyntaxKind.
AsteriskToken
: // don't allow `Type*?`
6577
case SyntaxKind.
AsteriskToken
6687
lastTokenOfType = EatToken(SyntaxKind.
AsteriskToken
);
6814
if (this.CurrentToken.Kind == SyntaxKind.VoidKeyword && this.PeekToken(1).Kind != SyntaxKind.
AsteriskToken
)
6917
case SyntaxKind.
AsteriskToken
when type.Kind != SyntaxKind.ArrayType:
7013
case SyntaxKind.
AsteriskToken
:
7142
if (token.Kind == SyntaxKind.VoidKeyword && this.CurrentToken.Kind != SyntaxKind.
AsteriskToken
)
7175
var asterisk = EatToken(SyntaxKind.
AsteriskToken
);
7332
=> CurrentToken.Kind == SyntaxKind.DelegateKeyword && PeekToken(1).Kind == SyntaxKind.
AsteriskToken
;
7343
while (this.CurrentToken.Kind == SyntaxKind.
AsteriskToken
)
8017
case SyntaxKind.
AsteriskToken
:
8908
case SyntaxKind.
AsteriskToken
:
10864
this.PeekToken(tokenIndex + 1).Kind != SyntaxKind.
AsteriskToken
;
11591
SyntaxKind.
AsteriskToken
or
11821
case SyntaxKind.
AsteriskToken
:
Parser\Lexer.cs (2)
561
info.Kind = SyntaxKind.
AsteriskToken
;
4079
info.Kind = SyntaxKind.
AsteriskToken
;
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
587
AddPunctuation(SyntaxKind.
AsteriskToken
);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (4)
117
AddPunctuation(SyntaxKind.
AsteriskToken
);
125
AddPunctuation(SyntaxKind.
AsteriskToken
);
135
AddPunctuation(SyntaxKind.
AsteriskToken
);
152
AddPunctuation(SyntaxKind.
AsteriskToken
);
Syntax\SyntaxKindFacts.cs (5)
403
case SyntaxKind.
AsteriskToken
:
467
case SyntaxKind.
AsteriskToken
:
627
case SyntaxKind.
AsteriskToken
:
1039
return SyntaxKind.
AsteriskToken
;
1343
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 (7)
CSharpSyntaxFacts.cs (1)
426
case SyntaxKind.
AsteriskToken
:
SpacingFormattingRule.cs (4)
87
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
:
TokenBasedFormattingRule.cs (2)
478
if (currentToken.Kind() == SyntaxKind.
AsteriskToken
&& currentToken.Parent is PointerTypeSyntax)
484
if (previousToken.Kind() == SyntaxKind.
AsteriskToken
&& previousToken.Parent is PrefixUnaryExpressionSyntax)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
CSharpDeclarationComparer.cs (1)
44
{ SyntaxKind.
AsteriskToken
, 6 },
CSharpTypeInferenceService.TypeInferrer.cs (1)
1055
case SyntaxKind.
AsteriskToken
:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (3)
2313
if (token.IsKind(SyntaxKind.
AsteriskToken
) && semanticModel != null)
2333
if (previousToken.IsKind(SyntaxKind.
AsteriskToken
) ||
3060
return targetToken.IsKind(SyntaxKind.
AsteriskToken
) &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
86
case SyntaxKind.
AsteriskToken
: // for int*
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
128
case SyntaxKind.
AsteriskToken
: // for int*
Microsoft.CodeAnalysis.CSharp.Features (1)
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_DelegateAndFunctionPointerInvoke.cs (1)
68
displayParts.Add(Operator(SyntaxKind.
AsteriskToken
));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (220)
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());
825
Assert.Equal(SyntaxKind.
AsteriskToken
, node.AsteriskToken.Kind);
836
Assert.Equal(SyntaxKind.
AsteriskToken
, node.AsteriskToken.Kind);
10014
=> SyntaxFactory.PointerType(GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.
AsteriskToken
));
10017
=> SyntaxFactory.FunctionPointerType(SyntaxFactory.Token(SyntaxKind.DelegateKeyword), SyntaxFactory.Token(SyntaxKind.
AsteriskToken
), default(FunctionPointerCallingConventionSyntax), GenerateFunctionPointerParameterList());
10801
Assert.Equal(SyntaxKind.
AsteriskToken
, node.AsteriskToken.Kind());
10812
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)
578
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
);
2075
N(SyntaxKind.
AsteriskToken
);
2153
N(SyntaxKind.
AsteriskToken
);
2239
N(SyntaxKind.
AsteriskToken
);
Parsing\AwaitParsingTests.cs (1)
843
N(SyntaxKind.
AsteriskToken
);
Parsing\CrefParsingTests.cs (6)
1380
N(SyntaxKind.
AsteriskToken
);
1394
N(SyntaxKind.
AsteriskToken
);
1396
N(SyntaxKind.
AsteriskToken
);
1434
N(SyntaxKind.
AsteriskToken
);
1555
N(SyntaxKind.
AsteriskToken
);
1698
N(SyntaxKind.
AsteriskToken
);
Parsing\DeclarationParsingTests.cs (1)
5331
TestClassBinaryOperatorMethod(SyntaxKind.
AsteriskToken
);
Parsing\DeclarationScopeParsingTests.cs (2)
9861
N(SyntaxKind.
AsteriskToken
);
9913
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\FileModifierParsingTests.cs (5)
757
N(SyntaxKind.
AsteriskToken
);
1656
N(SyntaxKind.
AsteriskToken
);
1693
N(SyntaxKind.
AsteriskToken
);
1915
N(SyntaxKind.
AsteriskToken
);
1953
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)
1399
N(SyntaxKind.
AsteriskToken
);
Parsing\LambdaParameterParsingTests.cs (2)
2592
N(SyntaxKind.
AsteriskToken
);
3717
N(SyntaxKind.
AsteriskToken
);
Parsing\LambdaReturnTypeParsingTests.cs (12)
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
);
1427
N(SyntaxKind.
AsteriskToken
);
1469
N(SyntaxKind.
AsteriskToken
);
1516
N(SyntaxKind.
AsteriskToken
);
4786
N(SyntaxKind.
AsteriskToken
);
5683
N(SyntaxKind.
AsteriskToken
);
Parsing\MemberDeclarationParsingTests.cs (7)
1957
N(SyntaxKind.
AsteriskToken
);
1992
N(SyntaxKind.
AsteriskToken
);
2155
N(SyntaxKind.
AsteriskToken
);
2191
N(SyntaxKind.
AsteriskToken
);
9776
[InlineData("*", SyntaxKind.
AsteriskToken
)]
9842
[InlineData("*", SyntaxKind.
AsteriskToken
)]
10058
[InlineData("*", 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
);
7695
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)
1649
N(SyntaxKind.
AsteriskToken
);
Parsing\TopLevelStatementsParsingTests.cs (2)
1131
N(SyntaxKind.
AsteriskToken
);
2688
N(SyntaxKind.
AsteriskToken
);
Parsing\TypeArgumentListParsingTests.cs (2)
331
N(SyntaxKind.
AsteriskToken
);
465
N(SyntaxKind.
AsteriskToken
);
Parsing\UsingDirectiveParsingTests.cs (20)
50
N(SyntaxKind.
AsteriskToken
);
124
N(SyntaxKind.
AsteriskToken
);
218
N(SyntaxKind.
AsteriskToken
);
341
N(SyntaxKind.
AsteriskToken
);
428
N(SyntaxKind.
AsteriskToken
);
530
N(SyntaxKind.
AsteriskToken
);
645
N(SyntaxKind.
AsteriskToken
);
697
N(SyntaxKind.
AsteriskToken
);
746
N(SyntaxKind.
AsteriskToken
);
806
N(SyntaxKind.
AsteriskToken
);
1144
N(SyntaxKind.
AsteriskToken
);
1186
N(SyntaxKind.
AsteriskToken
);
1234
N(SyntaxKind.
AsteriskToken
);
1306
N(SyntaxKind.
AsteriskToken
);
1381
N(SyntaxKind.
AsteriskToken
);
1457
N(SyntaxKind.
AsteriskToken
);
1541
N(SyntaxKind.
AsteriskToken
);
2171
N(SyntaxKind.
AsteriskToken
);
2245
N(SyntaxKind.
AsteriskToken
);
2322
N(SyntaxKind.
AsteriskToken
);
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
Classification\ClassificationHelpers.cs (1)
401
case SyntaxKind.
AsteriskToken
:
CodeGeneration\CSharpSyntaxGenerator.cs (1)
313
OperatorKind.Multiply => SyntaxKind.
AsteriskToken
,
CSharpDeclarationComparer.cs (1)
44
{ SyntaxKind.
AsteriskToken
, 6 },
CSharpSyntaxFacts.cs (1)
426
case SyntaxKind.
AsteriskToken
:
CSharpTypeInferenceService.TypeInferrer.cs (1)
1055
case SyntaxKind.
AsteriskToken
:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (3)
2313
if (token.IsKind(SyntaxKind.
AsteriskToken
) && semanticModel != null)
2333
if (previousToken.IsKind(SyntaxKind.
AsteriskToken
) ||
3060
return targetToken.IsKind(SyntaxKind.
AsteriskToken
) &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (1)
86
case SyntaxKind.
AsteriskToken
: // for int*
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
128
case SyntaxKind.
AsteriskToken
: // for int*
SpacingFormattingRule.cs (4)
87
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
:
TokenBasedFormattingRule.cs (2)
478
if (currentToken.Kind() == SyntaxKind.
AsteriskToken
&& currentToken.Parent is PointerTypeSyntax)
484
if (previousToken.Kind() == SyntaxKind.
AsteriskToken
&& previousToken.Parent is PrefixUnaryExpressionSyntax)