1 implementation of Value
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
7552public IOperation Value { get; }
68 references to Value
Microsoft.CodeAnalysis (4)
Operations\ControlFlowGraphBuilder.cs (4)
2046if (arguments[i].Value is IInterpolatedStringHandlerCreationOperation creation) 2072var argument = arguments[i].Value switch 6580if (arguments[i] is { Value: IInterpolatedStringHandlerArgumentPlaceholderOperation { PlaceholderKind: InterpolatedStringArgumentPlaceholderKind.TrailingValidityArgument } } arg) 6588outParameterPlaceholder = (IInterpolatedStringHandlerArgumentPlaceholderOperation)outParameterArgument.Value;
Microsoft.CodeAnalysis.CodeStyle (6)
AbstractSimplifyInterpolationHelpers.cs (4)
90if (invocation.Arguments[0].Value is ILiteralOperation { ConstantValue: { HasValue: true, Value: string value } } literal && 133return IsInvariantCultureReference(invocation.Arguments[formatProviderArgumentIndex].Value) 208var alignmentOp = invocation.Arguments[0].Value; 248=> argument.Value.ConstantValue is { HasValue: true, Value: ' ' };
HashCodeAnalyzer.OperationDeconstructor.cs (1)
94return TryAddHashedSymbol(invocation.Arguments[0].Value, seenHash: true);
SymbolUsageAnalysis.Walker.cs (1)
336operation.Value.Type.IsDelegateType())
Microsoft.CodeAnalysis.CSharp.CodeStyle (9)
CSharpUseImplicitTypeHelper.cs (2)
254if (argumentOp.Value?.Type == null) 260return argumentOp.Value.Type.Equals(argumentOp.Parameter.Type);
CSharpUseIndexOperatorDiagnosticAnalyzer.cs (2)
111invocationOperation.Arguments[0].Value, 133propertyReference.Arguments[0].Value,
CSharpUseRangeOperatorDiagnosticAnalyzer.cs (5)
132var startOperation = invocation.Arguments[0].Value; 170if (!IsSubtraction(invocation.Arguments[1].Value, out var subtraction) || 181var startOperation = invocation.Arguments[0].Value; 220var startOperation = invocation.Arguments[0].Value; 237invocation.Arguments[1].Value);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
ConvertToRecordHelpers.cs (3)
46Arguments: [IArgumentOperation { Value: IOperation arg }] 303if (arg is { Parameter: IParameterSymbol param, Value.Syntax: ExpressionSyntax captured }) 631Arguments: [IArgumentOperation { Value: IOperation arg }]
Microsoft.CodeAnalysis.CSharp.Features (10)
ConvertToRecordHelpers.cs (3)
46Arguments: [IArgumentOperation { Value: IOperation arg }] 303if (arg is { Parameter: IParameterSymbol param, Value.Syntax: ExpressionSyntax captured }) 631Arguments: [IArgumentOperation { Value: IOperation arg }]
CSharpUseIndexOperatorDiagnosticAnalyzer.cs (2)
111invocationOperation.Arguments[0].Value, 133propertyReference.Arguments[0].Value,
CSharpUseRangeOperatorDiagnosticAnalyzer.cs (5)
132var startOperation = invocation.Arguments[0].Value; 170if (!IsSubtraction(invocation.Arguments[1].Value, out var subtraction) || 181var startOperation = invocation.Arguments[0].Value; 220var startOperation = invocation.Arguments[0].Value; 237invocation.Arguments[1].Value);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CSharpUseImplicitTypeHelper.cs (2)
254if (argumentOp.Value?.Type == null) 260return argumentOp.Value.Type.Equals(argumentOp.Parameter.Type);
Microsoft.CodeAnalysis.Features (18)
AbstractSimplifyInterpolationHelpers.cs (4)
90if (invocation.Arguments[0].Value is ILiteralOperation { ConstantValue: { HasValue: true, Value: string value } } literal && 133return IsInvariantCultureReference(invocation.Arguments[formatProviderArgumentIndex].Value) 208var alignmentOp = invocation.Arguments[0].Value; 248=> argument.Value.ConstantValue is { HasValue: true, Value: ' ' };
HashCodeAnalyzer.OperationDeconstructor.cs (1)
94return TryAddHashedSymbol(invocation.Arguments[0].Value, seenHash: true);
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (1)
299IsParameterReference(invocation.Arguments[0].Value, parameter))
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (8)
201_syntaxFacts.IsIdentifierName(argument.Value.Syntax) && argument.ArgumentKind == ArgumentKind.Explicit); 222_syntaxFacts.IsDeclarationExpression(argument.Value.Syntax) && argument.ArgumentKind == ArgumentKind.Explicit); 246_syntaxFacts.IsLiteralExpression(argument.Value.Syntax) && argument.ArgumentKind == ArgumentKind.Explicit); 299.WhereAsArray(argument => argument.Value.Syntax is TExpressionSyntax); 364callerSemanticModel.GetSymbolInfo(argument.Value.Syntax, cancellationToken).GetAnySymbol()?.Name)) 388.Where(argument => argument.Value.Syntax is TExpressionSyntax 389&& !_syntaxFacts.IsDeclarationExpression(argument.Value.Syntax)) 509var argumentExpressionOperation = argumentOperation.Value;
ValueTracking\ValueTracker.OperationCollector.cs (4)
36IArgumentOperation argumentOperation => ShouldTrackArgument(argumentOperation) ? VisitAsync(argumentOperation.Value, cancellationToken) : Task.CompletedTask, 245if (argumentOperation.Value is IExpressionStatementOperation 260if (argumentOperation.Value is IParameterReferenceOperation) 273if (argumentOperation.Value is ILiteralOperation)
Microsoft.CodeAnalysis.Test.Utilities (15)
Compilation\ControlFlowGraphVerifier.cs (2)
954&& arguments[0].Value.Type.SpecialType == SpecialType.System_Int32 955&& arguments[1].Value.Type.SpecialType == SpecialType.System_Int32;
Compilation\OperationTreeVerifier.cs (1)
919Visit(operation.Value);
Compilation\TestOperationVisitor.cs (1)
570Assert.Same(operation.Value, operation.ChildOperations.Single());
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
92AssignTo(argument.Value, localsSourceTypes, fieldsSourceTypes, argument.Parameter.Type);
Diagnostics\FieldCouldBeReadOnlyAnalyzer.cs (1)
80AssignTo(argument.Value, inConstructor, staticConstructorType, assignedToFields, mightBecomeReadOnlyFields);
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
73AssignTo(argument.Value, assignedToLocals, mightBecomeConstLocals);
Diagnostics\OperationTestAnalyzer.cs (8)
558TestAscendingArgument(operationContext, argument.Value, ref priorArgumentValue); 562if (argument.Value is IArrayCreationOperation arrayArgument) 668if (argument.Value.ConstantValue.HasValue && argument.Value.ConstantValue.Value == null) 1106if (argument.Value is IArrayCreationOperation arrayValue) 1111operationContext.ReportDiagnostic(Diagnostic.Create(LongParamsDescriptor, argument.Value.Syntax.GetLocation())); 1133if (argument.Value is IArrayCreationOperation arrayValue) 1138operationContext.ReportDiagnostic(Diagnostic.Create(LongParamsDescriptor, argument.Value.Syntax.GetLocation()));
Microsoft.CodeAnalysis.Workspaces (1)
SymbolUsageAnalysis.Walker.cs (1)
336operation.Value.Type.IsDelegateType())