1 implementation of IParameterReferenceOperation
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5314internal sealed partial class ParameterReferenceOperation : Operation, IParameterReferenceOperation
68 references to IParameterReferenceOperation
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (1)
114IParameterReferenceOperation p => p.Parameter.Type,
ILLink.RoslynAnalyzer (3)
DataFlow\LocalDataFlowVisitor.cs (2)
242 case IParameterReferenceOperation: { 246 IParameterReferenceOperation parameterRef => GetParameterTargetValue (parameterRef.Parameter),
TrimAnalysis\TrimAnalysisVisitor.cs (1)
133 public override MultiValue VisitParameterReference (IParameterReferenceOperation paramRef, StateValue state)
Microsoft.Analyzers.Extra (6)
CoalesceAnalyzer.cs (4)
41var pr = (IParameterReferenceOperation)op.Target; 68var pr = (IParameterReferenceOperation)op.Value;
ConditionalAccessAnalyzer.cs (2)
100var pr = (IParameterReferenceOperation)op.Operation;
Microsoft.AspNetCore.App.Analyzers (4)
RouteHandlers\DetectAmbiguousRoutes.cs (4)
188if (builder is IParameterReferenceOperation parameter && other is IParameterReferenceOperation otherParameter) 249else if (argument1 is IParameterReferenceOperation parameter && argument2 is IParameterReferenceOperation otherParameter)
Microsoft.CodeAnalysis (5)
Generated\OperationKind.Generated.cs (1)
67/// <summary>Indicates an <see cref="IParameterReferenceOperation"/>.</summary>
Generated\Operations.Generated.cs (3)
10916public override IOperation VisitParameterReference(IParameterReferenceOperation operation, object? argument) 11440public virtual void VisitParameterReference(IParameterReferenceOperation operation) => DefaultVisit(operation); 11579public virtual TResult? VisitParameterReference(IParameterReferenceOperation operation, TArgument argument) => DefaultVisit(operation, argument);
Operations\ControlFlowGraphBuilder.cs (1)
7118public override IOperation VisitParameterReference(IParameterReferenceOperation operation, int? captureIdForResult)
Microsoft.CodeAnalysis.CodeStyle (6)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (2)
235if (operationAnalysisContext.Operation is IParameterReferenceOperation parameterReference) 303/// an <see cref="IParameterReferenceOperation"/> or an <see cref="ILocalReferenceOperation"/>
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
253else if (operation is IParameterReferenceOperation parameterReference)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (3)
257public override void VisitParameterReference(IParameterReferenceOperation operation) 480var parameterReference = (IParameterReferenceOperation)currentOperation;
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (1)
39=> operation.UnwrapImplicitConversion() is IParameterReferenceOperation parameterReference &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (1)
146IParameterReferenceOperation parameterReference => parameterReference.Parameter.Equals(symbol),
Microsoft.CodeAnalysis.CSharp (1)
Operations\CSharpOperationFactory.cs (1)
665private IParameterReferenceOperation CreateBoundParameterOperation(BoundParameter boundParameter)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
246if (operation is IParameterReferenceOperation { Parameter: var parameter } &&
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
512operation is IParameterReferenceOperation { Syntax: IdentifierNameSyntax parameterName } parameterReference)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (10)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (9)
49} && arg.WalkDownConversion() is IParameterReferenceOperation { Parameter: IParameterSymbol param } 196assignment => (assignment as IParameterReferenceOperation)?.Parameter); 242Instance: IParameterReferenceOperation { Parameter: IParameterSymbol referencedParameter }, 248Instance: IParameterReferenceOperation { Parameter: IParameterSymbol referencedParameter }, 584Operand: IParameterReferenceOperation 607=> (operation.WalkDownConversion() as IParameterReferenceOperation)?.Parameter; 615IParameterReferenceOperation paramReference => paramReference.Parameter, 997referencedParameter = (typeCondition.ValueOperand as IParameterReferenceOperation)?.Parameter; 1004Value: IParameterReferenceOperation parameterReference,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\CSharpInitializeParameterService.cs (1)
88if (tupleRight.Elements[i] is IParameterReferenceOperation parameterReference && sibling.Equals(parameterReference.Parameter) &&
Microsoft.CodeAnalysis.CSharp.Features (11)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
246if (operation is IParameterReferenceOperation { Parameter: var parameter } &&
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
512operation is IParameterReferenceOperation { Syntax: IdentifierNameSyntax parameterName } parameterReference)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (9)
49} && arg.WalkDownConversion() is IParameterReferenceOperation { Parameter: IParameterSymbol param } 196assignment => (assignment as IParameterReferenceOperation)?.Parameter); 242Instance: IParameterReferenceOperation { Parameter: IParameterSymbol referencedParameter }, 248Instance: IParameterReferenceOperation { Parameter: IParameterSymbol referencedParameter }, 584Operand: IParameterReferenceOperation 607=> (operation.WalkDownConversion() as IParameterReferenceOperation)?.Parameter; 615IParameterReferenceOperation paramReference => paramReference.Parameter, 997referencedParameter = (typeCondition.ValueOperand as IParameterReferenceOperation)?.Parameter; 1004Value: IParameterReferenceOperation parameterReference,
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\CSharpInitializeParameterService.cs (1)
88if (tupleRight.Elements[i] is IParameterReferenceOperation parameterReference && sibling.Equals(parameterReference.Parameter) &&
Microsoft.CodeAnalysis.Features (8)
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (1)
491&& simpleAssignmentOperation.Target is IParameterReferenceOperation parameterOperation
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (2)
235if (operationAnalysisContext.Operation is IParameterReferenceOperation parameterReference) 303/// an <see cref="IParameterReferenceOperation"/> or an <see cref="ILocalReferenceOperation"/>
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
253else if (operation is IParameterReferenceOperation parameterReference)
ValueTracking\ValueTracker.OperationCollector.cs (4)
33IParameterReferenceOperation or 114IParameterReferenceOperation or 144IParameterReferenceOperation parameterReference => AddOperationAsync(operation, parameterReference.Parameter, cancellationToken), 255if (argumentOperation.Value is IParameterReferenceOperation)
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\OperationTreeVerifier.cs (2)
1025public override void VisitParameterReference(IParameterReferenceOperation operation) 1027LogString(nameof(IParameterReferenceOperation));
Compilation\TestOperationVisitor.cs (1)
633public override void VisitParameterReference(IParameterReferenceOperation operation)
Microsoft.CodeAnalysis.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (3)
257public override void VisitParameterReference(IParameterReferenceOperation operation) 480var parameterReference = (IParameterReferenceOperation)currentOperation;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (1)
39=> operation.UnwrapImplicitConversion() is IParameterReferenceOperation parameterReference &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (1)
146IParameterReferenceOperation parameterReference => parameterReference.Parameter.Equals(symbol),