public static SourceUnit Make(ScriptEngine engine, ITextSnapshot snapshot, string path) { var textContent = new SnapshotTextContentProvider(snapshot); var languageContext = HostingHelpers.GetLanguageContext(engine); return(new SourceUnit(languageContext, textContent, path, SourceCodeKind.File)); }
public static SourceUnit Make(ScriptEngine engine, ITextSnapshot snapshot, string path) { var textContent = new SnapshotTextContentProvider(snapshot); var languageContext = HostingHelpers.GetLanguageContext(engine); return new SourceUnit(languageContext, textContent, path, SourceCodeKind.File); }