public LanguageServiceCompilerResult Compile(FileName fileName, ITypeScriptOptions options)
		{
			try {
				EmitOutput result = context.Compile(fileName, options);
				var compilerResult = new LanguageServiceCompilerResult(result, fileName);
				if (compilerResult.HasOutputFiles()) {
					WriteOutputFiles(result.outputFiles);
				}
				return compilerResult;
			} catch (Exception ex) {
				return new LanguageServiceCompilerResult(ex);
			}
		}
 public LanguageServiceCompilerResult Compile(FileName fileName, ITypeScriptOptions options)
 {
     try {
         EmitOutput result         = context.Compile(fileName, options);
         var        compilerResult = new LanguageServiceCompilerResult(result, fileName);
         if (compilerResult.HasOutputFiles())
         {
             WriteOutputFiles(result.outputFiles);
         }
         return(compilerResult);
     } catch (Exception ex) {
         return(new LanguageServiceCompilerResult(ex));
     }
 }