1 implementation of Value
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5867public IOperation Value { get; }
73 references to Value
Microsoft.CodeAnalysis (11)
Generated\Operations.Generated.cs (2)
2851/// (1) <see cref="IAssignmentOperation.Target" /> is evaluated for null. If it is null, <see cref="IAssignmentOperation.Value" /> is evaluated and assigned to target. 2852/// (2) <see cref="IAssignmentOperation.Value" /> is conditionally evaluated if <see cref="IAssignmentOperation.Target" /> is null, and the result is assigned into <see cref="IAssignmentOperation.Target" />.
Operations\ControlFlowGraphBuilder.cs (9)
2097IOperation value = VisitRequired(operation.Value); 3197IOperation whenNullValue = VisitRequired(operation.Value); 3249IOperation whenNullValue = VisitRequired(operation.Value); 5995IOperation right = VisitRequired(assignmentOperation.Value); 6203IOperation visitedValue = visitAndCaptureInitializer(propertyReference.Property, simpleAssignment.Value); 6426(IOperation visitedTarget, IOperation visitedValue) = VisitPreservingTupleOperations(operation.Target, operation.Value); 7724AddStatement(VisitRequired(simpleAssignment.Value)); 7739AddStatement(VisitRequired(simpleAssignment.Value)); 7744VisitAndCapture(simpleAssignment.Value, valueCaptureId);
Microsoft.CodeAnalysis.CodeStyle (9)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
605return IsRemovableAssignmentValueWithoutSideEffects(assignment.Value);
AbstractUseConditionalExpressionForAssignmentDiagnosticAnalyzer.cs (2)
37trueAssignment?.Value ?? trueStatement, 38falseAssignment?.Value ?? falseStatement,
AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
131assignmentExpression.Value.Syntax.GetLocation(), 191if (!TryGetLocalOrParameterSymbol(assignmentExpression.Value, out var assignmentValue))
HashCodeAnalyzer.cs (1)
202!valueAnalyzer.TryAddHashedSymbol(simpleAssignment.Value, seenHash: false))
OperationExtensions.cs (1)
130simpleAssignmentOperation.Value == operation &&
SuppressMessageAttributeState.cs (1)
71builder.Add((propertyReference.Property.Name, simpleAssignment.Value));
SymbolUsageAnalysis.Walker.cs (1)
395initializerValue = simpleAssignment.Value;
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (2)
81trueAssignment?.Value ?? trueStatement, 82falseAssignment?.Value ?? falseStatement,
Microsoft.CodeAnalysis.CSharp (1)
CSharpExtensions.cs (1)
805/// conversion is applied before the operator is applied to the result of this conversion and <see cref="IAssignmentOperation.Value"/>.
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
ConvertToRecordHelpers.cs (2)
383Value: IOperation { Syntax: ExpressionSyntax syntax } 438Value: IOperation assignment
Microsoft.CodeAnalysis.CSharp.Features (2)
ConvertToRecordHelpers.cs (2)
383Value: IOperation { Syntax: ExpressionSyntax syntax } 438Value: IOperation assignment
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IConversionExpression.cs (1)
5215Assert.Equal(CodeAnalysis.NullableAnnotation.Annotated, iopTree.Value.Type.NullableAnnotation);
Microsoft.CodeAnalysis.Features (16)
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
605return IsRemovableAssignmentValueWithoutSideEffects(assignment.Value);
AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (2)
81trueAssignment?.Value ?? trueStatement, 82falseAssignment?.Value ?? falseStatement,
AbstractUseConditionalExpressionForAssignmentDiagnosticAnalyzer.cs (2)
37trueAssignment?.Value ?? trueStatement, 38falseAssignment?.Value ?? falseStatement,
AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
131assignmentExpression.Value.Syntax.GetLocation(), 191if (!TryGetLocalOrParameterSymbol(assignmentExpression.Value, out var assignmentValue))
HashCodeAnalyzer.cs (1)
202!valueAnalyzer.TryAddHashedSymbol(simpleAssignment.Value, seenHash: false))
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (3)
505IsParameterReference(assignmentExpression.Value, parameter)) 515assignmentExpression.Value.Syntax, 519var newRoot = root.ReplaceNode(assignmentExpression.Value.Syntax, coalesce);
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (3)
659Value: IConversionOperation { Operand: ITupleOperation valueTupleTemp }, 714if (IsParameterReference(assignmentExpression.Value, parameter)) 721if (assignmentExpression.Value.UnwrapImplicitConversion() is ICoalesceOperation coalesceExpression &&
SuppressMessageAttributeState.cs (1)
71builder.Add((propertyReference.Property.Name, simpleAssignment.Value));
ValueTracking\ValueTracker.OperationCollector.cs (1)
104=> VisitAsync(assignmentOperation.Value, cancellationToken);
Microsoft.CodeAnalysis.Test.Utilities (18)
Compilation\ControlFlowGraphVerifier.cs (1)
1041assignment.Value.Syntax == forStmt.StepClause.StepValue)
Compilation\OperationTreeVerifier.cs (5)
1304Visit(operation.Value, nameof(operation.Value)); 1631Visit(operation.Value, "Right"); 1640Visit(operation.Value, "Right"); 1677Visit(operation.Value, "Right");
Compilation\TestOperationVisitor.cs (2)
893AssertEx.Equal(new[] { operation.Target, operation.Value }, operation.ChildOperations); 1140AssertEx.Equal(new[] { operation.Target, operation.Value }, operation.ChildOperations);
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
62AssignTo(assignment.Target, localsSourceTypes, fieldsSourceTypes, assignment.Value);
Diagnostics\OperationTestAnalyzer.cs (9)
175setupAssignment.Value.ConstantValue.HasValue && 176setupAssignment.Value.Type.SpecialType == SpecialType.System_Int32) 180int initialValue = (int)setupAssignment.Value.ConstantValue.Value; 240advanceAssignment.Value.Kind == OperationKind.Binary && 241advanceAssignment.Value.Type.SpecialType == SpecialType.System_Int32) 245IBinaryOperation advanceOperation = (IBinaryOperation)advanceAssignment.Value; 264advanceAssignment.Value.ConstantValue.HasValue && 265advanceAssignment.Value.Type.SpecialType == SpecialType.System_Int32) 268advanceIncrementOpt = advanceAssignment.Value.ConstantValue;
Microsoft.CodeAnalysis.VisualBasic (1)
VisualBasicExtensions.vb (1)
1435''' conversion is applied before the operator is applied to the result of this conversion and <see cref="IAssignmentOperation.Value"/>.
Microsoft.CodeAnalysis.Workspaces (2)
OperationExtensions.cs (1)
130simpleAssignmentOperation.Value == operation &&
SymbolUsageAnalysis.Walker.cs (1)
395initializerValue = simpleAssignment.Value;
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (8)
IOperation\IOperationTests.vb (8)
65Assert.Equal(assignment1.Value.Kind, OperationKind.Binary) 66Dim add1 As IBinaryOperation = DirectCast(assignment1.Value, IBinaryOperation) 98Assert.Equal(assignment2.Value.Kind, OperationKind.Binary) 99Dim add2 As IBinaryOperation = DirectCast(assignment2.Value, IBinaryOperation) 131Assert.Equal(assignment3.Value.Kind, OperationKind.Unary) 132Dim negate3 As IUnaryOperation = DirectCast(assignment3.Value, IUnaryOperation) 193Dim value1 As ILocalReferenceOperation = TryCast(assignment1.Value, ILocalReferenceOperation) 221Dim value2 As ILocalReferenceOperation = TryCast(assignment2.Value, ILocalReferenceOperation)