internal static IParameter CreateParameter(AST.ParameterDeclarationExpression par, IMethod method, IClass currentClass, ICompilationUnit cu)
        {
            IReturnType      parType = CreateReturnType(par.TypeReference, method, currentClass, cu);
            DefaultParameter p       = new DefaultParameter(par.ParameterName, parType, GetRegion(par.StartLocation, par.EndLocation));

            p.Modifiers = (ParameterModifiers)par.ParamModifier;
            return(p);
        }
 private IParameter CreateParameter(AST.ParameterDeclarationExpression par, IMethod method)
 {
     return(CreateParameter(par, method, GetCurrentClass(), _cu));
 }
 private IParameter CreateParameter(AST.ParameterDeclarationExpression par)
 {
     return(CreateParameter(par, null));
 }