7 overrides of Ordinal
Microsoft.CodeAnalysis.CSharp (7)
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
28public override int Ordinal { get; }
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
488public override int Ordinal
Symbols\SignatureOnlyParameterSymbol.cs (1)
71public override int Ordinal { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\SourceParameterSymbolBase.cs (1)
52public sealed override int Ordinal
Symbols\Source\ThisParameterSymbol.cs (1)
83public sealed override int Ordinal
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
58public override int Ordinal
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
84public override int Ordinal
35 references to Ordinal
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder.ValueChecks.cs (1)
2745parameterName = parameter.Ordinal.ToString();
Binder\Binder_Expressions.cs (2)
3698if (memberAnalysisResult.Kind == MemberResolutionKind.ApplicableInExpandedForm && correspondingParameter.Ordinal == parameters.Length - 1) 4987if (baseParameter.Ordinal == resultMember.ParameterCount - 1)
Binder\Binder_Invocation.cs (5)
1483visitedParameters[parameter.Ordinal] = true; 1485if (expanded && parameter.Ordinal == paramsIndex) 1490GetCorrespondingParameter(i + 1, parameters, argsToParamsOpt, expanded: true)?.Ordinal != paramsIndex); 1543if (!visitedParameters[parameter.Ordinal]) 1555argsToParamsBuilder?.Add(parameter.Ordinal);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
2524if ((parameter1.Ordinal == m1ParamsOrdinal) != (parameter2.Ordinal == m2ParamsOrdinal)) 2557parameter.Ordinal == parameters.Length - 1)
BoundTree\BoundDagTest.cs (1)
70result += $"Item{param.Ordinal + 1}";
CodeGen\EmitExpression.cs (2)
1382int slot = sym.Ordinal; 3565_builder.EmitIntConstant(node.Parameter.Ordinal);
Compiler\MethodCompiler.cs (1)
1234foreach (var (parameter, field) in capturedParameters.OrderBy(pair => pair.Key.Ordinal))
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
654Debug.Assert(parameter.Ordinal == other.Ordinal);
Emitter\Model\ParameterSymbolAdapter.cs (1)
64return (ushort)AdaptedParameterSymbol.Ordinal;
Emitter\Model\ParameterTypeInformation.cs (1)
60return (ushort)_underlyingParameter.Ordinal;
FlowAnalysis\NullableWalker.cs (3)
6947(!compareExchangeInfo.IsDefault && parameter.Ordinal == 0) ? compareExchangeInfo : default); 7804if (expanded && parameter.Ordinal == parametersOpt.Length - 1) 8738unboundLambda.ParameterName(parameterSymbol.Ordinal),
Lowering\ClosureConversion\ClosureConversion.cs (1)
1553_parameterMap.Add(parameter, synthesizedMethod.Parameters[parameter.Ordinal]);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
316MakeStoreLoggerArguments(parameterLogger.Parameters[0], parameter, parameter.Type, _factory.Parameter(parameter), refAssignmentSourceIndex: null, _factory.Literal((ushort)parameter.Ordinal)))));
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
470originalParam.Ordinal,
Symbols\PublicModel\ParameterSymbol.cs (1)
75int IParameterSymbol.Ordinal => _underlying.Ordinal;
Symbols\ReducedExtensionMethodSymbol.cs (3)
624Debug.Assert(underlyingParameter.Ordinal > 0); 635get { return this._underlyingParameter.Ordinal - 1; } 699return Hash.Combine(ContainingSymbol, _underlyingParameter.Ordinal);
Symbols\Source\ParameterHelpers.cs (1)
195ReportParameterErrors(owner, parameterSyntax, parameter.Ordinal, lastParameterIndex: lastIndex, parameter.IsParams, parameter.TypeWithAnnotations,
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4589builder.AddInstanceInitializerForPositionalMembers(new FieldOrPropertyInitializer(property.BackingField, paramList.Parameters[param.Ordinal]));
Symbols\SubstitutedParameterSymbol.cs (1)
121return Roslyn.Utilities.Hash.Combine(ContainingSymbol, _underlyingParameter.Ordinal);
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
120return capturedParameters.OrderBy(static pair => pair.Key.Ordinal).Select(static pair => pair.Value);
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
312oldParam.Ordinal,
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
86get { return _underlyingParameter.Ordinal; }