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)); }
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); }