public override bool BuildPackageContext(PackagesContext packages)
 {
     try
     {
         packages.Import(this.Packagename.Symbol.GetPackageName());
     }
     catch (Exception e)
     {
         throw new SyntaxException(e.Message, this.Import.Line, this.Import.Column);
     }
     return(true);
 }
        public override bool BuildPackageContext(PackagesContext packages)
        {
            try
            {
                packages.Import(packages.Class.PackageName);
            }
            catch (Exception e)
            {
                throw new SyntaxException(e.Message, this.Packagedec.Line, this.Packagedec.Column);
            }

            var importDecs = this.Importlist.Symbol.GetImportDecs(new List <Token <Import_dec_basisproduction> >());

            foreach (var importDec in importDecs)
            {
                importDec.Symbol.BuildPackageContext(packages);
            }
            return(true);
        }