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); }
public Variable CreateVariable(Identifier Type, CodeString Name) { return(Container.CreateVariable(Name, Type)); }