public static void ExportClass(JsBackend backend, DataType dt) { var filename = backend.GetExportName(dt, Path.DirectorySeparatorChar) + ".js"; backend.SourceFiles.Add(filename); using (var w = new JsWriter(backend, Path.Combine(backend.SourceDirectory, filename.UnixToNative()))) w.WriteClass(dt); }
public JsObfuscator(JsBackend backend) : base(backend) { Backend = backend; Generator = new IdentifierGenerator(backend); }
public JsWriter(JsBackend backend, StringBuilder sb, Function context) : base(backend, sb, context) { Backend = backend; HasFloatSuffix = false; }
public JsWriter(JsBackend backend, string filename) : base(backend, filename) { Backend = backend; HasFloatSuffix = false; }
public JsDecompiler(JsBackend backend) : base(false) { Backend = backend; }