| 2084 | } |
| 2085 | |
| 2086 | void FunctionExpression::initialiseObject(const Py::Object *object, const std::vector<Expression*> &arguments, const unsigned long offset) |
| 2087 | { |
| 2088 | if (arguments.size() > offset) { |
| 2089 | Py::Tuple constructorArguments(arguments.size() - offset); |
| 2090 | for (unsigned i = offset; i < arguments.size(); ++i) |
| 2091 | constructorArguments.setItem(i - offset, arguments[i]->getPyValue()); |
| 2092 | Py::Dict kwd; |
| 2093 | PyObjectBase::__PyInit(object->ptr(), constructorArguments.ptr(), kwd.ptr()); |
| 2094 | } |
| 2095 | } |
| 2096 | |
| 2097 | Py::Object FunctionExpression::transformFirstArgument( |
| 2098 | const Expression* expression, |
nothing calls this directly
no test coverage detected