76 references to PlusPlusToken
Microsoft.CodeAnalysis.CSharp (12)
Binder\Semantics\Operators\OperatorFacts.cs (1)
109
case SyntaxKind.
PlusPlusToken
: return isChecked ? WellKnownMemberNames.CheckedIncrementOperatorName : WellKnownMemberNames.IncrementOperatorName;
Parser\LanguageParser.cs (3)
7906
or SyntaxKind.
PlusPlusToken
11640
case SyntaxKind.
PlusPlusToken
:
12702
case SyntaxKind.
PlusPlusToken
:
Parser\Lexer.cs (2)
577
TextWindow.TryAdvance('+') ? SyntaxKind.
PlusPlusToken
: SyntaxKind.PlusToken;
3787
if (AdvanceIfMatches('+')) info.Kind = SyntaxKind.
PlusPlusToken
;
Syntax\SyntaxKindFacts.cs (6)
425
case SyntaxKind.
PlusPlusToken
:
454
case SyntaxKind.
PlusPlusToken
:
469
case SyntaxKind.
PlusPlusToken
:
524
case SyntaxKind.
PlusPlusToken
:
1054
return SyntaxKind.
PlusPlusToken
;
1449
case SyntaxKind.
PlusPlusToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (2)
443
if ((previousToken.Kind() == SyntaxKind.
PlusPlusToken
|| previousToken.Kind() == SyntaxKind.MinusMinusToken) &&
450
if ((currentToken.Kind() == SyntaxKind.
PlusPlusToken
|| currentToken.Kind() == SyntaxKind.MinusMinusToken) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
396
case SyntaxKind.
PlusPlusToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
42
{ SyntaxKind.
PlusPlusToken
, 4 },
Microsoft.CodeAnalysis.CSharp.Features (2)
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (2)
390
SyntaxKind.MinusMinusToken => SyntaxKind.
PlusPlusToken
,
391
SyntaxKind.
PlusPlusToken
=> SyntaxKind.MinusMinusToken,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (53)
Generated\Syntax.Test.xml.Generated.cs (4)
86
=> InternalSyntaxFactory.PostfixUnaryExpression(SyntaxKind.PostIncrementExpression, GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.
PlusPlusToken
));
1025
Assert.Equal(SyntaxKind.
PlusPlusToken
, node.OperatorToken.Kind);
10302
=> SyntaxFactory.PostfixUnaryExpression(SyntaxKind.PostIncrementExpression, GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.
PlusPlusToken
));
11241
Assert.Equal(SyntaxKind.
PlusPlusToken
, node.OperatorToken.Kind());
LexicalAndXml\CrefLexerTests.cs (9)
226
AssertTokens("++", Token(SyntaxKind.
PlusPlusToken
));
252
AssertTokens("++", Token(SyntaxKind.
PlusPlusToken
, "++", "++"));
253
AssertTokens("++", Token(SyntaxKind.
PlusPlusToken
, "++", "++"));
254
AssertTokens("++", Token(SyntaxKind.
PlusPlusToken
, "++", "++"));
283
AssertTokens("+++", Token(SyntaxKind.
PlusPlusToken
), Token(SyntaxKind.PlusToken));
284
AssertTokens("++++", Token(SyntaxKind.
PlusPlusToken
), Token(SyntaxKind.
PlusPlusToken
));
285
AssertTokens("+++++", Token(SyntaxKind.
PlusPlusToken
), Token(SyntaxKind.
PlusPlusToken
), Token(SyntaxKind.PlusToken));
LexicalAndXml\LexicalTests.cs (1)
934
TestPunctuation(SyntaxKind.
PlusPlusToken
);
LexicalAndXml\NameAttributeValueLexerTests.cs (9)
233
AssertTokens("++", Token(SyntaxKind.
PlusPlusToken
));
259
AssertTokens("++", Token(SyntaxKind.
PlusPlusToken
, "++", "++"));
260
AssertTokens("++", Token(SyntaxKind.
PlusPlusToken
, "++", "++"));
261
AssertTokens("++", Token(SyntaxKind.
PlusPlusToken
, "++", "++"));
290
AssertTokens("+++", Token(SyntaxKind.
PlusPlusToken
), Token(SyntaxKind.PlusToken));
291
AssertTokens("++++", Token(SyntaxKind.
PlusPlusToken
), Token(SyntaxKind.
PlusPlusToken
));
292
AssertTokens("+++++", Token(SyntaxKind.
PlusPlusToken
), Token(SyntaxKind.
PlusPlusToken
), Token(SyntaxKind.PlusToken));
Parsing\AwaitParsingTests.cs (3)
774
N(SyntaxKind.
PlusPlusToken
);
812
N(SyntaxKind.
PlusPlusToken
);
870
N(SyntaxKind.
PlusPlusToken
);
Parsing\CollectionExpressionParsingTests.cs (7)
5840
N(SyntaxKind.
PlusPlusToken
);
6134
N(SyntaxKind.
PlusPlusToken
);
6170
N(SyntaxKind.
PlusPlusToken
);
12174
N(SyntaxKind.
PlusPlusToken
);
12208
N(SyntaxKind.
PlusPlusToken
);
15192
N(SyntaxKind.
PlusPlusToken
);
15289
N(SyntaxKind.
PlusPlusToken
);
Parsing\DeclarationParsingTests.cs (1)
5520
TestClassUnaryOperatorMethod(SyntaxKind.
PlusPlusToken
);
Parsing\ExpressionParsingTests.cs (3)
588
TestPrefixUnary(SyntaxKind.
PlusPlusToken
);
615
TestPostfixUnary(SyntaxKind.
PlusPlusToken
);
6384
N(SyntaxKind.
PlusPlusToken
);
Parsing\FieldKeywordParsingTests.cs (2)
981
N(SyntaxKind.
PlusPlusToken
);
1028
N(SyntaxKind.
PlusPlusToken
);
Parsing\ForStatementParsingTest.cs (6)
74
N(SyntaxKind.
PlusPlusToken
);
136
N(SyntaxKind.
PlusPlusToken
);
201
N(SyntaxKind.
PlusPlusToken
);
367
N(SyntaxKind.
PlusPlusToken
);
419
N(SyntaxKind.
PlusPlusToken
);
441
N(SyntaxKind.
PlusPlusToken
);
Parsing\LambdaAttributeParsingTests.cs (1)
1184
N(SyntaxKind.
PlusPlusToken
);
Parsing\MemberDeclarationParsingTests.cs (3)
9663
[InlineData("++", SyntaxKind.
PlusPlusToken
)]
9711
[InlineData("++", SyntaxKind.
PlusPlusToken
)]
9999
[InlineData("++", SyntaxKind.
PlusPlusToken
)]
Parsing\PatternParsingTests.cs (1)
7763
N(SyntaxKind.
PlusPlusToken
);
Parsing\StatementAttributeParsingTests.cs (2)
5494
N(SyntaxKind.
PlusPlusToken
);
5575
N(SyntaxKind.
PlusPlusToken
);
Parsing\StatementParsingTests.cs (1)
176
TestPostfixUnaryOperator(SyntaxKind.
PlusPlusToken
);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (1)
413
case SyntaxKind.
PlusPlusToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (2)
443
if ((previousToken.Kind() == SyntaxKind.
PlusPlusToken
|| previousToken.Kind() == SyntaxKind.MinusMinusToken) &&
450
if ((currentToken.Kind() == SyntaxKind.
PlusPlusToken
|| currentToken.Kind() == SyntaxKind.MinusMinusToken) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
396
case SyntaxKind.
PlusPlusToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
42
{ SyntaxKind.
PlusPlusToken
, 4 },