Пример #1
0
        /// <inheritdoc cref="FromScriptText(string,string,ICollection{ScriptParseError})"/>
        public static Script FromScriptText(string scriptName, string scriptText)
        {
            var logger = ScriptParseErrorLogger.GetFor(scriptName);
            var script = FromScriptText(scriptName, scriptText, logger);

            ScriptParseErrorLogger.Return(logger);
            return(script);
        }
Пример #2
0
 public static void Return(ScriptParseErrorLogger logger)
 {
     pool.Push(logger);
 }