1 implementation of Parameter
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
5322public IParameterSymbol Parameter { get; }
56 references to Parameter
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (1)
114IParameterReferenceOperation p => p.Parameter.Type,
ILLink.RoslynAnalyzer (2)
DataFlow\LocalDataFlowVisitor.cs (1)
246 IParameterReferenceOperation parameterRef => GetParameterTargetValue (parameterRef.Parameter),
TrimAnalysis\TrimAnalysisVisitor.cs (1)
136 return GetParameterTargetValue (paramRef.Parameter);
Microsoft.Analyzers.Extra (6)
CoalesceAnalyzer.cs (4)
42var method = pr.Parameter.ContainingSymbol as IMethodSymbol; 44if (pr.Parameter.ContainingSymbol.IsExternallyVisible() 69var method = pr.Parameter.ContainingSymbol as IMethodSymbol; 71if (pr.Parameter.ContainingSymbol.IsExternallyVisible()
ConditionalAccessAnalyzer.cs (2)
101var method = pr.Parameter.ContainingSymbol as IMethodSymbol; 103if (pr.Parameter.ContainingSymbol.IsExternallyVisible()
Microsoft.AspNetCore.App.Analyzers (4)
RouteHandlers\DetectAmbiguousRoutes.cs (4)
191return SymbolEqualityComparer.Default.Equals(parameter.Parameter, otherParameter.Parameter); 251if (!SymbolEqualityComparer.Default.Equals(parameter.Parameter, otherParameter.Parameter))
Microsoft.CodeAnalysis (1)
Operations\ControlFlowGraphBuilder.cs (1)
7120return new ParameterReferenceOperation(operation.Parameter, semanticModel: null, operation.Syntax,
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
237_referencedParameters.GetOrAdd(parameterReference.Parameter, true);
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
255localOrParameter = parameterReference.Parameter;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (3)
259if (operation.Parameter.IsPrimaryConstructor(_cancellationToken)) 265OnReferenceFound(operation.Parameter, operation); 481_currentAnalysisData.SetTargetsFromSymbolForDelegate(write, parameterReference.Parameter);
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (1)
40parameter.Equals(parameterReference.Parameter);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (1)
146IParameterReferenceOperation parameterReference => parameterReference.Parameter.Equals(symbol),
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
245if (operation is IParameterReferenceOperation { Parameter: var parameter } &&
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
515orderedParameterAssignments.Add((parameterReference.Parameter, assignedMemberDeclaration, isWrittenTo));
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 }, 587Parameter: IParameterSymbol referencedParameter1 608=> (operation.WalkDownConversion() as IParameterReferenceOperation)?.Parameter; 616IParameterReferenceOperation paramReference => paramReference.Parameter, 998referencedParameter = (typeCondition.ValueOperand as IParameterReferenceOperation)?.Parameter; 1013referencedParameter = parameterReference.Parameter;
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)
245if (operation is IParameterReferenceOperation { Parameter: var parameter } &&
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
515orderedParameterAssignments.Add((parameterReference.Parameter, assignedMemberDeclaration, isWrittenTo));
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 }, 587Parameter: IParameterSymbol referencedParameter1 608=> (operation.WalkDownConversion() as IParameterReferenceOperation)?.Parameter; 616IParameterReferenceOperation paramReference => paramReference.Parameter, 998referencedParameter = (typeCondition.ValueOperand as IParameterReferenceOperation)?.Parameter; 1013referencedParameter = parameterReference.Parameter;
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 (4)
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (1)
492&& parameterOperation.Parameter.Equals(parametersWithVariableDeclarationArgument[0].parameterSymbol);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
237_referencedParameters.GetOrAdd(parameterReference.Parameter, true);
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (1)
255localOrParameter = parameterReference.Parameter;
ValueTracking\ValueTracker.OperationCollector.cs (1)
144IParameterReferenceOperation parameterReference => AddOperationAsync(operation, parameterReference.Parameter, cancellationToken),
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\OperationTreeVerifier.cs (1)
1028LogString($": {operation.Parameter.Name}");
Compilation\TestOperationVisitor.cs (1)
636Assert.NotNull(operation.Parameter);
Microsoft.CodeAnalysis.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (3)
259if (operation.Parameter.IsPrimaryConstructor(_cancellationToken)) 265OnReferenceFound(operation.Parameter, operation); 481_currentAnalysisData.SetTargetsFromSymbolForDelegate(write, parameterReference.Parameter);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (1)
40parameter.Equals(parameterReference.Parameter);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NullableHelpers.cs (1)
146IParameterReferenceOperation parameterReference => parameterReference.Parameter.Equals(symbol),