Exemplo n.º 1
0
 public EMEVD Pack(string code, string documentName = null)
 {
     FancyJSCompiler.CompileOutput output = new FancyJSCompiler(options).Compile(code, docs);
     try
     {
         return(scripter.Pack(output.Code, documentName));
     }
     catch (JSScriptException ex)
     {
         output.RewriteStackFrames(ex, documentName);
         throw ex;
     }
 }
Exemplo n.º 2
0
 public FancyJSCompiler.CompileOutput RepackFull(string code)
 {
     FancyJSCompiler.CompileOutput output = new FancyJSCompiler(options).Compile(code, docs, true);
     return(output);
 }
Exemplo n.º 3
0
 public List <FancyJSCompiler.DiffSegment> PreviewPack(string code)
 {
     FancyJSCompiler.CompileOutput output = new FancyJSCompiler(options).Compile(code, docs, printFancyEnums: true);
     return(output.GetDiffSegments());
 }