public void Default(DecompileRule decompiler, bool end) { decompiler.Append(Function.Name + "("); for (int i = 0; i < Values.Length; i++) { Values[i].Decompile(decompiler); if (i < Values.Length - 1) decompiler.Append(", "); } decompiler.Append(")"); // Finished if (end) decompiler.EndAction(); }
public void Decompile(DecompileRule decompiler) { decompiler.AddComment(this); switch (Parallel) { case Parse.CallParallel.NoParallel: decompiler.Append(SubroutineName + "()"); break; case Parse.CallParallel.AlreadyRunning_DoNothing: decompiler.Append("async! " + SubroutineName + "()"); break; case Parse.CallParallel.AlreadyRunning_RestartRule: decompiler.Append("async " + SubroutineName + "()"); break; } decompiler.EndAction(); }
public void Decompile(DecompileRule decompiler) { decompiler.AddComment(this); if (Disabled) { decompiler.Append("// "); } Variable.Decompile(decompiler); if (Index != null) { decompiler.Append("["); Index.Decompile(decompiler); decompiler.Append("]"); } decompiler.Append(" " + Operator + " "); Value.Decompile(decompiler); decompiler.EndAction(); }