Example #1
0
 public TypeScriptContext(IScriptLoader scriptLoader, ILogger logger)
 {
     this.scriptLoader = scriptLoader;
     host = new LanguageServiceShimHost(logger);
     host.AddDefaultLibScript(new FileName(scriptLoader.LibScriptFileName), scriptLoader.GetLibScript());
     context.SetParameter("host", host);
     context.Run(scriptLoader.GetTypeScriptServicesScript());
 }
 public TypeScriptContext(IScriptLoader scriptLoader, ILogger logger)
 {
     this.scriptLoader = scriptLoader;
     host = new LanguageServiceShimHost(logger);
     host.AddDefaultLibScript(new FileName(scriptLoader.LibScriptFileName), scriptLoader.GetLibScript());
     context.SetParameter("host", host);
     context.Run(scriptLoader.GetTypeScriptServicesScript());
 }