1 implementation of ISimpleAssignmentOperation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
6242internal sealed partial class SimpleAssignmentOperation : BaseAssignmentOperation, ISimpleAssignmentOperation
93 references to ISimpleAssignmentOperation
ILLink.RoslynAnalyzer (1)
DataFlow\LocalDataFlowVisitor.cs (1)
371 public override TValue VisitSimpleAssignment (ISimpleAssignmentOperation operation, LocalDataFlowState<TValue, TContext, TValueLattice, TContextLattice> state)
Microsoft.AspNetCore.Analyzers (1)
OptionsAnalyzer.cs (1)
27if (context.Operation is ISimpleAssignmentOperation operation &&
Microsoft.AspNetCore.App.Analyzers (1)
Authorization\AddAuthorizationBuilderAnalyzer.cs (1)
147if (expressionStatementOperation is ISimpleAssignmentOperation { Target: IPropertyReferenceOperation { Property.ContainingType: { } propertyReferenceContainingType } }
Microsoft.CodeAnalysis (12)
Generated\OperationKind.Generated.cs (1)
106/// <summary>Indicates an <see cref="ISimpleAssignmentOperation"/>.</summary>
Generated\Operations.Generated.cs (4)
1690/// Each initializer is an <see cref="ISimpleAssignmentOperation" />, with an <see cref="IPropertyReferenceOperation" /> 10996public override IOperation VisitSimpleAssignment(ISimpleAssignmentOperation operation, object? argument) 11456public virtual void VisitSimpleAssignment(ISimpleAssignmentOperation operation) => DefaultVisit(operation); 11595public virtual TResult? VisitSimpleAssignment(ISimpleAssignmentOperation operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraphBuilder.cs (7)
2099public override IOperation VisitSimpleAssignment(ISimpleAssignmentOperation operation, int? captureIdForResult) 6054handleSimpleAssignment((ISimpleAssignmentOperation)innerInitializer); 6075void handleSimpleAssignment(ISimpleAssignmentOperation assignmentOperation) 6389var simpleAssignment = (ISimpleAssignmentOperation)operation.Initializers[i]; 7981if (initializer is not ISimpleAssignmentOperation simpleAssignment) 8076if (initializer is not ISimpleAssignmentOperation simpleAssignment)
Microsoft.CodeAnalysis.CodeStyle (16)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
200expressionStatement.Operation is not ISimpleAssignmentOperation simpleAssignment ||
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (2)
61var simpleAssignment = (ISimpleAssignmentOperation)initializer;
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (3)
274if (operation.Parent is ISimpleAssignmentOperation assignment && 325if (operation.Parent is ISimpleAssignmentOperation assignmentOperation) 384case ISimpleAssignmentOperation assignment when assignment.IsRef:
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentDiagnosticAnalyzer.cs (2)
31GetSyntaxFacts(), ifOperation, out var isRef, out var trueStatement, out var falseStatement, out var trueAssignment, out var falseAssignment))
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (5)
22out ISimpleAssignmentOperation? trueAssignment, 23out ISimpleAssignmentOperation? falseAssignment) 40var anyAssignment = trueAssignment ?? falseAssignment; 139out ISimpleAssignmentOperation? assignment, 156exprStatement.Operation is ISimpleAssignmentOperation assignmentOp &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
135else if (operation.Parent is ISimpleAssignmentOperation simpleAssignmentOperation &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
221public override void VisitSimpleAssignment(ISimpleAssignmentOperation operation) 421else if (write.Parent is ISimpleAssignmentOperation simpleAssignment)
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (7)
71out var trueAssignment, out var falseAssignment)) 104ISimpleAssignmentOperation assignment, 121ISimpleAssignmentOperation? trueAssignment, 122ISimpleAssignmentOperation? falseAssignment, 153ISimpleAssignmentOperation? trueAssignment, 154ISimpleAssignmentOperation? falseAssignment,
Microsoft.CodeAnalysis.CSharp (2)
Operations\CSharpOperationFactory.cs (2)
513Debug.Assert(initializer.Initializers.All(i => i is ISimpleAssignmentOperation)); 1330private ISimpleAssignmentOperation CreateBoundAssignmentOperatorOperation(BoundAssignmentOperator boundAssignmentOperator)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (2)
382if (assignment is ISimpleAssignmentOperation 437Operation: ISimpleAssignmentOperation
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (2)
382if (assignment is ISimpleAssignmentOperation 437Operation: ISimpleAssignmentOperation
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
82if (localReference.Parent is ISimpleAssignmentOperation simpleAssignment &&
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (3)
IOperation\IOperationTests.cs (3)
468Assert.False(operation1 is ISimpleAssignmentOperation); 474Assert.False(operation2 is ISimpleAssignmentOperation); 480Assert.False(operation3 is ISimpleAssignmentOperation);
Microsoft.CodeAnalysis.Features (21)
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (1)
490&& semanticModel.GetOperation(inlineExpressionNode, cancellationToken) is ISimpleAssignmentOperation simpleAssignmentOperation
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
200expressionStatement.Operation is not ISimpleAssignmentOperation simpleAssignment ||
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (2)
61var simpleAssignment = (ISimpleAssignmentOperation)initializer;
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (3)
274if (operation.Parent is ISimpleAssignmentOperation assignment && 325if (operation.Parent is ISimpleAssignmentOperation assignmentOperation) 384case ISimpleAssignmentOperation assignment when assignment.IsRef:
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentDiagnosticAnalyzer.cs (2)
31GetSyntaxFacts(), ifOperation, out var isRef, out var trueStatement, out var falseStatement, out var trueAssignment, out var falseAssignment))
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (5)
22out ISimpleAssignmentOperation? trueAssignment, 23out ISimpleAssignmentOperation? falseAssignment) 40var anyAssignment = trueAssignment ?? falseAssignment; 139out ISimpleAssignmentOperation? assignment, 156exprStatement.Operation is ISimpleAssignmentOperation assignmentOp &&
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (7)
71out var trueAssignment, out var falseAssignment)) 104ISimpleAssignmentOperation assignment, 121ISimpleAssignmentOperation? trueAssignment, 122ISimpleAssignmentOperation? falseAssignment, 153ISimpleAssignmentOperation? trueAssignment, 154ISimpleAssignmentOperation? falseAssignment,
Microsoft.CodeAnalysis.Test.Utilities (15)
Compilation\ControlFlowGraphVerifier.cs (2)
996if (reference.Parent is ISimpleAssignmentOperation assignment && 1895propertyReference.Parent is ISimpleAssignmentOperation simpleAssignment &&
Compilation\OperationTreeVerifier.cs (4)
1458var simpleAssignment = (ISimpleAssignmentOperation)initializer; 1657public override void VisitSimpleAssignment(ISimpleAssignmentOperation operation) 1659LogString(nameof(ISimpleAssignmentOperation));
Compilation\TestOperationVisitor.cs (3)
1051var simpleAssignment = (ISimpleAssignmentOperation)initializer; 1161public override void VisitSimpleAssignment(ISimpleAssignmentOperation operation)
Diagnostics\OperationTestAnalyzer.cs (6)
172ISimpleAssignmentOperation setupAssignment = (ISimpleAssignmentOperation)((IExpressionStatementOperation)setup).Operation; 236ISimpleAssignmentOperation advanceAssignment = (ISimpleAssignmentOperation)advanceExpression; 752var assignment = (ISimpleAssignmentOperation)operationContext.Operation;
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
135else if (operation.Parent is ISimpleAssignmentOperation simpleAssignmentOperation &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (2)
221public override void VisitSimpleAssignment(ISimpleAssignmentOperation operation) 421else if (write.Parent is ISimpleAssignmentOperation simpleAssignment)
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (6)
IOperation\IOperationTests.vb (6)
64Dim assignment1 As ISimpleAssignmentOperation = DirectCast(expression1, ISimpleAssignmentOperation) 97Dim assignment2 As ISimpleAssignmentOperation = DirectCast(expression2, ISimpleAssignmentOperation) 130Dim assignment3 As ISimpleAssignmentOperation = DirectCast(expression3, ISimpleAssignmentOperation)