55 references to MinusMinusToken
Microsoft.CodeAnalysis.CSharp (15)
Binder\Semantics\Operators\OperatorFacts.cs (1)
110
case SyntaxKind.
MinusMinusToken
: return isChecked ? WellKnownMemberNames.CheckedDecrementOperatorName : WellKnownMemberNames.DecrementOperatorName;
Parser\DocumentationCommentParser.cs (2)
727
|| this.CurrentToken.Kind == SyntaxKind.
MinusMinusToken
)
730
if (token.Kind == SyntaxKind.
MinusMinusToken
)
Parser\LanguageParser.cs (3)
7855
or SyntaxKind.
MinusMinusToken
11576
case SyntaxKind.
MinusMinusToken
:
12638
case SyntaxKind.
MinusMinusToken
:
Parser\Lexer.cs (3)
584
TextWindow.TryAdvance('-') ? SyntaxKind.
MinusMinusToken
:
3758
if (AdvanceIfMatches('-')) info.Kind = SyntaxKind.
MinusMinusToken
;
4120
info.Kind = SyntaxKind.
MinusMinusToken
;
Syntax\SyntaxKindFacts.cs (6)
427
case SyntaxKind.
MinusMinusToken
:
456
case SyntaxKind.
MinusMinusToken
:
470
case SyntaxKind.
MinusMinusToken
:
525
case SyntaxKind.
MinusMinusToken
:
1033
return SyntaxKind.
MinusMinusToken
;
1447
case SyntaxKind.
MinusMinusToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (2)
439
if ((previousToken.Kind() == SyntaxKind.PlusPlusToken || previousToken.Kind() == SyntaxKind.
MinusMinusToken
) &&
446
if ((currentToken.Kind() == SyntaxKind.PlusPlusToken || currentToken.Kind() == SyntaxKind.
MinusMinusToken
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
386
case SyntaxKind.
MinusMinusToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
43
{ SyntaxKind.
MinusMinusToken
, 5 },
Microsoft.CodeAnalysis.CSharp.Features (2)
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (2)
390
SyntaxKind.
MinusMinusToken
=> SyntaxKind.PlusPlusToken,
391
SyntaxKind.PlusPlusToken => SyntaxKind.
MinusMinusToken
,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (29)
LexicalAndXml\CrefLexerTests.cs (9)
228
AssertTokens("--", Token(SyntaxKind.
MinusMinusToken
));
256
AssertTokens("--", Token(SyntaxKind.
MinusMinusToken
, "--", "--"));
257
AssertTokens("--", Token(SyntaxKind.
MinusMinusToken
, "--", "--"));
258
AssertTokens("--", Token(SyntaxKind.
MinusMinusToken
, "--", "--"));
287
AssertTokens("---", Token(SyntaxKind.
MinusMinusToken
), Token(SyntaxKind.MinusToken));
288
AssertTokens("----", Token(SyntaxKind.
MinusMinusToken
), Token(SyntaxKind.
MinusMinusToken
));
289
AssertTokens("-----", Token(SyntaxKind.
MinusMinusToken
), Token(SyntaxKind.
MinusMinusToken
), Token(SyntaxKind.MinusToken));
LexicalAndXml\LexicalTests.cs (1)
933
TestPunctuation(SyntaxKind.
MinusMinusToken
);
LexicalAndXml\NameAttributeValueLexerTests.cs (9)
235
AssertTokens("--", Token(SyntaxKind.
MinusMinusToken
));
263
AssertTokens("--", Token(SyntaxKind.
MinusMinusToken
, "--", "--"));
264
AssertTokens("--", Token(SyntaxKind.
MinusMinusToken
, "--", "--"));
265
AssertTokens("--", Token(SyntaxKind.
MinusMinusToken
, "--", "--"));
294
AssertTokens("---", Token(SyntaxKind.
MinusMinusToken
), Token(SyntaxKind.MinusToken));
295
AssertTokens("----", Token(SyntaxKind.
MinusMinusToken
), Token(SyntaxKind.
MinusMinusToken
));
296
AssertTokens("-----", Token(SyntaxKind.
MinusMinusToken
), Token(SyntaxKind.
MinusMinusToken
), Token(SyntaxKind.MinusToken));
Parsing\CollectionExpressionParsingTests.cs (2)
12263
N(SyntaxKind.
MinusMinusToken
);
12297
N(SyntaxKind.
MinusMinusToken
);
Parsing\DeclarationParsingTests.cs (1)
5521
TestClassUnaryOperatorMethod(SyntaxKind.
MinusMinusToken
);
Parsing\ExpressionParsingTests.cs (2)
589
TestPrefixUnary(SyntaxKind.
MinusMinusToken
);
616
TestPostfixUnary(SyntaxKind.
MinusMinusToken
);
Parsing\LambdaAttributeParsingTests.cs (1)
1199
N(SyntaxKind.
MinusMinusToken
);
Parsing\MemberDeclarationParsingTests.cs (3)
9664
[InlineData("--", SyntaxKind.
MinusMinusToken
)]
9712
[InlineData("--", SyntaxKind.
MinusMinusToken
)]
10000
[InlineData("--", SyntaxKind.
MinusMinusToken
)]
Parsing\StatementParsingTests.cs (1)
177
TestPostfixUnaryOperator(SyntaxKind.
MinusMinusToken
);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (1)
415
case SyntaxKind.
MinusMinusToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (2)
439
if ((previousToken.Kind() == SyntaxKind.PlusPlusToken || previousToken.Kind() == SyntaxKind.
MinusMinusToken
) &&
446
if ((currentToken.Kind() == SyntaxKind.PlusPlusToken || currentToken.Kind() == SyntaxKind.
MinusMinusToken
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
386
case SyntaxKind.
MinusMinusToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
43
{ SyntaxKind.
MinusMinusToken
, 5 },