1 implementation of ReturnedValue
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
4610public IOperation? ReturnedValue { get; }
52 references to ReturnedValue
ILLink.RoslynAnalyzer (2)
DataFlow\LocalDataFlowVisitor.cs (2)
686 if (operation.ReturnedValue != null) { 687 var value = Visit (operation.ReturnedValue, state);
Microsoft.AspNetCore.App.Analyzers (4)
Http\RequestDelegateReturnTypeAnalyzer.cs (1)
56returnOperation.ReturnedValue is { } returnedValue)
RouteHandlers\DetectMisplacedLambdaAttribute.cs (1)
77if (returnStatement.ReturnedValue is IInvocationOperation invocationReturn)
RouteHandlers\DisallowReturningActionResultFromMapMethods.cs (2)
56if (returnOperation.ReturnedValue is null or IInvalidOperation) 61var returnedValue = returnOperation.ReturnedValue;
Microsoft.AspNetCore.Mvc.Api.Analyzers (3)
ActualApiResponseMetadataFactory.cs (1)
64var returnedValue = armOperation?.Value ?? returnOperation.ReturnedValue;
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs (1)
95var returnValue = returnOperation.ReturnedValue;
ApiConventionAnalyzer.cs (1)
53var location = actualMetadata.ReturnOperation.ReturnedValue.Syntax.GetLocation();
Microsoft.CodeAnalysis (1)
Operations\ControlFlowGraphBuilder.cs (1)
3830IOperation? returnedValue = Visit(operation.ReturnedValue);
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (2)
98if (statements[0] is not IReturnOperation { ReturnedValue: { } returnedValue }) 133!(statements.Last() is IReturnOperation { ReturnedValue: { } returnedValue }))
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnDiagnosticAnalyzer.cs (2)
43trueReturn?.ReturnedValue ?? trueStatement, 44falseReturn?.ReturnedValue ?? falseStatement,
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForReturn\UseConditionalExpressionForReturnHelpers.cs (1)
133return statement is IReturnOperation returnOp && returnOp.ReturnedValue != null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
428firstOp = returnOperation.ReturnedValue.WalkDownConversion();
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (2)
70trueReturn?.ReturnedValue ?? trueStatement, 71falseReturn?.ReturnedValue ?? falseStatement,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (7)
42ReturnedValue: IInvocationOperation 117Operations: [IReturnOperation { ReturnedValue: IOperation returnedValue }] 137ReturnedValue: IUnaryOperation 531if (bodyOps is [IReturnOperation { ReturnedValue: IOperation value }] && 704ReturnedValue: ILiteralOperation 888ReturnedValue: ILiteralOperation 896IReturnOperation { ReturnedValue: IOperation value } => TryAddEqualizedFieldsForCondition(
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\CollectionExpressionTests.cs (2)
26743var conversionOperation = (IConversionOperation)((IReturnOperation)operation).ReturnedValue; 26798var conversionOperation = (IConversionOperation)((IReturnOperation)operation).ReturnedValue;
Microsoft.CodeAnalysis.CSharp.Features (9)
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
63IReturnOperation { ReturnedValue: { } value } => (ExpressionSyntax)value.Syntax,
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
800var syntax = returnOperation.ReturnedValue?.Syntax ?? returnOperation.Syntax;
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (7)
42ReturnedValue: IInvocationOperation 117Operations: [IReturnOperation { ReturnedValue: IOperation returnedValue }] 137ReturnedValue: IUnaryOperation 531if (bodyOps is [IReturnOperation { ReturnedValue: IOperation value }] && 704ReturnedValue: ILiteralOperation 888ReturnedValue: ILiteralOperation 896IReturnOperation { ReturnedValue: IOperation value } => TryAddEqualizedFieldsForCondition(
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IConversionExpression.cs (1)
5344((IReturnOperation)operation).ReturnedValue;
Microsoft.CodeAnalysis.Features (11)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (1)
134nextStatement is IReturnOperation { ReturnedValue: not null } or IThrowOperation { Exception: not null })
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (1)
142case IReturnOperation { ReturnedValue: { } }:
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (2)
98if (statements[0] is not IReturnOperation { ReturnedValue: { } returnedValue }) 133!(statements.Last() is IReturnOperation { ReturnedValue: { } returnedValue }))
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnDiagnosticAnalyzer.cs (2)
43trueReturn?.ReturnedValue ?? trueStatement, 44falseReturn?.ReturnedValue ?? falseStatement,
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForReturn\UseConditionalExpressionForReturnHelpers.cs (1)
133return statement is IReturnOperation returnOp && returnOp.ReturnedValue != null;
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (2)
70trueReturn?.ReturnedValue ?? trueStatement, 71falseReturn?.ReturnedValue ?? falseStatement,
ValueTracking\ValueTracker.OperationCollector.cs (2)
164if (returnOperation.ReturnedValue is null) 169return VisitAsync(returnOperation.ReturnedValue, cancellationToken);
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\OperationTreeVerifier.cs (1)
702Visit(operation.ReturnedValue, "ReturnedValue");
Compilation\TestOperationVisitor.cs (2)
408if (operation.ReturnedValue == null) 415Assert.Same(operation.ReturnedValue, operation.ChildOperations.Single());
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
428firstOp = returnOperation.ReturnedValue.WalkDownConversion();