// ======================================================================
        // NAMESPACE UTILITIES
        // ----------------------------------------------------------------------
        public static string GetCodeGenerationFolder(iCS_IStorage iStorage)
        {
            var project = PackageController.GetProjectFor(iStorage);

            if (project == null)
            {
                return(null);
            }
            if (iStorage.IsEditorScript)
            {
                return(project.GetEditorGeneratedCodeFolder(true));
            }
            return(project.GetEngineGeneratedCodeFolder(true));
        }
        // ======================================================================
        // NAMESPACE UTILITIES
        // ----------------------------------------------------------------------
        /// Get namespace used for code generation.
        ///
        /// @param iStorage The visual script storage.
        /// @return The namespace.
        ///
        public static string GetNamespace(iCS_IStorage iStorage)
        {
            var project = PackageController.GetProjectFor(iStorage);

            if (project == null)
            {
                return(null);
            }
            if (iStorage.IsEditorScript)
            {
                return(project.EditorNamespace);
            }
            return(project.EngineNamespace);
        }