예제 #1
0
        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));
        }
예제 #2
0
 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);
 }