14 references to ExistingParameter
Microsoft.CodeAnalysis.Features (14)
ChangeSignature\AbstractChangeSignatureService.cs (2)
697if (newParam is ExistingParameter existingParameter) 699var pos = originalParameters.IndexOf(p => p is ExistingParameter ep && ep.Symbol.Equals(existingParameter.Symbol));
ChangeSignature\ParameterConfiguration.cs (10)
12ExistingParameter? thisParameter, 15ExistingParameter? paramsParameter, 18public readonly ExistingParameter? ThisParameter = thisParameter; 21public readonly ExistingParameter? ParamsParameter = paramsParameter; 27ExistingParameter? thisParameter = null; 30ExistingParameter? paramsParameter = null; 35thisParameter = (ExistingParameter)parametersList[0]; 39if ((parametersList.LastOrDefault() as ExistingParameter)?.Symbol.IsParams == true) 42paramsParameter = (ExistingParameter)parametersList[^1]; 61=> Create(ToListOfParameters().OfType<ExistingParameter>().ToImmutableArray<Parameter>(), ThisParameter != null, selectedIndex: 0);
ChangeSignature\SignatureChange.cs (2)
34if (parameter is ExistingParameter existingParameter) 36var updatedIndex = updatedParameterList.IndexOf(p => p is ExistingParameter ep && ep.Symbol.Equals(existingParameter.Symbol));