1 implementation of Operand
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5104public IOperation Operand { get; }
76 references to Operand
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (1)
106IConversionOperation c => ResolveType(c.Operand),
ILLink.RoslynAnalyzer (1)
DataFlow\LocalDataFlowVisitor.cs (1)
698 var operandValue = Visit (operation.Operand, state);
Microsoft.Analyzers.Local (3)
CallAnalysis\CallAnalyzer.Handlers.cs (1)
118if (convOp.Operand is IObjectCreationOperation creationOp)
CallAnalysis\Throws.cs (1)
31var creationOp = (IObjectCreationOperation?)convOp?.Operand;
CallAnalysis\ToInvariantString.cs (1)
44if (conv.Operand is IPropertyReferenceOperation prop)
Microsoft.AspNetCore.App.Analyzers (4)
Http\RequestDelegateReturnTypeAnalyzer.cs (1)
88operation = conversionOperation.Operand;
RouteHandlers\DetectAmbiguousRoutes.cs (1)
289operation = conversionOperation.Operand;
RouteHandlers\DisallowReturningActionResultFromMapMethods.cs (1)
64returnedValue = conversionOperation.Operand;
RouteHandlers\RouteHandlerAnalyzer.cs (1)
240operation = conversionOperation.Operand;
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\InvocationOperationExtensions.cs (1)
86IConversionOperation conv => ResolveMethodFromOperation(conv.Operand, semanticModel),
Microsoft.AspNetCore.Mvc.Api.Analyzers (3)
ActualApiResponseMetadataFactory.cs (3)
76returnedValue = conversion.Operand; 214operation = conversionOperation.Operand; 231operation = conversion.Operand;
Microsoft.CodeAnalysis (11)
Operations\ControlFlowGraphBuilder.cs (11)
1619if (operation.WhenTrue is IConversionOperation whenTrueConversion && whenTrueConversion.Operand.Kind == OperationKind.Throw) 1621IOperation? rewrittenThrow = BaseVisitRequired(whenTrueConversion.Operand, null); 1631else if (operation.WhenFalse is IConversionOperation whenFalseConversion && whenFalseConversion.Operand.Kind == OperationKind.Throw) 1639IOperation rewrittenThrow = BaseVisitRequired(whenFalseConversion.Operand, null); 2925if (conversion.Operand.Kind == OperationKind.Throw) 2927IOperation? rewrittenThrow = BaseVisitRequired(conversion.Operand, null); 3045bool alternativeThrows = conversion?.Operand.Kind == OperationKind.Throw; 3069IOperation? rewrittenThrow = BaseVisitRequired(conversion.Operand, null); 7056Debug.Assert(interpolation.FormatString is ILiteralOperation or IConversionOperation { Operand: ILiteralOperation }); 7069Debug.Assert(interpolatedStringText.Text is ILiteralOperation or IConversionOperation { Operand: ILiteralOperation }); 7424return new ConversionOperation(VisitRequired(operation.Operand), ((ConversionOperation)operation).ConversionConvertible, operation.IsTryCast, operation.IsChecked, semanticModel: null, operation.Syntax, operation.Type, operation.GetConstantValue(), IsImplicit(operation));
Microsoft.CodeAnalysis.CodeStyle (7)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
252value = conversion.Operand;
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
688IsRemovableAssignmentValueWithoutSideEffects(conversion.Operand);
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
67expression = towardsParent ? expression.Parent : conversion.Operand;
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
246return TryGetLocalOrParameterSymbol(conversion.Operand, out localOrParameter);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (2)
390operation = conversionOperation.Operand; 460? conversion.Operand
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
440currentOperation = ((IConversionOperation)currentOperation).Operand;
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (2)
182if (conversion.Operand.Type == null || conversion.Operand.Type.TypeKind != TypeKind.Error)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
433? RemoveImplicitConversion(conversion.Operand)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (1)
126Value: IConversionOperation { Operand: ITupleOperation valueTupleTemp },
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (1)
163? IsConstant(op.Operand)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (3)
236conversionOperation.Operand.Type.RemoveNullableIfPresent() is var type2 && 781!IsSignedIntegralOrIntPtrType(originalConversionOperation.Operand.Type)) 946if (conversionOperation.Operand.Type is not INamedTypeSymbol original)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
585Operand: IParameterReferenceOperation
Microsoft.CodeAnalysis.CSharp.Features (3)
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
913return IsLocalOrParameterSymbol(conversion.Operand);
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsAnalyzer.cs (1)
163? IsConstant(op.Operand)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
585Operand: IParameterReferenceOperation
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IConversionExpression.cs (1)
5353return ((IConversionOperation)operation).Operand;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\DelegateTypeTests.cs (1)
14756var value = ((IConversionOperation)operation.Initializer!.Value).Operand;
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (3)
236conversionOperation.Operand.Type.RemoveNullableIfPresent() is var type2 && 781!IsSignedIntegralOrIntPtrType(originalConversionOperation.Operand.Type)) 946if (conversionOperation.Operand.Type is not INamedTypeSymbol original)
Microsoft.CodeAnalysis.Features (8)
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
390? RemoveImplicitConversion(conversion.Operand) : collection;
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (1)
445? IsConstant(op.Operand)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
252value = conversion.Operand;
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
688IsRemovableAssignmentValueWithoutSideEffects(conversion.Operand);
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
67expression = towardsParent ? expression.Parent : conversion.Operand;
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
246return TryGetLocalOrParameterSymbol(conversion.Operand, out localOrParameter);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (2)
182if (conversion.Operand.Type == null || conversion.Operand.Type.TypeKind != TypeKind.Error)
Microsoft.CodeAnalysis.Test.Utilities (9)
Compilation\OperationTreeVerifier.cs (3)
1270Visit(operation.Operand, "Operand"); 1913Assert.Equal(OperationKind.Literal, ((IConversionOperation)operation.Text).Operand.Kind); 1929Assert.Equal(OperationKind.Literal, ((IConversionOperation)operation.FormatString).Operand.Kind);
Compilation\TestOperationVisitor.cs (3)
863Assert.Same(operation.Operand, operation.ChildOperations.Single()); 1292Assert.Equal(OperationKind.Literal, ((IConversionOperation)operation.Text).Operand.Kind); 1310Assert.Equal(OperationKind.Literal, ((IConversionOperation)operation.FormatString).Operand.Kind);
Diagnostics\BoxingOperationAnalyzer.cs (2)
49conversion.Operand.Type != null && 50conversion.Operand.Type.IsValueType &&
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
286return conversion.Operand.Type;
Microsoft.CodeAnalysis.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (2)
390operation = conversionOperation.Operand; 460? conversion.Operand
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
440currentOperation = ((IConversionOperation)currentOperation).Operand;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
433? RemoveImplicitConversion(conversion.Operand)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (1)
126Value: IConversionOperation { Operand: ITupleOperation valueTupleTemp },
Microsoft.Interop.ComInterfaceGenerator (6)
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (6)
145IOperation operand = operation.Operand; 148operand = objConversion.Operand; 173IOperation operand = operation.Operand; 176operand = objConversion.Operand; 202IConversionOperation conversion => (conversion.Operand.Type, conversion.Operand.Syntax.GetLocation()),