private string PreProcessScript(string script, IEnumerable <Type> globalEnums, IDictionary <string, object> globals)
        {
            parser.ListDeprecatedWarnings(script, globals.Values).ForEach(eventAggregator.Publish);

            script = parser.PrepareScript(script, globals.Values);
            return(script.ImportTypes(globalEnums, out startingLine));
        }