Example #1
0
        /// <summary>
        /// Get the parameter Asts from a function definition Ast.
        ///
        /// If not parameters are found, return null.
        /// </summary>
        public static IEnumerable <ParameterAst> GetParameterAsts(
            this FunctionDefinitionAst functionDefinitionAst)
        {
            ParamBlockAst paramBlockAst;

            return(functionDefinitionAst.GetParameterAsts(out paramBlockAst));
        }
 private IEnumerable <ParameterAst> GetMandatoryParameters(FunctionDefinitionAst functionDefinitionAst)
 {
     return(functionDefinitionAst.GetParameterAsts()?.Where(IsParameterMandatory) ??
            Enumerable.Empty <ParameterAst>());
 }