116 references to AddExpression
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\RouteStringSyntaxDetector.cs (1)
160token.Parent.Parent.RawKind == (int)SyntaxKind.AddExpression)
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Expressions.cs (1)
631case SyntaxKind.AddExpression:
Binder\Binder_Operators.cs (2)
428case SyntaxKind.AddExpression: 2233case SyntaxKind.AddExpression: return BinaryOperatorKind.Addition;
Binder\EarlyWellKnownAttributeBinder.cs (1)
121case SyntaxKind.AddExpression:
Parser\LanguageParser.cs (1)
10739case SyntaxKind.AddExpression:
Syntax\SyntaxKindFacts.cs (1)
652return SyntaxKind.AddExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle (9)
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
28SyntaxKind.AddExpression,
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (1)
127if (binaryExpression.Kind() != SyntaxKind.AddExpression)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundAssignmentDiagnosticAnalyzer.cs (2)
38SyntaxKind.AddExpression => 1, 49SyntaxKind.AddExpression => -1,
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
14(SyntaxKind.AddExpression, SyntaxKind.AddAssignmentExpression),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
750case SyntaxKind.AddExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
451case SyntaxKind.AddExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxKindExtensions.cs (1)
40return SyntaxKind.AddExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
88public int AddExpression => (int)SyntaxKind.AddExpression;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
3857SyntaxKind.AddExpression);
Microsoft.CodeAnalysis.CSharp.Features (11)
Debugging\CSharpProximityExpressionsService_ExpressionTermCollector.cs (1)
354case SyntaxKind.AddExpression:
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (1)
332SyntaxKind.AddAssignmentExpression => SyntaxKind.AddExpression,
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (2)
323if ((outerBinary.Kind() == SyntaxKind.SubtractExpression && innerLeft.Kind() == SyntaxKind.AddExpression) || 324(outerBinary.Kind() == SyntaxKind.AddExpression && innerLeft.Kind() == SyntaxKind.SubtractExpression))
SplitStringLiteral\InterpolatedStringSplitter.cs (1)
75SyntaxKind.AddExpression,
SplitStringLiteral\SimpleStringSplitter.cs (1)
68SyntaxKind.AddExpression,
src\Analyzers\CSharp\Analyzers\AddRequiredParentheses\CSharpAddRequiredExpressionParenthesesDiagnosticAnalyzer.cs (1)
28SyntaxKind.AddExpression,
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (1)
127if (binaryExpression.Kind() != SyntaxKind.AddExpression)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundAssignmentDiagnosticAnalyzer.cs (2)
38SyntaxKind.AddExpression => 1, 49SyntaxKind.AddExpression => -1,
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\Utilities.cs (1)
14(SyntaxKind.AddExpression, SyntaxKind.AddAssignmentExpression),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\LambdaTests.cs (1)
842Where(e => e.Kind() == SyntaxKind.AddExpression).Single();
Semantics\Utf8StringsLiteralsTests.cs (1)
4081foreach (var node in tree.GetCompilationUnitRoot().DescendantNodes().OfType<BinaryExpressionSyntax>().Where(b => b.IsKind(SyntaxKind.AddExpression)))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (75)
Generated\Syntax.Test.xml.Generated.cs (2)
107=> InternalSyntaxFactory.BinaryExpression(SyntaxKind.AddExpression, GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.PlusToken), GenerateIdentifierName()); 10323=> SyntaxFactory.BinaryExpression(SyntaxKind.AddExpression, GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.PlusToken), GenerateIdentifierName());
IncrementalParsing\BinaryExpression.cs (21)
42MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.SubtractExpression); 48MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.DivideExpression); 54MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.ModuloExpression); 60MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.LeftShiftExpression); 66MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.RightShiftExpression); 72MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.UnsignedRightShiftExpression); 78MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.LogicalOrExpression); 84MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.LogicalAndExpression); 90MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.BitwiseAndExpression); 96MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.BitwiseOrExpression); 102MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.ExclusiveOrExpression); 108MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.EqualsExpression); 114MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.NotEqualsExpression); 120MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.LessThanExpression); 126MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.LessThanOrEqualExpression); 132MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.GreaterThanExpression); 138MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.GreaterThanOrEqualExpression); 144MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.AsExpression); 150MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.IsExpression); 156MakeBinOpChange(SyntaxKind.AddExpression, SyntaxKind.CoalesceExpression); 227case SyntaxKind.AddExpression:
Parsing\CollectionExpressionParsingTests.cs (2)
1489N(SyntaxKind.AddExpression); 4121N(SyntaxKind.AddExpression);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (2)
1814N(SyntaxKind.AddExpression); 1918N(SyntaxKind.AddExpression);
Parsing\ExpressionParsingTests.cs (9)
70N(SyntaxKind.AddExpression); 103N(SyntaxKind.AddExpression); 142N(SyntaxKind.AddExpression); 177N(SyntaxKind.AddExpression); 5428N(SyntaxKind.AddExpression); 5484N(SyntaxKind.AddExpression); 5511N(SyntaxKind.AddExpression); 5717N(SyntaxKind.AddExpression); 5820N(SyntaxKind.AddExpression);
Parsing\ImplicitObjectCreationParsingTests.cs (1)
289[InlineData(SyntaxKind.AddExpression, SyntaxKind.PlusToken)]
Parsing\LambdaAttributeParsingTests.cs (1)
1310N(SyntaxKind.AddExpression);
Parsing\LambdaParameterParsingTests.cs (4)
2657N(SyntaxKind.AddExpression); 2732N(SyntaxKind.AddExpression); 2870N(SyntaxKind.AddExpression); 3625N(SyntaxKind.AddExpression);
Parsing\LocalFunctionParsingTests.cs (2)
3128N(SyntaxKind.AddExpression); 3188N(SyntaxKind.AddExpression);
Parsing\MemberDeclarationParsingTests.cs (9)
406N(SyntaxKind.AddExpression); 2403N(SyntaxKind.AddExpression); 2937N(SyntaxKind.AddExpression); 3286N(SyntaxKind.AddExpression); 3839N(SyntaxKind.AddExpression); 4322N(SyntaxKind.AddExpression); 4826N(SyntaxKind.AddExpression); 5164N(SyntaxKind.AddExpression); 5688N(SyntaxKind.AddExpression);
Parsing\PatternParsingTests.cs (11)
7098N(SyntaxKind.AddExpression); 7100N(SyntaxKind.AddExpression); 7102N(SyntaxKind.AddExpression); 7218N(SyntaxKind.AddExpression); 7285N(SyntaxKind.AddExpression); 7675N(SyntaxKind.AddExpression); 8183N(SyntaxKind.AddExpression); 8221N(SyntaxKind.AddExpression); 10256N(SyntaxKind.AddExpression); 10281N(SyntaxKind.AddExpression); 10314N(SyntaxKind.AddExpression);
Parsing\RecordParsing.cs (2)
1411N(SyntaxKind.AddExpression); 1607N(SyntaxKind.AddExpression);
Parsing\StatementAttributeParsingTests.cs (1)
4389N(SyntaxKind.AddExpression);
Parsing\StatementParsingTests.cs (2)
3907N(SyntaxKind.AddExpression); 4032N(SyntaxKind.AddExpression);
Syntax\SeparatedSyntaxListTests.cs (2)
287Assert.Equal(0, list.IndexOf(SyntaxKind.AddExpression)); 288Assert.True(list.Any(SyntaxKind.AddExpression));
Syntax\SyntaxListTests.cs (2)
274Assert.Equal(0, list.IndexOf(SyntaxKind.AddExpression)); 275Assert.True(list.Any(SyntaxKind.AddExpression));
Syntax\SyntaxNodeTests.cs (2)
95Assert.Equal(SyntaxKind.AddExpression, nodes[6].Kind()); 114Assert.Equal(SyntaxKind.AddExpression, nodes[7].Kind());
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3332=> CreateBinaryExpression(SyntaxKind.AddExpression, left, right);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
750case SyntaxKind.AddExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
451case SyntaxKind.AddExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxKindExtensions.cs (1)
40return SyntaxKind.AddExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
88public int AddExpression => (int)SyntaxKind.AddExpression;
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
526SyntaxFactory.BinaryExpression(SyntaxKind.AddExpression,
Microsoft.Interop.SourceGeneration (1)
Marshalling\ElementsMarshalling.cs (1)
70BinaryExpression(SyntaxKind.AddExpression,
Microsoft.ML.AutoML (1)
Utils\Entity.cs (1)
148if (exp.Kind() == SyntaxKind.AddExpression)
Microsoft.ML.InternalCodeAnalyzer (1)
ContractsCheckAnalyzer.cs (1)
141if (exp.IsKind(SyntaxKind.AddExpression))
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\MethodXml\MethodXmlBuilder.cs (2)
183case SyntaxKind.AddExpression: 336case SyntaxKind.AddExpression: