private void LoadParameters()
{
if (TargetDeclaration == null) { return; }
Parameters.Clear();
var procedure = (dynamic)TargetDeclaration.Context;
var argList = (VBAParser.ArgListContext)procedure.argList();
var args = argList.arg();
var index = 0;
Parameters = args.Select(arg => new Parameter(arg.GetText().RemoveExtraSpacesLeavingIndentation(), index++)).ToList();
if (TargetDeclaration.DeclarationType == DeclarationType.PropertyLet ||
TargetDeclaration.DeclarationType == DeclarationType.PropertySet)
{
Parameters.Remove(Parameters.Last());
}
}