1 implementation of Value
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
7506public IOperation Value { get; }
38 references to Value
Microsoft.CodeAnalysis (4)
Generated\Operations.Generated.cs (1)
2321/// Local declared in and scoped to the <see cref="Value" />.
Operations\ControlFlowGraphBuilder.cs (3)
5846initializer = Visit(declarator.Initializer.Value); 5852IOperation operationInitializer = VisitRequired(declaration.Initializer.Value); 7279var assignment = new SimpleAssignmentOperation(isRef: false, rewrittenTarget, VisitRequired(initializer.Value), semanticModel: null,
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (2)
152var initializerValue = declaration.Initializer?.Value ?? declarator.Initializer?.Value;
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
311if (!initializer.Value.ConstantValue.HasValue)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
419initializerValue = variableDeclarator.GetVariableInitializer()?.Value;
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (2)
230if (variableInitializer?.Value != null) 232var unwrapped = variableInitializer.Value.UnwrapImplicitConversion();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (1)
111var syntax = variableDeclarator.GetVariableInitializer()!.Value.Syntax;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (2)
159if (fieldInitializer.Value is null) 162if (!IsObjectCreationOperation(fieldInitializer.Value))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
581Value: IConversionOperation
Microsoft.CodeAnalysis.CSharp.Features (3)
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (2)
159if (fieldInitializer.Value is null) 162if (!IsObjectCreationOperation(fieldInitializer.Value))
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
581Value: IConversionOperation
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (6)
IOperation\IOperationTests_IAnonymousFunctionExpression.cs (2)
413var variableTreeLambdaOperation = ((IDelegateCreationOperation)variableDeclarationGroupOperation.Declarations.Single().Declarators.Single().Initializer.Value).Target; 421var variableTreeLambdaOperationSecondRequest = ((IDelegateCreationOperation)variableDeclarationGroupOperationSecondRequest.Declarations.Single().Declarators.Single().Initializer.Value).Target;
IOperation\IOperationTests_IConversionExpression.cs (4)
182var initializerOperation = ((IVariableDeclaratorOperation)operation).Initializer.Value; 380var initializer = ((IVariableDeclaratorOperation)operation).Initializer.Value; 5338((IVariableDeclarationOperation)operation).Initializer.Value; 5341((IVariableDeclaratorOperation)operation).Initializer.Value;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\DelegateTypeTests.cs (1)
14756var value = ((IConversionOperation)operation.Initializer!.Value).Operand;
Microsoft.CodeAnalysis.Features (6)
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (1)
123var initializer = (localDeclaration.Initializer ?? declarator.Initializer)?.Value;
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (2)
152var initializerValue = declaration.Initializer?.Value ?? declarator.Initializer?.Value;
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
311if (!initializer.Value.ConstantValue.HasValue)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (2)
230if (variableInitializer?.Value != null) 232var unwrapped = variableInitializer.Value.UnwrapImplicitConversion();
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\TestOperationVisitor.cs (1)
1099Assert.Same(operation.Value, operation.ChildOperations.Single());
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (3)
108AssignTo(local, local.Type, localsSourceTypes, initializer.Value); 114AssignTo(local, local.Type, localsSourceTypes, initializer.Value); 142AssignTo(initializedField, initializedField.Type, fieldsSourceTypes, initializer.Value);
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
92if (initializer != null && initializer.Value.ConstantValue.HasValue)
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
419initializerValue = variableDeclarator.GetVariableInitializer()?.Value;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (1)
111var syntax = variableDeclarator.GetVariableInitializer()!.Value.Syntax;
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (1)
IOperation\IOperationTests_IConversionExpression.vb (1)
2600Dim initializerValue As IOperation = initializer.Value