2 overrides of AssignmentStatement
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3298public override SyntaxNode AssignmentStatement(SyntaxNode left, SyntaxNode right)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
120Public Overrides Function AssignmentStatement(left As SyntaxNode, right As SyntaxNode) As SyntaxNode
42 references to AssignmentStatement
Microsoft.CodeAnalysis.CodeStyle.Fixes (8)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
167g.AssignmentStatement(
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
415var discardAssignmentExpression = (TExpressionSyntax)generator.AssignmentStatement(
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
110generator.AssignmentStatement(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (4)
233expression = generator.AssignmentStatement(expression, generator.IdentifierName("value")); 338var assignExpression = factory.AssignmentStatement( 400factory.AssignmentStatement( 409return factory.ExpressionStatement(factory.AssignmentStatement(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (1)
158factory.AssignmentStatement(hashCodeNameExpression, rightSide)));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (1)
161result.Add(generator.ExpressionStatement(generator.AssignmentStatement(
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (2)
218return editor.Generator.AssignmentStatement(newAssignmentTarget, rightOfAssignment); 225return editor.Generator.AssignmentStatement(newAssignmentTarget,
Microsoft.CodeAnalysis.CSharp.Features (4)
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
64var setAccessorStatement = generator.ExpressionStatement(generator.AssignmentStatement(
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (1)
161result.Add(generator.ExpressionStatement(generator.AssignmentStatement(
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (2)
218return editor.Generator.AssignmentStatement(newAssignmentTarget, rightOfAssignment); 225return editor.Generator.AssignmentStatement(newAssignmentTarget,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
CodeGeneration\SyntaxGeneratorTests.cs (5)
479=> VerifySyntax<AssignmentExpressionSyntax>(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "x = (y)"); 3535Generator.ExpressionStatement(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), 3562Generator.ExpressionStatement(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), 3582Generator.ExpressionStatement(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), 3615Generator.ExpressionStatement(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y"))),
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\ExpressionPrecedenceGenerationTests.cs (1)
215f.AssignmentStatement(
Microsoft.CodeAnalysis.Features (7)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
859generator.AssignmentStatement(
EncapsulateField\AbstractEncapsulateFieldService.cs (1)
386factory.AssignmentStatement(
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
528generator.AssignmentStatement(
ReplaceConditionalWithStatements\AbstractReplaceConditionalWithStatementsCodeRefactoringProvider.cs (1)
248convertedSyntax => generator.AssignmentStatement(identifier, convertedSyntax),
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (1)
371return Generator.AssignmentStatement(
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (1)
415var discardAssignmentExpression = (TExpressionSyntax)generator.AssignmentStatement(
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
110generator.AssignmentStatement(
Microsoft.CodeAnalysis.VisualBasic.Features (1)
ConvertAutoPropertyToFullProperty\VisualBasicConvertAutoPropertyToFullProperty.vb (1)
58generator.AssignmentStatement(generator.IdentifierName(fieldName),
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (5)
CodeGeneration\SyntaxGeneratorTests.vb (5)
437VerifySyntax(Of AssignmentStatementSyntax)(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y")), "x = y") 2963Dim stmts = {Generator.ExpressionStatement(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), Generator.ExpressionStatement(Generator.InvocationExpression(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))} 2984Dim stmts = {Generator.ExpressionStatement(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), Generator.ExpressionStatement(Generator.InvocationExpression(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))} 3100Dim stmts = {Generator.ExpressionStatement(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), Generator.ExpressionStatement(Generator.InvocationExpression(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))} 3125Dim stmts = {Generator.ExpressionStatement(Generator.AssignmentStatement(Generator.IdentifierName("x"), Generator.IdentifierName("y"))), Generator.ExpressionStatement(Generator.InvocationExpression(Generator.IdentifierName("fn"), Generator.IdentifierName("arg")))}
Microsoft.CodeAnalysis.Workspaces (8)
Shared\Extensions\SyntaxGeneratorExtensions.cs (3)
76codeFactory.AssignmentStatement( 119codeFactory.AssignmentStatement( 138codeFactory.AssignmentStatement(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (4)
233expression = generator.AssignmentStatement(expression, generator.IdentifierName("value")); 338var assignExpression = factory.AssignmentStatement( 400factory.AssignmentStatement( 409return factory.ExpressionStatement(factory.AssignmentStatement(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateGetHashCodeMethod.cs (1)
158factory.AssignmentStatement(hashCodeNameExpression, rightSide)));