426 references to SimpleAssignmentExpression
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\SyntaxNodeExtensions.cs (1)
71
exprStatement.Expression.IsKind(SyntaxKind.
SimpleAssignmentExpression
);
Microsoft.AspNetCore.App.CodeFixes (1)
Http\HeaderDictionaryAddFixer.cs (1)
125
SyntaxKind.
SimpleAssignmentExpression
,
Microsoft.CodeAnalysis.CSharp (19)
Binder\Binder_Deconstruct.cs (1)
184
Debug.Assert(parent.Kind() == SyntaxKind.
SimpleAssignmentExpression
);
Binder\Binder_Expressions.cs (3)
625
case SyntaxKind.
SimpleAssignmentExpression
:
5668
case SyntaxKind.
SimpleAssignmentExpression
:
6062
Debug.Assert(memberInitializerSyntax.Kind() == SyntaxKind.
SimpleAssignmentExpression
);
Binder\Binder_Operators.cs (1)
3028
case SyntaxKind.
SimpleAssignmentExpression
:
Compilation\CSharpSemanticModel.cs (1)
620
initializer.Parent.Kind() == SyntaxKind.
SimpleAssignmentExpression
&&
Parser\LanguageParser.cs (6)
10638
case SyntaxKind.
SimpleAssignmentExpression
:
10694
case SyntaxKind.
SimpleAssignmentExpression
:
11091
if (operatorExpressionKind == SyntaxKind.
SimpleAssignmentExpression
&& CurrentToken.Kind == SyntaxKind.RefKeyword &&
12906
Kind: SyntaxKind.
SimpleAssignmentExpression
,
12960
SyntaxKind.
SimpleAssignmentExpression
,
12971
SyntaxKind.
SimpleAssignmentExpression
,
Symbols\Source\SourceLocalSymbol.cs (2)
684
case SyntaxKind.
SimpleAssignmentExpression
:
710
case SyntaxKind.
SimpleAssignmentExpression
:
Syntax\SyntaxExtensions.cs (1)
366
case SyntaxKind.
SimpleAssignmentExpression
:
Syntax\SyntaxFacts.cs (1)
402
case
SimpleAssignmentExpression
:
Syntax\SyntaxKindFacts.cs (2)
686
case SyntaxKind.
SimpleAssignmentExpression
:
743
return SyntaxKind.
SimpleAssignmentExpression
;
Syntax\SyntaxNodeExtensions.cs (1)
178
case SyntaxKind.
SimpleAssignmentExpression
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (22)
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.Analyzer.cs (1)
39
if (nodeToGenerate == SyntaxKind.
SimpleAssignmentExpression
&&
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
233
if (setExpression is AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
23
=> SyntaxKind.
SimpleAssignmentExpression
;
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (2)
76
if (assignment.Kind() != SyntaxKind.
SimpleAssignmentExpression
)
113
assignment = whenTrue is ExpressionStatementSyntax { Expression: AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
) assignmentTemp }
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
353
if (anonymousFunction?.Parent is AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
) assignment &&
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (1)
54
SyntaxKind.
SimpleAssignmentExpression
,
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
301
case SyntaxKind.
SimpleAssignmentExpression
:
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
472
if (assignmentExpression.Kind() != SyntaxKind.
SimpleAssignmentExpression
)
src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
139
if (assignmentStatement is not ExpressionStatementSyntax { Expression: AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
) assignment })
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\AssignmentExpressionSyntaxExtensions.cs (1)
16
return assignment.Kind() == SyntaxKind.
SimpleAssignmentExpression
&&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
298
case SyntaxKind.
SimpleAssignmentExpression
:
825
case SyntaxKind.
SimpleAssignmentExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
283
=> node is AssignmentExpressionSyntax(kind: not SyntaxKind.
SimpleAssignmentExpression
);
286
=> node?.Parent is AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
) assignment &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (3)
405
if (expression.Kind() == SyntaxKind.
SimpleAssignmentExpression
)
433
parent.IsKind(SyntaxKind.
SimpleAssignmentExpression
))
452
parent.IsKind(SyntaxKind.
SimpleAssignmentExpression
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (4)
663
else if (objectInitializer?.Parent is AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
) assignment)
1299
exprStatement.Expression.IsKind(SyntaxKind.
SimpleAssignmentExpression
);
1566
=> node is AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
) { Left: IdentifierNameSyntax };
1569
=> node is AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
) { Left: ImplicitElementAccessSyntax };
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
56
.FirstOrDefault(n => n.Kind() is SyntaxKind.
SimpleAssignmentExpression
or SyntaxKind.ForEachVariableStatement or SyntaxKind.PositionalPatternClause);
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (1)
141
SyntaxKind.
SimpleAssignmentExpression
,
src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (1)
62
SyntaxKind.
SimpleAssignmentExpression
,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
247
kind: SyntaxKind.
SimpleAssignmentExpression
,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
320
argument.Parent.Parent.IsParentKind(SyntaxKind.
SimpleAssignmentExpression
) &&
966
if (binop.Kind() == SyntaxKind.
SimpleAssignmentExpression
&&
1398
else if (initializerExpression.IsParentKind(SyntaxKind.
SimpleAssignmentExpression
))
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
CodeGen\CodeGenDeconstructTests.cs (5)
255
var deconstruction = (AssignmentExpressionSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.
SimpleAssignmentExpression
).AsNode();
278
var assignment = (AssignmentExpressionSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.
SimpleAssignmentExpression
, occurrence: 2).AsNode();
2287
var deconstruction = (AssignmentExpressionSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.
SimpleAssignmentExpression
).AsNode();
5001
Assert.False(nodes.Any(n => n.Kind() == SyntaxKind.
SimpleAssignmentExpression
));
5124
Assert.True(nodes.Any(n => n.Kind() == SyntaxKind.
SimpleAssignmentExpression
));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\OutVarTests.cs (2)
1233
case SyntaxKind.
SimpleAssignmentExpression
:
1342
case SyntaxKind.
SimpleAssignmentExpression
:
Microsoft.CodeAnalysis.CSharp.Features (23)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
447
else if (parent?.Parent is AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
) assignment)
Completion\CompletionProviders\ObjectAndWithInitializerCompletionProvider.cs (1)
157
if (parent.IsKind(SyntaxKind.
SimpleAssignmentExpression
))
Completion\KeywordRecommenders\RefKeywordRecommender.cs (1)
208
return parent?.Kind() == SyntaxKind.
SimpleAssignmentExpression
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
481
case SyntaxKind.
SimpleAssignmentExpression
:
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
525
SyntaxKind.
SimpleAssignmentExpression
,
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (1)
275
assignment.Expression.Kind() != SyntaxKind.
SimpleAssignmentExpression
)
IntroduceVariable\CSharpIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
116
SyntaxKind.
SimpleAssignmentExpression
,
RemoveUnusedVariable\CSharpRemoveUnusedVariableCodeFixProvider.cs (2)
41
if (node.Kind() == SyntaxKind.
SimpleAssignmentExpression
)
61
case SyntaxKind.
SimpleAssignmentExpression
:
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (1)
344
SyntaxKind.
SimpleAssignmentExpression
, currentInvocation.Expression, argumentExpression);
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.Analyzer.cs (1)
39
if (nodeToGenerate == SyntaxKind.
SimpleAssignmentExpression
&&
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
233
if (setExpression is AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundAssignmentDiagnosticAnalyzer.cs (1)
23
=> SyntaxKind.
SimpleAssignmentExpression
;
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (2)
76
if (assignment.Kind() != SyntaxKind.
SimpleAssignmentExpression
)
113
assignment = whenTrue is ExpressionStatementSyntax { Expression: AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
) assignmentTemp }
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
353
if (anonymousFunction?.Parent is AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
) assignment &&
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (1)
54
SyntaxKind.
SimpleAssignmentExpression
,
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
301
case SyntaxKind.
SimpleAssignmentExpression
:
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
472
if (assignmentExpression.Kind() != SyntaxKind.
SimpleAssignmentExpression
)
src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
139
if (assignmentStatement is not ExpressionStatementSyntax { Expression: AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
) assignment })
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
56
.FirstOrDefault(n => n.Kind() is SyntaxKind.
SimpleAssignmentExpression
or SyntaxKind.ForEachVariableStatement or SyntaxKind.PositionalPatternClause);
src\Analyzers\CSharp\CodeFixes\UseDeconstruction\CSharpUseDeconstructionCodeFixProvider.cs (1)
141
SyntaxKind.
SimpleAssignmentExpression
,
src\Analyzers\CSharp\CodeFixes\UseTupleSwap\CSharpUseTupleSwapCodeFixProvider.cs (1)
62
SyntaxKind.
SimpleAssignmentExpression
,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\ObjectAndCollectionInitializerTests.cs (3)
3688
Assert.Equal(SyntaxKind.
SimpleAssignmentExpression
, listAssignment.Kind());
3738
Assert.Equal(SyntaxKind.
SimpleAssignmentExpression
, listAssignment.Kind());
3782
Assert.Equal(SyntaxKind.
SimpleAssignmentExpression
, listAssignment.Kind());
Semantics\UnsafeTests.cs (2)
8865
if (binOpSyntax.Kind() == SyntaxKind.
SimpleAssignmentExpression
)
9327
if (binOpSyntax.Kind() == SyntaxKind.
SimpleAssignmentExpression
)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\GetSemanticInfoTests.cs (2)
249
Assert.Equal(SyntaxKind.
SimpleAssignmentExpression
, v1.Kind());
544
Assert.Equal(SyntaxKind.
SimpleAssignmentExpression
, v3.Kind());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (272)
Generated\Syntax.Test.xml.Generated.cs (2)
110
=> InternalSyntaxFactory.AssignmentExpression(SyntaxKind.
SimpleAssignmentExpression
, GenerateIdentifierName(), InternalSyntaxFactory.Token(SyntaxKind.EqualsToken), GenerateIdentifierName());
10326
=> SyntaxFactory.AssignmentExpression(SyntaxKind.
SimpleAssignmentExpression
, GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.EqualsToken), GenerateIdentifierName());
IncrementalParsing\CompoundAssignment.cs (12)
22
MakeAssignmentChange(SyntaxKind.
SimpleAssignmentExpression
, SyntaxKind.AddAssignmentExpression);
28
MakeAssignmentChange(SyntaxKind.
SimpleAssignmentExpression
, SyntaxKind.SubtractAssignmentExpression);
34
MakeAssignmentChange(SyntaxKind.
SimpleAssignmentExpression
, SyntaxKind.MultiplyAssignmentExpression);
40
MakeAssignmentChange(SyntaxKind.
SimpleAssignmentExpression
, SyntaxKind.DivideAssignmentExpression);
46
MakeAssignmentChange(SyntaxKind.
SimpleAssignmentExpression
, SyntaxKind.ModuloAssignmentExpression);
52
MakeAssignmentChange(SyntaxKind.
SimpleAssignmentExpression
, SyntaxKind.ExclusiveOrAssignmentExpression);
58
MakeAssignmentChange(SyntaxKind.
SimpleAssignmentExpression
, SyntaxKind.LeftShiftAssignmentExpression);
64
MakeAssignmentChange(SyntaxKind.
SimpleAssignmentExpression
, SyntaxKind.RightShiftAssignmentExpression);
70
MakeAssignmentChange(SyntaxKind.
SimpleAssignmentExpression
, SyntaxKind.UnsignedRightShiftAssignmentExpression);
76
MakeAssignmentChange(SyntaxKind.
SimpleAssignmentExpression
, SyntaxKind.AndAssignmentExpression);
82
MakeAssignmentChange(SyntaxKind.
SimpleAssignmentExpression
, SyntaxKind.OrAssignmentExpression);
115
case SyntaxKind.
SimpleAssignmentExpression
:
IncrementalParsing\IncrementalParsingTests.cs (1)
722
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\AnonymousFunctionParsingTests.cs (10)
1184
N(SyntaxKind.
SimpleAssignmentExpression
);
1241
N(SyntaxKind.
SimpleAssignmentExpression
);
1287
N(SyntaxKind.
SimpleAssignmentExpression
);
1354
N(SyntaxKind.
SimpleAssignmentExpression
);
1432
N(SyntaxKind.
SimpleAssignmentExpression
);
1488
N(SyntaxKind.
SimpleAssignmentExpression
);
1542
N(SyntaxKind.
SimpleAssignmentExpression
);
1636
N(SyntaxKind.
SimpleAssignmentExpression
);
1740
N(SyntaxKind.
SimpleAssignmentExpression
);
1817
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\CollectionExpressionParsingTests.cs (20)
58
N(SyntaxKind.
SimpleAssignmentExpression
);
704
N(SyntaxKind.
SimpleAssignmentExpression
);
830
N(SyntaxKind.
SimpleAssignmentExpression
);
1121
N(SyntaxKind.
SimpleAssignmentExpression
);
1192
N(SyntaxKind.
SimpleAssignmentExpression
);
1248
N(SyntaxKind.
SimpleAssignmentExpression
);
1482
N(SyntaxKind.
SimpleAssignmentExpression
);
1553
N(SyntaxKind.
SimpleAssignmentExpression
);
1585
N(SyntaxKind.
SimpleAssignmentExpression
);
1631
N(SyntaxKind.
SimpleAssignmentExpression
);
1684
N(SyntaxKind.
SimpleAssignmentExpression
);
1727
N(SyntaxKind.
SimpleAssignmentExpression
);
1770
N(SyntaxKind.
SimpleAssignmentExpression
);
1808
N(SyntaxKind.
SimpleAssignmentExpression
);
6555
N(SyntaxKind.
SimpleAssignmentExpression
);
7801
N(SyntaxKind.
SimpleAssignmentExpression
);
7847
N(SyntaxKind.
SimpleAssignmentExpression
);
7903
N(SyntaxKind.
SimpleAssignmentExpression
);
15336
N(SyntaxKind.
SimpleAssignmentExpression
);
15452
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\DeclarationExpressionTests.cs (3)
939
N(SyntaxKind.
SimpleAssignmentExpression
);
1251
N(SyntaxKind.
SimpleAssignmentExpression
);
1306
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\DeclarationParsingTests.cs (2)
4528
Assert.Equal(SyntaxKind.
SimpleAssignmentExpression
, es.Expression.Kind());
4584
Assert.Equal(SyntaxKind.
SimpleAssignmentExpression
, xs.Expression.Kind());
Parsing\DeclarationScopeParsingTests.cs (25)
3496
N(SyntaxKind.
SimpleAssignmentExpression
);
3563
N(SyntaxKind.
SimpleAssignmentExpression
);
3786
N(SyntaxKind.
SimpleAssignmentExpression
);
4025
N(SyntaxKind.
SimpleAssignmentExpression
);
4165
N(SyntaxKind.
SimpleAssignmentExpression
);
4313
N(SyntaxKind.
SimpleAssignmentExpression
);
4463
N(SyntaxKind.
SimpleAssignmentExpression
);
4534
N(SyntaxKind.
SimpleAssignmentExpression
);
4609
N(SyntaxKind.
SimpleAssignmentExpression
);
4685
N(SyntaxKind.
SimpleAssignmentExpression
);
4760
N(SyntaxKind.
SimpleAssignmentExpression
);
4831
N(SyntaxKind.
SimpleAssignmentExpression
);
4902
N(SyntaxKind.
SimpleAssignmentExpression
);
4977
N(SyntaxKind.
SimpleAssignmentExpression
);
5053
N(SyntaxKind.
SimpleAssignmentExpression
);
5120
N(SyntaxKind.
SimpleAssignmentExpression
);
5384
N(SyntaxKind.
SimpleAssignmentExpression
);
5437
N(SyntaxKind.
SimpleAssignmentExpression
);
5507
N(SyntaxKind.
SimpleAssignmentExpression
);
5560
N(SyntaxKind.
SimpleAssignmentExpression
);
5639
N(SyntaxKind.
SimpleAssignmentExpression
);
5710
N(SyntaxKind.
SimpleAssignmentExpression
);
5873
N(SyntaxKind.
SimpleAssignmentExpression
);
11652
N(SyntaxKind.
SimpleAssignmentExpression
);
11711
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\DeconstructionTests.cs (28)
473
N(SyntaxKind.
SimpleAssignmentExpression
);
624
N(SyntaxKind.
SimpleAssignmentExpression
);
716
N(SyntaxKind.
SimpleAssignmentExpression
);
806
N(SyntaxKind.
SimpleAssignmentExpression
);
919
N(SyntaxKind.
SimpleAssignmentExpression
);
996
N(SyntaxKind.
SimpleAssignmentExpression
);
1157
N(SyntaxKind.
SimpleAssignmentExpression
);
1258
N(SyntaxKind.
SimpleAssignmentExpression
);
1356
N(SyntaxKind.
SimpleAssignmentExpression
);
1587
N(SyntaxKind.
SimpleAssignmentExpression
);
1787
N(SyntaxKind.
SimpleAssignmentExpression
);
1937
Assert.Equal(SyntaxKind.
SimpleAssignmentExpression
, lhsContent.Expression.Kind());
2429
N(SyntaxKind.
SimpleAssignmentExpression
);
2494
N(SyntaxKind.
SimpleAssignmentExpression
);
2933
N(SyntaxKind.
SimpleAssignmentExpression
);
2973
N(SyntaxKind.
SimpleAssignmentExpression
);
3027
N(SyntaxKind.
SimpleAssignmentExpression
);
3081
N(SyntaxKind.
SimpleAssignmentExpression
);
3140
N(SyntaxKind.
SimpleAssignmentExpression
);
3201
N(SyntaxKind.
SimpleAssignmentExpression
);
3262
N(SyntaxKind.
SimpleAssignmentExpression
);
3307
N(SyntaxKind.
SimpleAssignmentExpression
);
3410
N(SyntaxKind.
SimpleAssignmentExpression
);
3457
N(SyntaxKind.
SimpleAssignmentExpression
);
3519
N(SyntaxKind.
SimpleAssignmentExpression
);
3581
N(SyntaxKind.
SimpleAssignmentExpression
);
3628
N(SyntaxKind.
SimpleAssignmentExpression
);
3676
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\ExpressionParsingTests.cs (5)
1348
Assert.Equal(SyntaxKind.
SimpleAssignmentExpression
, oc.Initializer.Expressions[0].Kind());
4906
N(SyntaxKind.
SimpleAssignmentExpression
);
4938
N(SyntaxKind.
SimpleAssignmentExpression
);
6160
N(SyntaxKind.
SimpleAssignmentExpression
);
6802
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\FieldKeywordParsingTests.cs (9)
300
N(SyntaxKind.
SimpleAssignmentExpression
);
570
N(SyntaxKind.
SimpleAssignmentExpression
);
637
N(SyntaxKind.
SimpleAssignmentExpression
);
721
N(SyntaxKind.
SimpleAssignmentExpression
);
814
N(SyntaxKind.
SimpleAssignmentExpression
);
1511
N(SyntaxKind.
SimpleAssignmentExpression
);
1589
N(SyntaxKind.
SimpleAssignmentExpression
);
1653
N(SyntaxKind.
SimpleAssignmentExpression
);
1803
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\FileModifierParsingTests.cs (3)
3261
N(SyntaxKind.
SimpleAssignmentExpression
);
3337
N(SyntaxKind.
SimpleAssignmentExpression
);
3381
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\ImplicitObjectCreationParsingTests.cs (2)
514
N(SyntaxKind.
SimpleAssignmentExpression
);
580
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\LambdaAttributeParsingTests.cs (14)
928
N(SyntaxKind.
SimpleAssignmentExpression
);
1004
N(SyntaxKind.
SimpleAssignmentExpression
);
1063
N(SyntaxKind.
SimpleAssignmentExpression
);
2259
N(SyntaxKind.
SimpleAssignmentExpression
);
2321
N(SyntaxKind.
SimpleAssignmentExpression
);
2383
N(SyntaxKind.
SimpleAssignmentExpression
);
2450
N(SyntaxKind.
SimpleAssignmentExpression
);
2717
N(SyntaxKind.
SimpleAssignmentExpression
);
2749
N(SyntaxKind.
SimpleAssignmentExpression
);
2811
N(SyntaxKind.
SimpleAssignmentExpression
);
2844
N(SyntaxKind.
SimpleAssignmentExpression
);
3647
N(SyntaxKind.
SimpleAssignmentExpression
);
4353
N(SyntaxKind.
SimpleAssignmentExpression
);
4487
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\LambdaParameterParsingTests.cs (8)
2244
N(SyntaxKind.
SimpleAssignmentExpression
);
3291
N(SyntaxKind.
SimpleAssignmentExpression
);
3618
N(SyntaxKind.
SimpleAssignmentExpression
);
4363
N(SyntaxKind.
SimpleAssignmentExpression
);
4430
N(SyntaxKind.
SimpleAssignmentExpression
);
4509
N(SyntaxKind.
SimpleAssignmentExpression
);
4737
N(SyntaxKind.
SimpleAssignmentExpression
);
5319
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\LambdaReturnTypeParsingTests.cs (2)
2884
N(SyntaxKind.
SimpleAssignmentExpression
);
2927
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\MemberDeclarationParsingTests.cs (5)
2292
N(SyntaxKind.
SimpleAssignmentExpression
);
16192
N(SyntaxKind.
SimpleAssignmentExpression
);
16345
N(SyntaxKind.
SimpleAssignmentExpression
);
16758
N(SyntaxKind.
SimpleAssignmentExpression
);
16939
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\NullableParsingTests.cs (2)
1787
N(SyntaxKind.
SimpleAssignmentExpression
);
1823
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\ParsingErrorRecoveryTests.cs (8)
5240
N(SyntaxKind.
SimpleAssignmentExpression
);
5352
N(SyntaxKind.
SimpleAssignmentExpression
);
5365
N(SyntaxKind.
SimpleAssignmentExpression
);
5378
N(SyntaxKind.
SimpleAssignmentExpression
);
5391
N(SyntaxKind.
SimpleAssignmentExpression
);
5499
N(SyntaxKind.
SimpleAssignmentExpression
);
5612
N(SyntaxKind.
SimpleAssignmentExpression
);
5749
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\PatternParsingTests.cs (60)
8271
N(SyntaxKind.
SimpleAssignmentExpression
);
8333
N(SyntaxKind.
SimpleAssignmentExpression
);
8392
N(SyntaxKind.
SimpleAssignmentExpression
);
8441
N(SyntaxKind.
SimpleAssignmentExpression
);
8519
N(SyntaxKind.
SimpleAssignmentExpression
);
8689
N(SyntaxKind.
SimpleAssignmentExpression
);
8863
N(SyntaxKind.
SimpleAssignmentExpression
);
9022
N(SyntaxKind.
SimpleAssignmentExpression
);
9129
N(SyntaxKind.
SimpleAssignmentExpression
);
9167
N(SyntaxKind.
SimpleAssignmentExpression
);
9213
N(SyntaxKind.
SimpleAssignmentExpression
);
9258
N(SyntaxKind.
SimpleAssignmentExpression
);
9298
N(SyntaxKind.
SimpleAssignmentExpression
);
9364
N(SyntaxKind.
SimpleAssignmentExpression
);
9411
N(SyntaxKind.
SimpleAssignmentExpression
);
9466
N(SyntaxKind.
SimpleAssignmentExpression
);
9524
N(SyntaxKind.
SimpleAssignmentExpression
);
9590
N(SyntaxKind.
SimpleAssignmentExpression
);
9652
N(SyntaxKind.
SimpleAssignmentExpression
);
9716
N(SyntaxKind.
SimpleAssignmentExpression
);
9769
N(SyntaxKind.
SimpleAssignmentExpression
);
9908
N(SyntaxKind.
SimpleAssignmentExpression
);
9948
N(SyntaxKind.
SimpleAssignmentExpression
);
9996
N(SyntaxKind.
SimpleAssignmentExpression
);
10044
N(SyntaxKind.
SimpleAssignmentExpression
);
10099
N(SyntaxKind.
SimpleAssignmentExpression
);
10146
N(SyntaxKind.
SimpleAssignmentExpression
);
10194
N(SyntaxKind.
SimpleAssignmentExpression
);
10342
N(SyntaxKind.
SimpleAssignmentExpression
);
10383
N(SyntaxKind.
SimpleAssignmentExpression
);
10424
N(SyntaxKind.
SimpleAssignmentExpression
);
10465
N(SyntaxKind.
SimpleAssignmentExpression
);
10520
N(SyntaxKind.
SimpleAssignmentExpression
);
10565
N(SyntaxKind.
SimpleAssignmentExpression
);
10638
N(SyntaxKind.
SimpleAssignmentExpression
);
10675
N(SyntaxKind.
SimpleAssignmentExpression
);
10716
N(SyntaxKind.
SimpleAssignmentExpression
);
10758
N(SyntaxKind.
SimpleAssignmentExpression
);
10811
N(SyntaxKind.
SimpleAssignmentExpression
);
10860
N(SyntaxKind.
SimpleAssignmentExpression
);
10917
N(SyntaxKind.
SimpleAssignmentExpression
);
10978
N(SyntaxKind.
SimpleAssignmentExpression
);
11029
N(SyntaxKind.
SimpleAssignmentExpression
);
11081
N(SyntaxKind.
SimpleAssignmentExpression
);
11134
N(SyntaxKind.
SimpleAssignmentExpression
);
11191
N(SyntaxKind.
SimpleAssignmentExpression
);
11364
N(SyntaxKind.
SimpleAssignmentExpression
);
11407
N(SyntaxKind.
SimpleAssignmentExpression
);
11558
N(SyntaxKind.
SimpleAssignmentExpression
);
11618
N(SyntaxKind.
SimpleAssignmentExpression
);
11676
N(SyntaxKind.
SimpleAssignmentExpression
);
11807
N(SyntaxKind.
SimpleAssignmentExpression
);
11880
N(SyntaxKind.
SimpleAssignmentExpression
);
11988
N(SyntaxKind.
SimpleAssignmentExpression
);
12047
N(SyntaxKind.
SimpleAssignmentExpression
);
12128
N(SyntaxKind.
SimpleAssignmentExpression
);
12223
N(SyntaxKind.
SimpleAssignmentExpression
);
12329
N(SyntaxKind.
SimpleAssignmentExpression
);
12424
N(SyntaxKind.
SimpleAssignmentExpression
);
12529
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\RecordParsing.cs (7)
1544
N(SyntaxKind.
SimpleAssignmentExpression
);
1903
N(SyntaxKind.
SimpleAssignmentExpression
);
1958
N(SyntaxKind.
SimpleAssignmentExpression
);
1975
N(SyntaxKind.
SimpleAssignmentExpression
);
2014
N(SyntaxKind.
SimpleAssignmentExpression
);
2042
N(SyntaxKind.
SimpleAssignmentExpression
);
2084
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\RefFieldParsingTests.cs (4)
711
N(SyntaxKind.
SimpleAssignmentExpression
);
802
N(SyntaxKind.
SimpleAssignmentExpression
);
822
N(SyntaxKind.
SimpleAssignmentExpression
);
892
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\ScriptParsingTests.cs (7)
2012
N(SyntaxKind.
SimpleAssignmentExpression
);
5655
N(SyntaxKind.
SimpleAssignmentExpression
);
5750
N(SyntaxKind.
SimpleAssignmentExpression
);
6411
N(SyntaxKind.
SimpleAssignmentExpression
);
6460
N(SyntaxKind.
SimpleAssignmentExpression
);
6506
N(SyntaxKind.
SimpleAssignmentExpression
);
7488
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\StatementAttributeParsingTests.cs (1)
4060
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\StatementParsingTests.cs (4)
2738
N(SyntaxKind.
SimpleAssignmentExpression
);
4067
N(SyntaxKind.
SimpleAssignmentExpression
);
4126
N(SyntaxKind.
SimpleAssignmentExpression
);
4253
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\SuppressNullableWarningExpressionParsingTests.cs (6)
80
N(SyntaxKind.
SimpleAssignmentExpression
);
100
N(SyntaxKind.
SimpleAssignmentExpression
);
124
N(SyntaxKind.
SimpleAssignmentExpression
);
152
N(SyntaxKind.
SimpleAssignmentExpression
);
192
N(SyntaxKind.
SimpleAssignmentExpression
);
199
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\TopLevelStatementsParsingTests.cs (2)
42
N(SyntaxKind.
SimpleAssignmentExpression
);
355
N(SyntaxKind.
SimpleAssignmentExpression
);
Parsing\TypeArgumentListParsingTests.cs (20)
114
N(SyntaxKind.
SimpleAssignmentExpression
);
242
N(SyntaxKind.
SimpleAssignmentExpression
);
362
N(SyntaxKind.
SimpleAssignmentExpression
);
500
N(SyntaxKind.
SimpleAssignmentExpression
);
656
N(SyntaxKind.
SimpleAssignmentExpression
);
1105
N(SyntaxKind.
SimpleAssignmentExpression
);
1247
N(SyntaxKind.
SimpleAssignmentExpression
);
1389
N(SyntaxKind.
SimpleAssignmentExpression
);
1517
N(SyntaxKind.
SimpleAssignmentExpression
);
1618
N(SyntaxKind.
SimpleAssignmentExpression
);
1713
N(SyntaxKind.
SimpleAssignmentExpression
);
1847
N(SyntaxKind.
SimpleAssignmentExpression
);
1921
N(SyntaxKind.
SimpleAssignmentExpression
);
2111
N(SyntaxKind.
SimpleAssignmentExpression
);
2245
N(SyntaxKind.
SimpleAssignmentExpression
);
2319
N(SyntaxKind.
SimpleAssignmentExpression
);
2420
N(SyntaxKind.
SimpleAssignmentExpression
);
2529
N(SyntaxKind.
SimpleAssignmentExpression
);
2631
N(SyntaxKind.
SimpleAssignmentExpression
);
2749
N(SyntaxKind.
SimpleAssignmentExpression
);
Microsoft.CodeAnalysis.CSharp.Workspaces (20)
Classification\SyntaxClassification\OperatorOverloadSyntaxClassifier.cs (1)
35
if (syntax.IsKind(SyntaxKind.
SimpleAssignmentExpression
))
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3299
=> SyntaxFactory.AssignmentExpression(SyntaxKind.
SimpleAssignmentExpression
, (ExpressionSyntax)left, (ExpressionSyntax)Parenthesize(right));
Simplification\CSharpSimplificationService.cs (1)
210
if (parent.IsKind(SyntaxKind.
SimpleAssignmentExpression
))
Simplification\CSharpSimplificationService.Expander.cs (1)
875
return currentNode.Kind() == SyntaxKind.
SimpleAssignmentExpression
&&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\AssignmentExpressionSyntaxExtensions.cs (1)
16
return assignment.Kind() == SyntaxKind.
SimpleAssignmentExpression
&&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
298
case SyntaxKind.
SimpleAssignmentExpression
:
825
case SyntaxKind.
SimpleAssignmentExpression
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
283
=> node is AssignmentExpressionSyntax(kind: not SyntaxKind.
SimpleAssignmentExpression
);
286
=> node?.Parent is AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
) assignment &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (3)
405
if (expression.Kind() == SyntaxKind.
SimpleAssignmentExpression
)
433
parent.IsKind(SyntaxKind.
SimpleAssignmentExpression
))
452
parent.IsKind(SyntaxKind.
SimpleAssignmentExpression
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (4)
663
else if (objectInitializer?.Parent is AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
) assignment)
1299
exprStatement.Expression.IsKind(SyntaxKind.
SimpleAssignmentExpression
);
1566
=> node is AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
) { Left: IdentifierNameSyntax };
1569
=> node is AssignmentExpressionSyntax(SyntaxKind.
SimpleAssignmentExpression
) { Left: ImplicitElementAccessSyntax };
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
247
kind: SyntaxKind.
SimpleAssignmentExpression
,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
320
argument.Parent.Parent.IsParentKind(SyntaxKind.
SimpleAssignmentExpression
) &&
966
if (binop.Kind() == SyntaxKind.
SimpleAssignmentExpression
&&
1398
else if (initializerExpression.IsParentKind(SyntaxKind.
SimpleAssignmentExpression
))
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\ControlFlowGraphVerifier.cs (2)
883
RawKind: (int)CSharp.SyntaxKind.
SimpleAssignmentExpression
,
1146
parent.Parent is AssignmentExpressionSyntax assignment && assignment.Kind() == CSharp.SyntaxKind.
SimpleAssignmentExpression
&&
Diagnostics\OperationTestAnalyzer.cs (1)
2025
CSharp.SyntaxKind.
SimpleAssignmentExpression
);
Microsoft.Interop.ComInterfaceGenerator (8)
ComClassGenerator.cs (4)
148
SyntaxKind.
SimpleAssignmentExpression
,
153
SyntaxKind.
SimpleAssignmentExpression
,
165
AssignmentExpression(SyntaxKind.
SimpleAssignmentExpression
,
172
AssignmentExpression(SyntaxKind.
SimpleAssignmentExpression
,
ComInterfaceGenerator.cs (1)
668
AssignmentExpression(SyntaxKind.
SimpleAssignmentExpression
,
Marshallers\ComInterfaceDispatchMarshallingResolver.cs (1)
51
AssignmentExpression(SyntaxKind.
SimpleAssignmentExpression
,
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (1)
80
SyntaxKind.
SimpleAssignmentExpression
,
VirtualMethodPointerStubGenerator.cs (1)
247
AssignmentExpression(SyntaxKind.
SimpleAssignmentExpression
,
Microsoft.Interop.JavaScript.JSImportGenerator (5)
JSExportCodeGenerator.cs (3)
93
tryStatements.Add(ExpressionStatement(AssignmentExpression(SyntaxKind.
SimpleAssignmentExpression
,
144
AssignmentExpression(SyntaxKind.
SimpleAssignmentExpression
,
222
SyntaxKind.
SimpleAssignmentExpression
,
JSImportCodeGenerator.cs (2)
101
tryStatements.Add(ExpressionStatement(AssignmentExpression(SyntaxKind.
SimpleAssignmentExpression
,
149
ExpressionStatement(AssignmentExpression(SyntaxKind.
SimpleAssignmentExpression
,
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
375
else if (invocation.Parent.IsKind(SyntaxKind.
SimpleAssignmentExpression
) && invocation.Parent.Parent.IsKind(SyntaxKind.ExpressionStatement))
Microsoft.Interop.SourceGeneration (29)
GeneratedStatements.cs (2)
119
SyntaxKind.
SimpleAssignmentExpression
,
147
SyntaxKind.
SimpleAssignmentExpression
,
ManagedToNativeStubGenerator.cs (1)
157
tryStatements.Add(ExpressionStatement(AssignmentExpression(SyntaxKind.
SimpleAssignmentExpression
,
Marshalling\BlittableMarshaller.cs (2)
76
SyntaxKind.
SimpleAssignmentExpression
,
87
SyntaxKind.
SimpleAssignmentExpression
,
Marshalling\BoolMarshaller.cs (2)
64
SyntaxKind.
SimpleAssignmentExpression
,
85
SyntaxKind.
SimpleAssignmentExpression
,
Marshalling\CharMarshaller.cs (2)
97
SyntaxKind.
SimpleAssignmentExpression
,
109
SyntaxKind.
SimpleAssignmentExpression
,
Marshalling\ElementsMarshalling.cs (2)
119
SyntaxKind.
SimpleAssignmentExpression
,
133
SyntaxKind.
SimpleAssignmentExpression
,
Marshalling\StatelessMarshallingStrategy.cs (16)
41
SyntaxKind.
SimpleAssignmentExpression
,
82
assignment = AssignmentExpression(SyntaxKind.
SimpleAssignmentExpression
,
90
SyntaxKind.
SimpleAssignmentExpression
,
113
SyntaxKind.
SimpleAssignmentExpression
,
197
SyntaxKind.
SimpleAssignmentExpression
,
222
SyntaxKind.
SimpleAssignmentExpression
,
329
SyntaxKind.
SimpleAssignmentExpression
,
350
SyntaxKind.
SimpleAssignmentExpression
,
365
SyntaxKind.
SimpleAssignmentExpression
,
372
SyntaxKind.
SimpleAssignmentExpression
,
400
SyntaxKind.
SimpleAssignmentExpression
,
453
SyntaxKind.
SimpleAssignmentExpression
,
460
SyntaxKind.
SimpleAssignmentExpression
,
590
SyntaxKind.
SimpleAssignmentExpression
,
599
SyntaxKind.
SimpleAssignmentExpression
,
633
SyntaxKind.
SimpleAssignmentExpression
,
Marshalling\UnmanagedToManagedOwnershipTrackingStrategy.cs (1)
43
AssignmentExpression(SyntaxKind.
SimpleAssignmentExpression
,
Utils\SyntaxFactoryExtensions.cs (1)
105
=> ExpressionStatement(AssignmentExpression(SyntaxKind.
SimpleAssignmentExpression
, left, right));
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
188
case SyntaxKind.
SimpleAssignmentExpression
: