114 references to MinusToken
Microsoft.CodeAnalysis.CSharp (15)
Binder\Semantics\Operators\OperatorFacts.cs (2)
74
case SyntaxKind.
MinusToken
: return isChecked ? WellKnownMemberNames.CheckedSubtractionOperatorName : WellKnownMemberNames.SubtractionOperatorName;
106
case SyntaxKind.
MinusToken
: return isChecked ? WellKnownMemberNames.CheckedUnaryNegationOperatorName : WellKnownMemberNames.UnaryNegationOperatorName;
Parser\DirectiveParser.cs (1)
412
var minus = EatToken(SyntaxKind.
MinusToken
, reportError: reportError);
Parser\LanguageParser.cs (2)
12428
SyntaxKind.
MinusToken
or
12674
case SyntaxKind.
MinusToken
:
Parser\Lexer.cs (3)
585
TextWindow.TryAdvance('>') ? SyntaxKind.MinusGreaterThanToken : SyntaxKind.
MinusToken
;
2596
info.Kind = SyntaxKind.
MinusToken
;
3792
else info.Kind = SyntaxKind.
MinusToken
;
Syntax\SyntaxKindFacts.cs (7)
419
case SyntaxKind.
MinusToken
:
494
case SyntaxKind.
MinusToken
:
521
case SyntaxKind.
MinusToken
:
653
case SyntaxKind.
MinusToken
:
1075
return SyntaxKind.
MinusToken
;
1081
return SyntaxKind.
MinusToken
;
1385
case SyntaxKind.
MinusToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
512
if (token.Kind() is not SyntaxKind.PlusToken and not SyntaxKind.
MinusToken
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
372
case SyntaxKind.
MinusToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
39
{ SyntaxKind.
MinusToken
, 1 },
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1034
case SyntaxKind.
MinusToken
:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (90)
Generated\Syntax.Test.xml.Generated.cs (4)
725
=> InternalSyntaxFactory.LineSpanDirectiveTrivia(InternalSyntaxFactory.Token(SyntaxKind.HashToken), InternalSyntaxFactory.Token(SyntaxKind.LineKeyword), GenerateLineDirectivePosition(), InternalSyntaxFactory.Token(SyntaxKind.
MinusToken
), GenerateLineDirectivePosition(), null, InternalSyntaxFactory.Literal(null, "string", "string", null), InternalSyntaxFactory.Token(SyntaxKind.EndOfDirectiveToken), new bool());
3779
Assert.Equal(SyntaxKind.
MinusToken
, node.MinusToken.Kind);
10941
=> SyntaxFactory.LineSpanDirectiveTrivia(SyntaxFactory.Token(SyntaxKind.HashToken), SyntaxFactory.Token(SyntaxKind.LineKeyword), GenerateLineDirectivePosition(), SyntaxFactory.Token(SyntaxKind.
MinusToken
), GenerateLineDirectivePosition(), default(SyntaxToken), SyntaxFactory.Literal("string", "string"), SyntaxFactory.Token(SyntaxKind.EndOfDirectiveToken), new bool());
13995
Assert.Equal(SyntaxKind.
MinusToken
, node.MinusToken.Kind());
LexicalAndXml\CrefLexerTests.cs (4)
227
AssertTokens("-", Token(SyntaxKind.
MinusToken
));
255
AssertTokens("-", Token(SyntaxKind.
MinusToken
, "-", "-"));
287
AssertTokens("---", Token(SyntaxKind.MinusMinusToken), Token(SyntaxKind.
MinusToken
));
289
AssertTokens("-----", Token(SyntaxKind.MinusMinusToken), Token(SyntaxKind.MinusMinusToken), Token(SyntaxKind.
MinusToken
));
LexicalAndXml\LexicalTests.cs (1)
908
TestPunctuation(SyntaxKind.
MinusToken
);
LexicalAndXml\NameAttributeValueLexerTests.cs (4)
234
AssertTokens("-", Token(SyntaxKind.
MinusToken
));
262
AssertTokens("-", Token(SyntaxKind.
MinusToken
, "-", "-"));
294
AssertTokens("---", Token(SyntaxKind.MinusMinusToken), Token(SyntaxKind.
MinusToken
));
296
AssertTokens("-----", Token(SyntaxKind.MinusMinusToken), Token(SyntaxKind.MinusMinusToken), Token(SyntaxKind.
MinusToken
));
Parsing\CollectionExpressionParsingTests.cs (1)
6021
N(SyntaxKind.
MinusToken
);
Parsing\DeclarationParsingTests.cs (2)
5330
TestClassBinaryOperatorMethod(SyntaxKind.
MinusToken
);
5517
TestClassUnaryOperatorMethod(SyntaxKind.
MinusToken
);
Parsing\ExpressionParsingTests.cs (3)
585
TestPrefixUnary(SyntaxKind.
MinusToken
);
643
TestBinary(SyntaxKind.
MinusToken
);
5448
N(SyntaxKind.
MinusToken
);
Parsing\ImplicitObjectCreationParsingTests.cs (1)
290
[InlineData(SyntaxKind.SubtractExpression, SyntaxKind.
MinusToken
)]
Parsing\LambdaParameterParsingTests.cs (3)
3454
N(SyntaxKind.
MinusToken
);
3536
N(SyntaxKind.
MinusToken
);
3688
N(SyntaxKind.
MinusToken
);
Parsing\LineSpanDirectiveParsingTests.cs (57)
63
N(SyntaxKind.
MinusToken
);
104
N(SyntaxKind.
MinusToken
);
145
N(SyntaxKind.
MinusToken
);
181
N(SyntaxKind.
MinusToken
);
215
N(SyntaxKind.
MinusToken
);
256
N(SyntaxKind.
MinusToken
);
290
N(SyntaxKind.
MinusToken
);
334
N(SyntaxKind.
MinusToken
);
369
N(SyntaxKind.
MinusToken
);
407
M(SyntaxKind.
MinusToken
);
444
M(SyntaxKind.
MinusToken
);
481
M(SyntaxKind.
MinusToken
);
518
M(SyntaxKind.
MinusToken
);
555
M(SyntaxKind.
MinusToken
);
592
N(SyntaxKind.
MinusToken
);
629
N(SyntaxKind.
MinusToken
);
666
N(SyntaxKind.
MinusToken
);
703
N(SyntaxKind.
MinusToken
);
740
N(SyntaxKind.
MinusToken
);
777
N(SyntaxKind.
MinusToken
);
814
N(SyntaxKind.
MinusToken
);
878
N(SyntaxKind.
MinusToken
);
915
N(SyntaxKind.
MinusToken
);
952
N(SyntaxKind.
MinusToken
);
989
N(SyntaxKind.
MinusToken
);
1026
M(SyntaxKind.
MinusToken
);
1063
N(SyntaxKind.
MinusToken
);
1100
N(SyntaxKind.
MinusToken
);
1137
N(SyntaxKind.
MinusToken
);
1174
N(SyntaxKind.
MinusToken
);
1211
N(SyntaxKind.
MinusToken
);
1248
M(SyntaxKind.
MinusToken
);
1285
M(SyntaxKind.
MinusToken
);
1322
N(SyntaxKind.
MinusToken
);
1359
N(SyntaxKind.
MinusToken
);
1396
M(SyntaxKind.
MinusToken
);
1433
M(SyntaxKind.
MinusToken
);
1470
N(SyntaxKind.
MinusToken
);
1507
M(SyntaxKind.
MinusToken
);
1544
M(SyntaxKind.
MinusToken
);
1581
N(SyntaxKind.
MinusToken
);
1618
N(SyntaxKind.
MinusToken
);
1667
N(SyntaxKind.
MinusToken
);
1702
N(SyntaxKind.
MinusToken
);
1752
N(SyntaxKind.
MinusToken
);
1787
N(SyntaxKind.
MinusToken
);
1824
N(SyntaxKind.
MinusToken
);
1861
N(SyntaxKind.
MinusToken
);
1895
N(SyntaxKind.
MinusToken
);
2215
N(SyntaxKind.
MinusToken
);
2253
N(SyntaxKind.
MinusToken
);
2294
N(SyntaxKind.
MinusToken
);
2332
N(SyntaxKind.
MinusToken
);
2370
N(SyntaxKind.
MinusToken
);
2408
N(SyntaxKind.
MinusToken
);
2447
N(SyntaxKind.
MinusToken
);
2486
N(SyntaxKind.
MinusToken
);
Parsing\MemberDeclarationParsingTests.cs (6)
9660
[InlineData("-", SyntaxKind.
MinusToken
)]
9708
[InlineData("-", SyntaxKind.
MinusToken
)]
9764
[InlineData("-", SyntaxKind.
MinusToken
)]
9830
[InlineData("-", SyntaxKind.
MinusToken
)]
9996
[InlineData("-", SyntaxKind.
MinusToken
)]
10046
[InlineData("-", SyntaxKind.
MinusToken
)]
Parsing\PatternParsingTests.cs (3)
6623
N(SyntaxKind.
MinusToken
);
7299
N(SyntaxKind.
MinusToken
);
7704
N(SyntaxKind.
MinusToken
);
Syntax\SyntaxNormalizerTests.cs (1)
3662
SyntaxFactory.Token(SyntaxKind.
MinusToken
),
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\ClassificationHelpers.cs (1)
400
case SyntaxKind.
MinusToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
512
if (token.Kind() is not SyntaxKind.PlusToken and not SyntaxKind.
MinusToken
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
372
case SyntaxKind.
MinusToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
39
{ SyntaxKind.
MinusToken
, 1 },
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1034
case SyntaxKind.
MinusToken
: