示例#1
0
        public bool DeclareVariables(CodeString Str, List <Modifier> Mods = null,
                                     VarDeclConvMode Mode = VarDeclConvMode.Nothing, GetIdMode IdMode = GetIdMode.Everywhere)
        {
            var List = VarDeclarationList.Create(this, Str, Mods);

            if (List == null)
            {
                return(false);
            }

            return(DeclareVariables(List, Mode, IdMode));
        }
示例#2
0
        public FunctionParameter[] GetParameters(IdContainer Container, CodeString Parameters)
        {
            var DeclList = VarDeclarationList.Create(Container, Parameters);

            if (DeclList == null)
            {
                return(null);
            }

            var RetValue = DeclList.ToFuncParams(new PluginForGlobals(Container), Mode: VarDeclConvMode.Normal);

            if (RetValue == null || RetValue.Contains(null))
            {
                return(null);
            }
            return(RetValue);
        }