private void GetAdapters(ArgumentValues /*!*/ ai, DynamicMetaObjectBinder /*!*/ call, Expression /*!*/ codeContext, out NewAdapter /*!*/ newAdapter, out InitAdapter /*!*/ initAdapter) { PythonTypeSlot newInst, init; Value.TryResolveSlot(PythonContext.GetPythonContext(call).SharedContext, "__new__", out newInst); Value.TryResolveSlot(PythonContext.GetPythonContext(call).SharedContext, "__init__", out init); // these are never null because we always resolve to __new__ or __init__ somewhere. Assert.NotNull(newInst, init); newAdapter = GetNewAdapter(ai, newInst, call, codeContext); initAdapter = GetInitAdapter(ai, init, call, codeContext); }
private void GetAdapters(ArgumentValues/*!*/ ai, DynamicMetaObjectBinder/*!*/ call, Expression/*!*/ codeContext, out NewAdapter/*!*/ newAdapter, out InitAdapter/*!*/ initAdapter) { PythonTypeSlot newInst, init; Value.TryResolveSlot(PythonContext.GetPythonContext(call).SharedContext, "__new__", out newInst); Value.TryResolveSlot(PythonContext.GetPythonContext(call).SharedContext, "__init__", out init); // these are never null because we always resolve to __new__ or __init__ somewhere. Assert.NotNull(newInst, init); newAdapter = GetNewAdapter(ai, newInst, call, codeContext); initAdapter = GetInitAdapter(ai, init, call, codeContext); }