1 implementation of Parameter
Microsoft.CodeAnalysis (1)
Generated\Operations.Generated.cs (1)
7924public IParameterSymbol? Parameter { get; }
55 references to Parameter
Aspire.Hosting.Analyzers (1)
AppHostAnalyzer.cs (1)
124if (SymbolEqualityComparer.Default.Equals(modelNameParameter, argument.Parameter))
ConfigurationSchemaGenerator (2)
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (2)
82if (instanceArg.Parameter?.Type.SpecialType is not SpecialType.System_Object) 124if (argument.Parameter?.Ordinal == parameterIndex)
ILLink.RoslynAnalyzer (2)
DataFlow\LocalDataFlowVisitor.cs (1)
814 if (argument?.Parameter == null)
IOperationExtensions.cs (1)
125 switch (argumentOperation.Parameter?.RefKind) {
Microsoft.AspNetCore.Analyzers (2)
MiddlewareAnalyzer.cs (1)
36SymbolEqualityComparer.Default.Equals(invocation.Arguments[0].Parameter?.Type, _context.StartupSymbols.IApplicationBuilder))
ServicesAnalyzer.cs (1)
31SymbolEqualityComparer.Default.Equals(invocation.Arguments[0].Parameter?.Type, _context.StartupSymbols.IServiceCollection))
Microsoft.AspNetCore.App.Analyzers (6)
Kestrel\ListenOnIPv6AnyAnalyzer.cs (1)
48if (!IsIPAddressType(addressArgument?.Parameter))
RenderTreeBuilder\RenderTreeBuilderAnalyzer.cs (1)
41if (argument.Parameter?.Ordinal == SequenceParameterOrdinal)
RouteHandlers\DetectAmbiguousRoutes.cs (1)
275if (SymbolEqualityComparer.Default.Equals(arguments[i].Parameter, parameter))
RouteHandlers\RouteHandlerAnalyzer.cs (3)
80if (argument.Parameter?.Ordinal == DelegateParameterOrdinal) 178if (argument.Parameter?.Ordinal == 1) 227var builderArgument = operation.Arguments.SingleOrDefault(a => a.Parameter?.Ordinal == 0);
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
StaticRouteHandlerModel\InvocationOperationExtensions.cs (2)
33routeHandlerParameter is { Parameter.Type: {} delegateType } && 61if (argument.Parameter?.Ordinal == routeHandlerArgumentOrdinal)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
ActualApiResponseMetadataFactory.cs (1)
198var parameter = argument.Parameter;
Microsoft.CodeAnalysis (1)
Operations\ControlFlowGraphBuilder.cs (1)
6825Debug.Assert(outParameterArgument is { Parameter: { RefKind: RefKind.Out, Type.SpecialType: SpecialType.System_Boolean } });
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
161switch (argumentOperation.Parameter?.RefKind)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1462var argument = invocationOperation.Arguments.FirstOrDefault(a => Equals(originalParameter, a.Parameter));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
240if (argumentOp is not { Value.Type: { } valueType, Parameter.Type: { } parameterType })
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
305if (arg is { Parameter: IParameterSymbol param, Value.Syntax: ExpressionSyntax captured })
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (1)
305if (arg is { Parameter: IParameterSymbol param, Value.Syntax: ExpressionSyntax captured })
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (1)
IOperation\IOperationTests_IArgument.cs (1)
4161Assert.Same(indexerSymbol, argument.Parameter.ContainingSymbol);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1462var argument = invocationOperation.Arguments.FirstOrDefault(a => Equals(originalParameter, a.Parameter));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
240if (argumentOp is not { Value.Type: { } valueType, Parameter.Type: { } parameterType })
Microsoft.CodeAnalysis.Features (6)
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (2)
439var parameterSymbol = argument.Parameter; 499var parameterSymbol = argumentOperation.Parameter;
ValueTracking\ValueTracker.OperationCollector.cs (4)
118if (IsContainedIn<IArgumentOperation>(operation, out var argumentOperation) && argumentOperation.Parameter is not null) 120if (argumentOperation.Parameter.IsRefOrOut()) 124return AddOperationAsync(operation, argumentOperation.Parameter, cancellationToken); 232if (argumentOperation.Parameter?.IsRefOrOut() == true)
Microsoft.CodeAnalysis.Test.Utilities (12)
Compilation\OperationTreeVerifier.cs (1)
915LogSymbol(operation.Parameter, header: "Matching Parameter", logDisplayString: false);
Compilation\TestOperationVisitor.cs (1)
580var parameter = operation.Parameter;
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (3)
90if (argument.Parameter.RefKind == RefKind.Out || argument.Parameter.RefKind == RefKind.Ref) 92AssignTo(argument.Value, localsSourceTypes, fieldsSourceTypes, argument.Parameter.Type);
Diagnostics\FieldCouldBeReadOnlyAnalyzer.cs (2)
78if (argument.Parameter.RefKind == RefKind.Out || argument.Parameter.RefKind == RefKind.Ref)
Diagnostics\LocalCouldBeConstAnalyzer.cs (2)
71if (argument.Parameter.RefKind == RefKind.Out || argument.Parameter.RefKind == RefKind.Ref)
Diagnostics\OperationTestAnalyzer.cs (3)
555operationContext.ReportDiagnostic(Diagnostic.Create(UseDefaultArgumentDescriptor, invocation.Syntax.GetLocation(), argument.Parameter.Name)); 1104if (argument.Parameter.IsParams) 1131if (argument.Parameter.IsParams)
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (1)
161switch (argumentOperation.Parameter?.RefKind)
Microsoft.Interop.ComInterfaceGenerator (2)
src\libraries\System.Runtime.InteropServices\gen\Common\OperationExtensions.cs (2)
21if (argument.Parameter?.Ordinal == ordinal) 37if (argument.Parameter?.Ordinal == ordinal)
Microsoft.Interop.LibraryImportGenerator (2)
src\libraries\System.Runtime.InteropServices\gen\Common\OperationExtensions.cs (2)
21if (argument.Parameter?.Ordinal == ordinal) 37if (argument.Parameter?.Ordinal == ordinal)
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
src\libraries\System.Runtime.InteropServices\gen\Common\OperationExtensions.cs (2)
21if (argument.Parameter?.Ordinal == ordinal) 37if (argument.Parameter?.Ordinal == ordinal)
System.Text.RegularExpressions.Generator (5)
UpgradeToGeneratedRegexAnalyzer.cs (1)
165string? argumentName = argument.Parameter?.Name;
UpgradeToGeneratedRegexCodeFixer.cs (4)
166.Where(arg => arg.Parameter?.Name is not (UpgradeToGeneratedRegexAnalyzer.OptionsArgumentName or UpgradeToGeneratedRegexAnalyzer.PatternArgumentName)) 257IArgumentOperation? patternArgument = arguments.SingleOrDefault(arg => arg.Parameter?.Name == UpgradeToGeneratedRegexAnalyzer.PatternArgumentName); 268IArgumentOperation? optionsArgument = arguments.SingleOrDefault(arg => arg.Parameter?.Name == UpgradeToGeneratedRegexAnalyzer.OptionsArgumentName); 278IArgumentOperation? argument = arguments.SingleOrDefault(arg => arg.Parameter?.Name == parameterName);