public static void AddContextAndParameters(this MethodInvoke owner) { // context owner.AddCode(Compiler.CONTEXT_NAME); // parameters using (var method = owner.AddMethodInvoke("new Parameters", null)) { method.AddCode(method.ParameterName); method.AddDefaultParameters(); } }