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]); }
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]); }