Пример #1
0
        string PreProcessScript(string script, IEnumerable <IPlugin> plugins, IDictionary <string, object> globals)
        {
            script = parser.PrepareScript(script, globals.Values);
            var namespaces = plugins.Select(x => x.GetType()).Select(x => x.Namespace).ToArray();

            return(script.ImportNamespaces(namespaces));
        }
        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));
        }
Пример #3
0
 private string PreProcessScript(string script, IEnumerable <Type> globalEnums, IDictionary <string, object> globals)
 {
     script = parser.PrepareScript(script, globals.Values);
     return(script.ImportTypes(globalEnums, out startingLine));
 }