コード例 #1
0
        public Variable ToVariable(IdContainer Container, bool Declare = false)
        {
            if (!CheckName(Container.State))
            {
                return(null);
            }

            var Ret = Container.CreateVariable(Name, Type, Modifiers);

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

            if (Declare && !Container.DeclareIdentifier(Ret))
            {
                return(null);
            }

            Ret.InitString = InitString;
            return(Ret);
        }
コード例 #2
0
 public Variable CreateVariable(Identifier Type, CodeString Name)
 {
     return(Container.CreateVariable(Name, Type));
 }