Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public static void Return(ScriptParseErrorLogger logger)
 {
     pool.Push(logger);
 }