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