コード例 #1
0
        public static SourceUnit Make(ScriptEngine engine, string text, string path, SourceCodeKind kind)
        {
            var textContent     = new StringTextContentProvider(text);
            var languageContext = HostingHelpers.GetLanguageContext(engine);

            return(new SourceUnit(languageContext, textContent, path, kind));
        }
コード例 #2
0
 public static SourceUnit Make(ScriptEngine engine, string text, string path, SourceCodeKind kind)
 {
     var textContent = new StringTextContentProvider(text);
     var languageContext = HostingHelpers.GetLanguageContext(engine);
     return new SourceUnit(languageContext, textContent, path, kind);
 }