193 references to PlusToken
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Operators.cs (1)
1014
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;
157
case SyntaxKind.
PlusToken
: return WellKnownMemberNames.UnaryPlusOperatorName;
Parser\DocumentationCommentParser.cs (2)
995
operatorToken = SyntaxFactory.MissingToken(SyntaxKind.
PlusToken
);
1083
case SyntaxKind.
PlusToken
:
Parser\LanguageParser.cs (6)
3894
opToken = this.ConvertToMissingWithTrailingTrivia(this.EatToken(), SyntaxKind.
PlusToken
);
3901
SyntaxDiagnosticInfo diagInfo = MakeError(opTokenErrorOffset, opTokenErrorWidth, ErrorCode.ERR_BadOperatorSyntax, SyntaxFacts.GetText(SyntaxKind.
PlusToken
));
3907
type = this.AddError(type, ErrorCode.ERR_BadOperatorSyntax, SyntaxFacts.GetText(SyntaxKind.
PlusToken
));
4023
opToken = ConvertToMissingWithTrailingTrivia(opToken, SyntaxKind.
PlusToken
);
12585
SyntaxKind.
PlusToken
or
12831
case SyntaxKind.
PlusToken
:
Parser\Lexer.cs (2)
581
TextWindow.TryAdvance('+') ? SyntaxKind.PlusPlusToken : SyntaxKind.
PlusToken
;
3815
else info.Kind = SyntaxKind.
PlusToken
;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
306
AddPunctuation(SyntaxKind.
PlusToken
);
Syntax\SyntaxKindFacts.cs (7)
419
case SyntaxKind.
PlusToken
:
497
case SyntaxKind.
PlusToken
:
524
case SyntaxKind.
PlusToken
:
676
case SyntaxKind.
PlusToken
:
1051
return SyntaxKind.
PlusToken
;
1113
case WellKnownMemberNames.UnaryPlusOperatorName: return SyntaxKind.
PlusToken
;
1457
case SyntaxKind.
PlusToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
70
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)
360
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)
1026
if (operatorToken.Kind() == SyntaxKind.
PlusToken
)
1048
case SyntaxKind.
PlusToken
:
Microsoft.CodeAnalysis.CSharp.Features (1)
SplitStringLiteral\StringSplitter.cs (1)
28
SyntaxKind.
PlusToken
,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (158)
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());
569
=> 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);
635
=> InternalSyntaxFactory.OperatorMemberCref(InternalSyntaxFactory.Token(SyntaxKind.OperatorKeyword), null, InternalSyntaxFactory.Token(SyntaxKind.
PlusToken
), null);
1008
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind);
1109
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind);
3098
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind);
3398
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind);
10387
=> SyntaxFactory.PrefixUnaryExpression(SyntaxKind.UnaryPlusExpression, SyntaxFactory.Token(SyntaxKind.
PlusToken
), GenerateIdentifierName());
10414
=> SyntaxFactory.BinaryExpression(SyntaxKind.AddExpression, GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.
PlusToken
), GenerateIdentifierName());
10876
=> 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));
10942
=> SyntaxFactory.OperatorMemberCref(SyntaxFactory.Token(SyntaxKind.OperatorKeyword), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.
PlusToken
), default(CrefParameterListSyntax));
11315
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind());
11416
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind());
13405
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind());
13705
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
);
1874
M(SyntaxKind.
PlusToken
);
1938
M(SyntaxKind.
PlusToken
);
Parsing\CollectionExpressionParsingTests.cs (2)
1511
N(SyntaxKind.
PlusToken
);
4127
N(SyntaxKind.
PlusToken
);
Parsing\CrefParsingTests.cs (13)
418
N(SyntaxKind.
PlusToken
);
431
N(SyntaxKind.
PlusToken
);
449
N(SyntaxKind.
PlusToken
);
462
N(SyntaxKind.
PlusToken
);
487
N(SyntaxKind.
PlusToken
);
517
N(SyntaxKind.
PlusToken
);
802
[InlineData("+ =", SyntaxKind.
PlusToken
)]
991
N(SyntaxKind.
PlusToken
);
1012
N(SyntaxKind.
PlusToken
);
1039
N(SyntaxKind.
PlusToken
);
1060
N(SyntaxKind.
PlusToken
);
1093
N(SyntaxKind.
PlusToken
);
1429
[InlineData("+ =", 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\ExtensionsParsingTests.cs (1)
3066
N(SyntaxKind.
PlusToken
);
Parsing\ImplicitObjectCreationParsingTests.cs (1)
289
[InlineData(SyntaxKind.AddExpression, SyntaxKind.
PlusToken
)]
Parsing\LambdaAttributeParsingTests.cs (1)
1331
N(SyntaxKind.
PlusToken
);
Parsing\LambdaParameterParsingTests.cs (4)
2658
N(SyntaxKind.
PlusToken
);
2756
N(SyntaxKind.
PlusToken
);
2871
N(SyntaxKind.
PlusToken
);
3626
N(SyntaxKind.
PlusToken
);
Parsing\LocalFunctionParsingTests.cs (2)
3134
N(SyntaxKind.
PlusToken
);
3194
N(SyntaxKind.
PlusToken
);
Parsing\MemberDeclarationParsingTests.cs (68)
380
N(SyntaxKind.
PlusToken
);
412
N(SyntaxKind.
PlusToken
);
1541
N(SyntaxKind.
PlusToken
);
2349
N(SyntaxKind.
PlusToken
);
2381
N(SyntaxKind.
PlusToken
);
2491
M(SyntaxKind.
PlusToken
);
2615
M(SyntaxKind.
PlusToken
);
2721
N(SyntaxKind.
PlusToken
);
2819
N(SyntaxKind.
PlusToken
);
2883
N(SyntaxKind.
PlusToken
);
2915
N(SyntaxKind.
PlusToken
);
2955
N(SyntaxKind.
PlusToken
);
3006
N(SyntaxKind.
PlusToken
);
3066
N(SyntaxKind.
PlusToken
);
3137
N(SyntaxKind.
PlusToken
);
3232
N(SyntaxKind.
PlusToken
);
3264
N(SyntaxKind.
PlusToken
);
3377
M(SyntaxKind.
PlusToken
);
3505
M(SyntaxKind.
PlusToken
);
3615
N(SyntaxKind.
PlusToken
);
3717
N(SyntaxKind.
PlusToken
);
3785
N(SyntaxKind.
PlusToken
);
3817
N(SyntaxKind.
PlusToken
);
3861
N(SyntaxKind.
PlusToken
);
3916
N(SyntaxKind.
PlusToken
);
3980
N(SyntaxKind.
PlusToken
);
4055
N(SyntaxKind.
PlusToken
);
4119
N(SyntaxKind.
PlusToken
);
4182
N(SyntaxKind.
PlusToken
);
4268
N(SyntaxKind.
PlusToken
);
4300
N(SyntaxKind.
PlusToken
);
4402
M(SyntaxKind.
PlusToken
);
4519
M(SyntaxKind.
PlusToken
);
4618
N(SyntaxKind.
PlusToken
);
4709
N(SyntaxKind.
PlusToken
);
4772
N(SyntaxKind.
PlusToken
);
4804
N(SyntaxKind.
PlusToken
);
4843
N(SyntaxKind.
PlusToken
);
4893
N(SyntaxKind.
PlusToken
);
4952
N(SyntaxKind.
PlusToken
);
5022
N(SyntaxKind.
PlusToken
);
5110
N(SyntaxKind.
PlusToken
);
5142
N(SyntaxKind.
PlusToken
);
5248
M(SyntaxKind.
PlusToken
);
5369
M(SyntaxKind.
PlusToken
);
5472
N(SyntaxKind.
PlusToken
);
5567
N(SyntaxKind.
PlusToken
);
5634
N(SyntaxKind.
PlusToken
);
5666
N(SyntaxKind.
PlusToken
);
5709
N(SyntaxKind.
PlusToken
);
5763
N(SyntaxKind.
PlusToken
);
5826
N(SyntaxKind.
PlusToken
);
5900
N(SyntaxKind.
PlusToken
);
5963
N(SyntaxKind.
PlusToken
);
6025
N(SyntaxKind.
PlusToken
);
6094
N(SyntaxKind.
PlusToken
);
6160
N(SyntaxKind.
PlusToken
);
9631
[InlineData("+", SyntaxKind.
PlusToken
)]
9679
[InlineData("+", SyntaxKind.
PlusToken
)]
9735
[InlineData("+", SyntaxKind.
PlusToken
)]
9801
[InlineData("+", SyntaxKind.
PlusToken
)]
9967
[InlineData("+", SyntaxKind.
PlusToken
)]
10017
[InlineData("+", SyntaxKind.
PlusToken
)]
11487
N(SyntaxKind.
PlusToken
);
11811
N(SyntaxKind.
PlusToken
);
13376
[InlineData("+", SyntaxKind.
PlusToken
)]
20499
N(SyntaxKind.
PlusToken
);
20581
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)
404
case SyntaxKind.
PlusToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
70
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)
360
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)
1026
if (operatorToken.Kind() == SyntaxKind.
PlusToken
)
1048
case SyntaxKind.
PlusToken
: