public static IEnumerable<CodeInstruction> Transpiler(
IEnumerable<CodeInstruction> instructions, MethodBase original) {
try {
var codes = TranspilerUtils.ToCodeList(instructions);
CheckNodeConnectGroupNone.Patch(codes, original);
CheckNodeConnectGroup.Patch(codes, original);
CheckNetConnectGroupNone.Patch(codes, original);
CheckNetConnectGroup.Patch(codes, original);
Log.Info($"{ReflectionHelpers.ThisMethod} patched {original} successfully!");
return codes;
} catch (Exception e) {
Log.Error(e.ToString());
throw e;
}
}
} // end class