2 implementations of IParameterSymbol_Ordinal
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\ParameterSymbol.cs (1)
75int IParameterSymbol.Ordinal => _underlying.Ordinal;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\ParameterSymbol.vb (1)
360Private ReadOnly Property IParameterSymbol_Ordinal As Integer Implements IParameterSymbol.Ordinal
62 references to IParameterSymbol_Ordinal
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (1)
124if (argument.Parameter?.Ordinal == parameterIndex)
ILLink.RoslynAnalyzer (2)
TrimAnalysis\FlowAnnotations.cs (1)
161 && parameter.Ordinal == parameterMethod.Parameters.Length - 1) {
TrimAnalysis\ParameterProxy.cs (1)
15 Index = (ParameterIndex) parameter.Ordinal + (Method.HasImplicitThis () ? 1 : 0);
Microsoft.AspNetCore.App.Analyzers (5)
RenderTreeBuilder\RenderTreeBuilderAnalyzer.cs (1)
41if (argument.Parameter?.Ordinal == SequenceParameterOrdinal)
RouteHandlers\RouteHandlerAnalyzer.cs (3)
80if (argument.Parameter?.Ordinal == DelegateParameterOrdinal) 178if (argument.Parameter?.Ordinal == 1) 227var builderArgument = operation.Arguments.SingleOrDefault(a => a.Parameter?.Ordinal == 0);
src\Shared\RoslynUtils\SymbolExtensions.cs (1)
226return $"{constructedType}.GetConstructor({getConstructorParameters})?.GetParameters()[{parameterSymbol.Ordinal}]";
Microsoft.AspNetCore.Http.RequestDelegateGenerator (4)
src\Shared\RoslynUtils\SymbolExtensions.cs (1)
226return $"{constructedType}.GetConstructor({getConstructorParameters})?.GetParameters()[{parameterSymbol.Ordinal}]";
StaticRouteHandlerModel\EndpointParameter.cs (2)
23Ordinal = parameter.Ordinal; 32Ordinal = parameter?.Ordinal ?? 0;
StaticRouteHandlerModel\InvocationOperationExtensions.cs (1)
61if (argument.Parameter?.Ordinal == routeHandlerArgumentOrdinal)
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (2)
229if (parameterWithMatchingName.Ordinal >= arguments.Count) 241return arguments[parameterWithMatchingName.Ordinal];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
394symbol = method.GetConstructedReducedFrom()!.Parameters[parameter.Ordinal + 1];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
19visitor.WriteInteger(symbol.Ordinal);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
175var orderedKVPs = properties.OrderBy(kvp => constructor.Parameters.FirstOrDefault(p => p.Name == kvp.Value)?.Ordinal);
Microsoft.CodeAnalysis.CSharp.Features (2)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1151newSymbol = matchingNewContainingMemberOrType.GetParameters()[oldParameter.Ordinal];
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
175var orderedKVPs = properties.OrderBy(kvp => constructor.Parameters.FirstOrDefault(p => p.Name == kvp.Value)?.Ordinal);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\OperatorTests.cs (3)
7670Assert.Equal(0, symbol1.Parameters[0].Ordinal); 8465Assert.Equal(0, symbol1.Parameters[0].Ordinal); 8466Assert.Equal(1, symbol1.Parameters[1].Ordinal);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
5651Assert.Equal(expectedOrdinal, symbol.Ordinal);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
216m.Parameters.All(p => p.RefKind == RefKind.Out && p.Type.Equals(primaryConstructor.Parameters[p.Ordinal].Type, SymbolEqualityComparer.Default)));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Rename\CSharpRenameRewriterLanguageService.cs (1)
825var matchingParameterSymbol = methodSymbol.PartialImplementationPart.Parameters[renamedParameterSymbol.Ordinal];
Microsoft.CodeAnalysis.Features (11)
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (2)
281return param1.Ordinal - param2.Ordinal;
ExtractMethod\MethodExtractor.VariableSymbol.cs (4)
145Contract.ThrowIfFalse(_parameterSymbol.Ordinal != other._parameterSymbol.Ordinal); 146return (_parameterSymbol.Ordinal > other._parameterSymbol.Ordinal) ? 1 : -1;
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
68listOfParametersOrdinals.Add(parameter.Ordinal); 179if (index == parameter.Ordinal)
Shared\Extensions\ISymbolExtensions_2.cs (1)
213if (symbolName == WellKnownMemberNames.DelegateBeginInvokeName && parameter.Ordinal >= (methodSymbol.Parameters.Length - 2))
src\Analyzers\Core\Analyzers\ValidateFormatString\AbstractValidateFormatStringDiagnosticAnalyzer.cs (2)
229if (parameterWithMatchingName.Ordinal >= arguments.Count) 241return arguments[parameterWithMatchingName.Ordinal];
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\ParameterSymbol.vb (1)
360Private ReadOnly Property IParameterSymbol_Ordinal As Integer Implements IParameterSymbol.Ordinal
Microsoft.CodeAnalysis.VisualBasic.Features (1)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
795newSymbol = matchingNewContainingMemberOrType.GetParameters()(DirectCast(oldSymbol, IParameterSymbol).Ordinal)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Rename\VisualBasicRenameRewriterLanguageService.vb (1)
721Dim matchingParameterSymbol = methodSymbol.PartialImplementationPart.Parameters((DirectCast(renamedSymbol, IParameterSymbol)).Ordinal)
Microsoft.CodeAnalysis.Workspaces (15)
Editing\SyntaxGenerator.cs (1)
329isExtension: symbol is { Ordinal: 0, ContainingSymbol: IMethodSymbol { IsExtensionMethod: true } },
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (5)
77parameter.Ordinal < invokeMethod.Parameters.Length) 79symbols.Add(invokeMethod.Parameters[parameter.Ordinal]); 186var ordinal = parameter.Ordinal; 207var ordinal = parameter.Ordinal; 247var ordinal = parameter.Ordinal;
ReassignedVariable\AbstractReassignedVariableService.cs (4)
365var getParameter = property.GetMethod?.Parameters[parameter.Ordinal]; 366var setParameter = property.SetMethod?.Parameters[parameter.Ordinal]; 388var getParameter = property.GetMethod?.Parameters[parameter.Ordinal]; 389var setParameter = property.SetMethod?.Parameters[parameter.Ordinal];
Recommendations\AbstractRecommendationServiceRunner.cs (3)
98if (TryGetExplicitTypeOfLambdaParameter(lambdaSyntax, parameter.Ordinal, out var explicitLambdaParameterType)) 115parameterTypeSymbols = GetTypeSymbols(candidateSymbols, argumentName, ordinalInInvocation, parameter.Ordinal, lambdaParameterCount); 117parameterTypeSymbols = GetTypeSymbols(candidateSymbols, argumentName, ordinalInInvocation, parameter.Ordinal, lambdaParameterCount: -1);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
394symbol = method.GetConstructedReducedFrom()!.Parameters[parameter.Ordinal + 1];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
19visitor.WriteInteger(symbol.Ordinal);
Microsoft.Interop.ComInterfaceGenerator (3)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
247SyntaxNode generatedParameterSyntax = generator.GetParameters(generatedDeclaration)[parameter.Ordinal];
src\libraries\System.Runtime.InteropServices\gen\Common\OperationExtensions.cs (2)
21if (argument.Parameter?.Ordinal == ordinal) 37if (argument.Parameter?.Ordinal == ordinal)
Microsoft.Interop.LibraryImportGenerator (3)
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
247SyntaxNode generatedParameterSyntax = generator.GetParameters(generatedDeclaration)[parameter.Ordinal];
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)