コード例 #1
0
        public BuildScript Build(string[] filenames, bool releaseMode = false, bool optimizer = true)
        {
            var key = string.Join("\n", filenames);

            if (scriptsAll.ContainsKey(key) == false)
            {
                return(NeonTestTool.BuildScript(filenames, releaseMode, optimizer));
            }

            return(scriptsAll[key]);
        }
コード例 #2
0
        public BuildScript Build(string filename, bool releaseMode = false, bool optimizer = true)
        {
            var contains = scriptsAll.ContainsKey(filename);

            if (!contains || (contains && scriptsAll[filename].UseOptimizer != optimizer))
            {
                scriptsAll[filename] = NeonTestTool.BuildScript(filename, releaseMode, optimizer);
            }

            return(scriptsAll[filename]);
        }