191 references to PlusToken
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Operators.cs (1)
869
case LookupResultKind.OverloadResolutionFailure when operatorToken.Kind() is SyntaxKind.
PlusToken
&& isReadOnlySpanOfByte(left.Type) && isReadOnlySpanOfByte(right.Type):
Binder\Semantics\Operators\OperatorFacts.cs (2)
73
case SyntaxKind.
PlusToken
: return isChecked ? WellKnownMemberNames.CheckedAdditionOperatorName : WellKnownMemberNames.AdditionOperatorName;
105
case SyntaxKind.
PlusToken
: return WellKnownMemberNames.UnaryPlusOperatorName;
Parser\DocumentationCommentParser.cs (3)
995
operatorToken = SyntaxFactory.MissingToken(SyntaxKind.
PlusToken
);
1046
operatorToken = SyntaxFactory.MissingToken(SyntaxKind.
PlusToken
);
1089
operatorToken = SyntaxFactory.MissingToken(SyntaxKind.
PlusToken
);
Parser\LanguageParser.cs (6)
3826
opToken = this.ConvertToMissingWithTrailingTrivia(this.EatToken(), SyntaxKind.
PlusToken
);
3833
SyntaxDiagnosticInfo diagInfo = MakeError(opTokenErrorOffset, opTokenErrorWidth, ErrorCode.ERR_BadOperatorSyntax, SyntaxFacts.GetText(SyntaxKind.
PlusToken
));
3839
type = this.AddError(type, ErrorCode.ERR_BadOperatorSyntax, SyntaxFacts.GetText(SyntaxKind.
PlusToken
));
3925
opToken = ConvertToMissingWithTrailingTrivia(opToken, SyntaxKind.
PlusToken
);
12427
SyntaxKind.
PlusToken
or
12673
case SyntaxKind.
PlusToken
:
Parser\Lexer.cs (2)
577
TextWindow.TryAdvance('+') ? SyntaxKind.PlusPlusToken : SyntaxKind.
PlusToken
;
3788
else info.Kind = SyntaxKind.
PlusToken
;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
298
AddPunctuation(SyntaxKind.
PlusToken
);
Syntax\SyntaxKindFacts.cs (7)
417
case SyntaxKind.
PlusToken
:
493
case SyntaxKind.
PlusToken
:
520
case SyntaxKind.
PlusToken
:
651
case SyntaxKind.
PlusToken
:
1025
return SyntaxKind.
PlusToken
;
1083
case WellKnownMemberNames.UnaryPlusOperatorName: return SyntaxKind.
PlusToken
;
1387
case SyntaxKind.
PlusToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
66
public static readonly SyntaxToken PlusToken = Token(SyntaxKind.
PlusToken
);
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)
368
case SyntaxKind.
PlusToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
38
{ SyntaxKind.
PlusToken
, 0 },
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1011
if (operatorToken.Kind() == SyntaxKind.
PlusToken
)
1033
case SyntaxKind.
PlusToken
:
Microsoft.CodeAnalysis.CSharp.Features (1)
SplitStringLiteral\StringSplitter.cs (1)
28
SyntaxKind.
PlusToken
,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (155)
Generated\Syntax.Test.xml.Generated.cs (16)
80
=> InternalSyntaxFactory.PrefixUnaryExpression(SyntaxKind.UnaryPlusExpression, InternalSyntaxFactory.Token(SyntaxKind.
PlusToken
), GenerateIdentifierName());
107
=> InternalSyntaxFactory.BinaryExpression(SyntaxKind.AddExpression, GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.
PlusToken
), GenerateIdentifierName());
566
=> InternalSyntaxFactory.OperatorDeclaration(new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.AttributeListSyntax>(), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), GenerateIdentifierName(), null, InternalSyntaxFactory.Token(SyntaxKind.OperatorKeyword), null, InternalSyntaxFactory.Token(SyntaxKind.
PlusToken
), GenerateParameterList(), null, null, null);
632
=> InternalSyntaxFactory.OperatorMemberCref(InternalSyntaxFactory.Token(SyntaxKind.OperatorKeyword), null, InternalSyntaxFactory.Token(SyntaxKind.
PlusToken
), null);
1002
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind);
1103
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind);
3073
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind);
3373
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind);
10296
=> SyntaxFactory.PrefixUnaryExpression(SyntaxKind.UnaryPlusExpression, SyntaxFactory.Token(SyntaxKind.
PlusToken
), GenerateIdentifierName());
10323
=> SyntaxFactory.BinaryExpression(SyntaxKind.AddExpression, GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.
PlusToken
), GenerateIdentifierName());
10782
=> SyntaxFactory.OperatorDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Token(SyntaxKind.OperatorKeyword), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.
PlusToken
), GenerateParameterList(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken));
10848
=> SyntaxFactory.OperatorMemberCref(SyntaxFactory.Token(SyntaxKind.OperatorKeyword), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.
PlusToken
), default(CrefParameterListSyntax));
11218
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind());
11319
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind());
13289
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind());
13589
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind());
LexicalAndXml\CrefLexerTests.cs (5)
225
AssertTokens("+", Token(SyntaxKind.
PlusToken
));
251
AssertTokens("+", Token(SyntaxKind.
PlusToken
, "+", "+"));
283
AssertTokens("+++", Token(SyntaxKind.PlusPlusToken), Token(SyntaxKind.
PlusToken
));
285
AssertTokens("+++++", Token(SyntaxKind.PlusPlusToken), Token(SyntaxKind.PlusPlusToken), Token(SyntaxKind.
PlusToken
));
379
Token(SyntaxKind.
PlusToken
));
LexicalAndXml\LexicalTests.cs (1)
909
TestPunctuation(SyntaxKind.
PlusToken
);
LexicalAndXml\NameAttributeValueLexerTests.cs (4)
232
AssertTokens("+", Token(SyntaxKind.
PlusToken
));
258
AssertTokens("+", Token(SyntaxKind.
PlusToken
, "+", "+"));
290
AssertTokens("+++", Token(SyntaxKind.PlusPlusToken), Token(SyntaxKind.
PlusToken
));
292
AssertTokens("+++++", Token(SyntaxKind.PlusPlusToken), Token(SyntaxKind.PlusPlusToken), Token(SyntaxKind.
PlusToken
));
Parsing\AsyncParsingTests.cs (3)
858
N(SyntaxKind.
PlusToken
);
1883
M(SyntaxKind.
PlusToken
);
1947
M(SyntaxKind.
PlusToken
);
Parsing\CollectionExpressionParsingTests.cs (2)
1511
N(SyntaxKind.
PlusToken
);
4127
N(SyntaxKind.
PlusToken
);
Parsing\CrefParsingTests.cs (12)
404
M(SyntaxKind.
PlusToken
);
418
N(SyntaxKind.
PlusToken
);
431
N(SyntaxKind.
PlusToken
);
449
N(SyntaxKind.
PlusToken
);
462
N(SyntaxKind.
PlusToken
);
487
N(SyntaxKind.
PlusToken
);
517
N(SyntaxKind.
PlusToken
);
553
N(SyntaxKind.
PlusToken
);
574
N(SyntaxKind.
PlusToken
);
601
N(SyntaxKind.
PlusToken
);
622
N(SyntaxKind.
PlusToken
);
655
N(SyntaxKind.
PlusToken
);
Parsing\DeclarationParsingTests.cs (3)
5329
TestClassBinaryOperatorMethod(SyntaxKind.
PlusToken
);
5516
TestClassUnaryOperatorMethod(SyntaxKind.
PlusToken
);
8220
N(SyntaxKind.
PlusToken
);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (2)
1820
N(SyntaxKind.
PlusToken
);
1924
N(SyntaxKind.
PlusToken
);
Parsing\ExpressionParsingTests.cs (11)
76
N(SyntaxKind.
PlusToken
);
109
N(SyntaxKind.
PlusToken
);
148
N(SyntaxKind.
PlusToken
);
183
N(SyntaxKind.
PlusToken
);
584
TestPrefixUnary(SyntaxKind.
PlusToken
);
642
TestBinary(SyntaxKind.
PlusToken
);
5434
N(SyntaxKind.
PlusToken
);
5490
N(SyntaxKind.
PlusToken
);
5517
N(SyntaxKind.
PlusToken
);
5723
N(SyntaxKind.
PlusToken
);
5826
N(SyntaxKind.
PlusToken
);
Parsing\ImplicitObjectCreationParsingTests.cs (1)
289
[InlineData(SyntaxKind.AddExpression, SyntaxKind.
PlusToken
)]
Parsing\LambdaAttributeParsingTests.cs (1)
1338
N(SyntaxKind.
PlusToken
);
Parsing\LambdaParameterParsingTests.cs (4)
2663
N(SyntaxKind.
PlusToken
);
2761
N(SyntaxKind.
PlusToken
);
2876
N(SyntaxKind.
PlusToken
);
3631
N(SyntaxKind.
PlusToken
);
Parsing\LocalFunctionParsingTests.cs (2)
3134
N(SyntaxKind.
PlusToken
);
3194
N(SyntaxKind.
PlusToken
);
Parsing\MemberDeclarationParsingTests.cs (67)
380
N(SyntaxKind.
PlusToken
);
412
N(SyntaxKind.
PlusToken
);
1569
N(SyntaxKind.
PlusToken
);
2377
N(SyntaxKind.
PlusToken
);
2409
N(SyntaxKind.
PlusToken
);
2519
M(SyntaxKind.
PlusToken
);
2643
M(SyntaxKind.
PlusToken
);
2749
N(SyntaxKind.
PlusToken
);
2847
N(SyntaxKind.
PlusToken
);
2911
N(SyntaxKind.
PlusToken
);
2943
N(SyntaxKind.
PlusToken
);
2983
N(SyntaxKind.
PlusToken
);
3034
N(SyntaxKind.
PlusToken
);
3094
N(SyntaxKind.
PlusToken
);
3165
N(SyntaxKind.
PlusToken
);
3260
N(SyntaxKind.
PlusToken
);
3292
N(SyntaxKind.
PlusToken
);
3405
M(SyntaxKind.
PlusToken
);
3533
M(SyntaxKind.
PlusToken
);
3643
N(SyntaxKind.
PlusToken
);
3745
N(SyntaxKind.
PlusToken
);
3813
N(SyntaxKind.
PlusToken
);
3845
N(SyntaxKind.
PlusToken
);
3889
N(SyntaxKind.
PlusToken
);
3944
N(SyntaxKind.
PlusToken
);
4008
N(SyntaxKind.
PlusToken
);
4083
N(SyntaxKind.
PlusToken
);
4147
N(SyntaxKind.
PlusToken
);
4210
N(SyntaxKind.
PlusToken
);
4296
N(SyntaxKind.
PlusToken
);
4328
N(SyntaxKind.
PlusToken
);
4430
M(SyntaxKind.
PlusToken
);
4547
M(SyntaxKind.
PlusToken
);
4646
N(SyntaxKind.
PlusToken
);
4737
N(SyntaxKind.
PlusToken
);
4800
N(SyntaxKind.
PlusToken
);
4832
N(SyntaxKind.
PlusToken
);
4871
N(SyntaxKind.
PlusToken
);
4921
N(SyntaxKind.
PlusToken
);
4980
N(SyntaxKind.
PlusToken
);
5050
N(SyntaxKind.
PlusToken
);
5138
N(SyntaxKind.
PlusToken
);
5170
N(SyntaxKind.
PlusToken
);
5276
M(SyntaxKind.
PlusToken
);
5397
M(SyntaxKind.
PlusToken
);
5500
N(SyntaxKind.
PlusToken
);
5595
N(SyntaxKind.
PlusToken
);
5662
N(SyntaxKind.
PlusToken
);
5694
N(SyntaxKind.
PlusToken
);
5737
N(SyntaxKind.
PlusToken
);
5791
N(SyntaxKind.
PlusToken
);
5854
N(SyntaxKind.
PlusToken
);
5928
N(SyntaxKind.
PlusToken
);
5991
N(SyntaxKind.
PlusToken
);
6053
N(SyntaxKind.
PlusToken
);
6122
N(SyntaxKind.
PlusToken
);
6188
N(SyntaxKind.
PlusToken
);
9659
[InlineData("+", SyntaxKind.
PlusToken
)]
9707
[InlineData("+", SyntaxKind.
PlusToken
)]
9763
[InlineData("+", SyntaxKind.
PlusToken
)]
9829
[InlineData("+", SyntaxKind.
PlusToken
)]
9995
[InlineData("+", SyntaxKind.
PlusToken
)]
10045
[InlineData("+", SyntaxKind.
PlusToken
)]
11515
N(SyntaxKind.
PlusToken
);
11839
N(SyntaxKind.
PlusToken
);
19026
N(SyntaxKind.
PlusToken
);
19108
N(SyntaxKind.
PlusToken
);
Parsing\PatternParsingTests.cs (14)
6649
N(SyntaxKind.
PlusToken
);
7126
N(SyntaxKind.
PlusToken
);
7150
N(SyntaxKind.
PlusToken
);
7174
N(SyntaxKind.
PlusToken
);
7229
N(SyntaxKind.
PlusToken
);
7291
N(SyntaxKind.
PlusToken
);
7681
N(SyntaxKind.
PlusToken
);
7781
N(SyntaxKind.
PlusToken
);
8204
N(SyntaxKind.
PlusToken
);
8239
N(SyntaxKind.
PlusToken
);
10262
N(SyntaxKind.
PlusToken
);
10297
N(SyntaxKind.
PlusToken
);
10325
N(SyntaxKind.
PlusToken
);
10784
N(SyntaxKind.
PlusToken
);
Parsing\RecordParsing.cs (2)
1434
N(SyntaxKind.
PlusToken
);
1630
N(SyntaxKind.
PlusToken
);
Parsing\StatementAttributeParsingTests.cs (1)
4395
N(SyntaxKind.
PlusToken
);
Parsing\StatementParsingTests.cs (2)
3913
N(SyntaxKind.
PlusToken
);
4043
N(SyntaxKind.
PlusToken
);
Parsing\TopLevelStatementsParsingTests.cs (2)
269
M(SyntaxKind.
PlusToken
);
1539
N(SyntaxKind.
PlusToken
);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Classification\ClassificationHelpers.cs (1)
401
case SyntaxKind.
PlusToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
66
public static readonly SyntaxToken PlusToken = Token(SyntaxKind.
PlusToken
);
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)
368
case SyntaxKind.
PlusToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (1)
38
{ SyntaxKind.
PlusToken
, 0 },
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1011
if (operatorToken.Kind() == SyntaxKind.
PlusToken
)
1033
case SyntaxKind.
PlusToken
: