213 references to PlusToken
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder_Operators.cs (1)
1375
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)
1030
operatorToken = SyntaxFactory.MissingToken(SyntaxKind.
PlusToken
);
1116
case SyntaxKind.
PlusToken
:
Parser\LanguageParser.cs (6)
3978
opToken = this.ConvertToMissingWithTrailingTrivia(this.EatToken(), SyntaxKind.
PlusToken
);
3985
SyntaxDiagnosticInfo diagInfo = MakeError(opTokenErrorOffset, opTokenErrorWidth, ErrorCode.ERR_BadOperatorSyntax, SyntaxFacts.GetText(SyntaxKind.
PlusToken
));
3991
type = this.AddError(type, ErrorCode.ERR_BadOperatorSyntax, SyntaxFacts.GetText(SyntaxKind.
PlusToken
));
4107
opToken = ConvertToMissingWithTrailingTrivia(opToken, SyntaxKind.
PlusToken
);
12772
SyntaxKind.
PlusToken
or
13018
case SyntaxKind.
PlusToken
:
Parser\Lexer.cs (2)
561
TextWindow.TryAdvance('+') ? SyntaxKind.PlusPlusToken : SyntaxKind.
PlusToken
;
3787
else info.Kind = SyntaxKind.
PlusToken
;
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
312
AddPunctuation(Format.CompilerInternalOptions.HasFlag(SymbolDisplayCompilerInternalOptions.UsePlusForNestedTypes) ? SyntaxKind.
PlusToken
: SyntaxKind.DotToken);
Syntax.xml.Internal.Generated.cs (8)
28720
case SyntaxKind.
PlusToken
:
28969
case SyntaxKind.
PlusToken
:
32232
case SyntaxKind.
PlusToken
:
32765
case SyntaxKind.
PlusToken
:
34087
case SyntaxKind.
PlusToken
:
34336
case SyntaxKind.
PlusToken
:
37599
case SyntaxKind.
PlusToken
:
38132
case SyntaxKind.
PlusToken
:
Syntax.xml.Main.Generated.cs (6)
2571
case SyntaxKind.
PlusToken
:
2593
SyntaxKind.UnaryPlusExpression => SyntaxKind.
PlusToken
,
2777
case SyntaxKind.
PlusToken
:
2812
SyntaxKind.AddExpression => SyntaxKind.
PlusToken
,
5427
case SyntaxKind.
PlusToken
:
5913
case SyntaxKind.
PlusToken
:
Syntax\SyntaxKindFacts.cs (7)
419
case SyntaxKind.
PlusToken
:
497
case SyntaxKind.
PlusToken
:
524
case SyntaxKind.
PlusToken
:
676
case SyntaxKind.
PlusToken
:
1052
return SyntaxKind.
PlusToken
;
1114
case WellKnownMemberNames.UnaryPlusOperatorName: return SyntaxKind.
PlusToken
;
1458
case SyntaxKind.
PlusToken
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
73
public static readonly SyntaxToken PlusToken = Token(SyntaxKind.
PlusToken
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
511
if (token.Kind() is not SyntaxKind.
PlusToken
and not SyntaxKind.MinusToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
363
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)
1027
if (operatorToken.Kind() == SyntaxKind.
PlusToken
)
1049
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);
638
=> InternalSyntaxFactory.OperatorMemberCref(InternalSyntaxFactory.Token(SyntaxKind.OperatorKeyword), null, InternalSyntaxFactory.Token(SyntaxKind.
PlusToken
), null);
1011
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind);
1112
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind);
3101
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind);
3415
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind);
10430
=> SyntaxFactory.PrefixUnaryExpression(SyntaxKind.UnaryPlusExpression, SyntaxFactory.Token(SyntaxKind.
PlusToken
), GenerateIdentifierName());
10457
=> SyntaxFactory.BinaryExpression(SyntaxKind.AddExpression, GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.
PlusToken
), GenerateIdentifierName());
10919
=> 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));
10988
=> SyntaxFactory.OperatorMemberCref(SyntaxFactory.Token(SyntaxKind.OperatorKeyword), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.
PlusToken
), default(CrefParameterListSyntax));
11361
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind());
11462
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind());
13451
Assert.Equal(SyntaxKind.
PlusToken
, node.OperatorToken.Kind());
13765
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)
910
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)
419
N(SyntaxKind.
PlusToken
);
432
N(SyntaxKind.
PlusToken
);
450
N(SyntaxKind.
PlusToken
);
463
N(SyntaxKind.
PlusToken
);
488
N(SyntaxKind.
PlusToken
);
518
N(SyntaxKind.
PlusToken
);
803
[InlineData("+ =", SyntaxKind.
PlusToken
)]
992
N(SyntaxKind.
PlusToken
);
1013
N(SyntaxKind.
PlusToken
);
1040
N(SyntaxKind.
PlusToken
);
1061
N(SyntaxKind.
PlusToken
);
1094
N(SyntaxKind.
PlusToken
);
1430
[InlineData("+ =", SyntaxKind.
PlusToken
)]
Parsing\DeclarationParsingTests.cs (3)
5383
TestClassBinaryOperatorMethod(SyntaxKind.
PlusToken
);
5570
TestClassUnaryOperatorMethod(SyntaxKind.
PlusToken
);
8274
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)
3456
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)
3011
N(SyntaxKind.
PlusToken
);
3071
N(SyntaxKind.
PlusToken
);
Parsing\MemberDeclarationParsingTests.cs (68)
380
N(SyntaxKind.
PlusToken
);
412
N(SyntaxKind.
PlusToken
);
1572
N(SyntaxKind.
PlusToken
);
2380
N(SyntaxKind.
PlusToken
);
2412
N(SyntaxKind.
PlusToken
);
2522
M(SyntaxKind.
PlusToken
);
2646
M(SyntaxKind.
PlusToken
);
2752
N(SyntaxKind.
PlusToken
);
2850
N(SyntaxKind.
PlusToken
);
2914
N(SyntaxKind.
PlusToken
);
2946
N(SyntaxKind.
PlusToken
);
2986
N(SyntaxKind.
PlusToken
);
3037
N(SyntaxKind.
PlusToken
);
3097
N(SyntaxKind.
PlusToken
);
3168
N(SyntaxKind.
PlusToken
);
3263
N(SyntaxKind.
PlusToken
);
3295
N(SyntaxKind.
PlusToken
);
3408
M(SyntaxKind.
PlusToken
);
3536
M(SyntaxKind.
PlusToken
);
3646
N(SyntaxKind.
PlusToken
);
3748
N(SyntaxKind.
PlusToken
);
3816
N(SyntaxKind.
PlusToken
);
3848
N(SyntaxKind.
PlusToken
);
3892
N(SyntaxKind.
PlusToken
);
3947
N(SyntaxKind.
PlusToken
);
4011
N(SyntaxKind.
PlusToken
);
4086
N(SyntaxKind.
PlusToken
);
4150
N(SyntaxKind.
PlusToken
);
4213
N(SyntaxKind.
PlusToken
);
4299
N(SyntaxKind.
PlusToken
);
4331
N(SyntaxKind.
PlusToken
);
4433
M(SyntaxKind.
PlusToken
);
4550
M(SyntaxKind.
PlusToken
);
4649
N(SyntaxKind.
PlusToken
);
4740
N(SyntaxKind.
PlusToken
);
4803
N(SyntaxKind.
PlusToken
);
4835
N(SyntaxKind.
PlusToken
);
4874
N(SyntaxKind.
PlusToken
);
4924
N(SyntaxKind.
PlusToken
);
4983
N(SyntaxKind.
PlusToken
);
5053
N(SyntaxKind.
PlusToken
);
5141
N(SyntaxKind.
PlusToken
);
5173
N(SyntaxKind.
PlusToken
);
5279
M(SyntaxKind.
PlusToken
);
5400
M(SyntaxKind.
PlusToken
);
5503
N(SyntaxKind.
PlusToken
);
5598
N(SyntaxKind.
PlusToken
);
5665
N(SyntaxKind.
PlusToken
);
5697
N(SyntaxKind.
PlusToken
);
5740
N(SyntaxKind.
PlusToken
);
5794
N(SyntaxKind.
PlusToken
);
5857
N(SyntaxKind.
PlusToken
);
5931
N(SyntaxKind.
PlusToken
);
5994
N(SyntaxKind.
PlusToken
);
6056
N(SyntaxKind.
PlusToken
);
6125
N(SyntaxKind.
PlusToken
);
6191
N(SyntaxKind.
PlusToken
);
9662
[InlineData("+", SyntaxKind.
PlusToken
)]
9710
[InlineData("+", SyntaxKind.
PlusToken
)]
9766
[InlineData("+", SyntaxKind.
PlusToken
)]
9832
[InlineData("+", SyntaxKind.
PlusToken
)]
9998
[InlineData("+", SyntaxKind.
PlusToken
)]
10048
[InlineData("+", SyntaxKind.
PlusToken
)]
11518
N(SyntaxKind.
PlusToken
);
11842
N(SyntaxKind.
PlusToken
);
13407
[InlineData("+", SyntaxKind.
PlusToken
)]
20530
N(SyntaxKind.
PlusToken
);
20612
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)
406
case SyntaxKind.
PlusToken
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
73
public static readonly SyntaxToken PlusToken = Token(SyntaxKind.
PlusToken
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
511
if (token.Kind() is not SyntaxKind.
PlusToken
and not SyntaxKind.MinusToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
363
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)
1027
if (operatorToken.Kind() == SyntaxKind.
PlusToken
)
1049
case SyntaxKind.
PlusToken
:
Roslyn.Diagnostics.CSharp.Analyzers (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
73
public static readonly SyntaxToken PlusToken = Token(SyntaxKind.
PlusToken
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (1)
511
if (token.Kind() is not SyntaxKind.
PlusToken
and not SyntaxKind.MinusToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
363
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)
1027
if (operatorToken.Kind() == SyntaxKind.
PlusToken
)
1049
case SyntaxKind.
PlusToken
: