AdaptiveRoads.Patches.Node.ConnectGroup.PopulateGroupData.Transpiler C# (CSharp) Метод

Transpiler() публичный статический Метод

public static Transpiler ( IEnumerable instructions, MethodBase original ) : IEnumerable
instructions IEnumerable
original MethodBase
Результат IEnumerable
        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