Home
last modified time | relevance | path

Searched refs:callable (Results 1 – 25 of 439) sorted by relevance

12345678910>>...18

/third_party/boost/libs/convert/test/
Dsfinae.cpp26 namespace { namespace callable namespace
56 BOOST_TEST((local::can_call_funop<callable::test1, int (double, std::string)>::value == true)); in test_is_callable()
57 BOOST_TEST((local::can_call_funop<callable::test1, double (int, std::string)>::value == true)); in test_is_callable()
58 BOOST_TEST((local::can_call_funop<callable::test1, void (double, std::string)>::value == true)); in test_is_callable()
59 BOOST_TEST((local::can_call_funop<callable::test1, void (int, std::string)>::value == true)); in test_is_callable()
60 BOOST_TEST((local::can_call_funop<callable::test1, void (int, char const*)>::value == true)); in test_is_callable()
61 BOOST_TEST((local::can_call_funop<callable::test1, int (double, int)>::value == false)); in test_is_callable()
62 BOOST_TEST((local::can_call_funop<callable::test1, int (double)>::value == false)); in test_is_callable()
64 … BOOST_TEST((local::can_call_funop<callable::test2, int (double, std::string)>::value == false)); in test_is_callable()
65 BOOST_TEST((local::can_call_funop<callable::test2, void (double, std::string)>::value == true)); in test_is_callable()
[all …]
/third_party/python/Objects/
Dcall.c33 _Py_CheckFunctionResult(PyThreadState *tstate, PyObject *callable, in _Py_CheckFunctionResult() argument
36 assert((callable != NULL) ^ (where != NULL)); in _Py_CheckFunctionResult()
40 if (callable) in _Py_CheckFunctionResult()
43 callable); in _Py_CheckFunctionResult()
60 if (callable) { in _Py_CheckFunctionResult()
63 "%R returned a result with an error set", callable); in _Py_CheckFunctionResult()
94 _PyObject_FastCallDictTstate(PyThreadState *tstate, PyObject *callable, in _PyObject_FastCallDictTstate() argument
98 assert(callable != NULL); in _PyObject_FastCallDictTstate()
110 vectorcallfunc func = PyVectorcall_Function(callable); in _PyObject_FastCallDictTstate()
113 return _PyObject_MakeTpCall(tstate, callable, args, nargs, kwargs); in _PyObject_FastCallDictTstate()
[all …]
/third_party/node/deps/npm/node_modules/is-callable/
DREADME.md1 # is-callable <sup>[![Version Badge][2]][1]</sup>
13 Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.
18 var isCallable = require('is-callable');
45 [1]: https://npmjs.org/package/is-callable
46 [2]: http://versionbadg.es/ljharb/is-callable.svg
47 [3]: https://travis-ci.org/ljharb/is-callable.svg
48 [4]: https://travis-ci.org/ljharb/is-callable
49 [5]: https://david-dm.org/ljharb/is-callable.svg
50 [6]: https://david-dm.org/ljharb/is-callable
51 [7]: https://david-dm.org/ljharb/is-callable/dev-status.svg
[all …]
/third_party/boost/libs/type_erasure/test/
Dtest_callable.cpp43 callable<void()> in BOOST_AUTO_TEST_CASE()
57 callable<int()> in BOOST_AUTO_TEST_CASE()
70 callable<void(), const _self> in BOOST_AUTO_TEST_CASE()
84 callable<int(), const _self> in BOOST_AUTO_TEST_CASE()
103 callable<void(int)> in BOOST_AUTO_TEST_CASE()
117 callable<int(int)> in BOOST_AUTO_TEST_CASE()
130 callable<void(int), const _self> in BOOST_AUTO_TEST_CASE()
144 callable<int(int), const _self> in BOOST_AUTO_TEST_CASE()
158 callable<void(_a)> in BOOST_AUTO_TEST_CASE()
175 callable<_a(_a)> in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/boost/boost/type_erasure/
Dcallable.hpp38 struct callable;
62 struct callable struct
76 struct callable<R(T...), F> struct
85 struct callable<void(T...), F> struct
94 struct concept_interface<callable<R(T...), F>, Base, F, Enable>
110 return ::boost::type_erasure::call(callable<R(T...), F>(), *this, in operator ()()
116 struct concept_interface<callable<R(T...), const F>, Base, F, Enable>
132 return ::boost::type_erasure::call(callable<R(T...), const F>(), *this, in operator ()()
139 callable<R(T...), F>,
160 return ::boost::type_erasure::call(callable<R(T...), F>(), *this, in operator ()()
[all …]
/third_party/typescript/tests/baselines/reference/
DbetterErrorForAccidentalCall.errors.txt1 …cases/compiler/betterErrorForAccidentalCall.ts(3,1): error TS2349: This expression is not callable.
3 …cases/compiler/betterErrorForAccidentalCall.ts(5,1): error TS2349: This expression is not callable.
5 …cases/compiler/betterErrorForAccidentalCall.ts(7,1): error TS2349: This expression is not callable.
7 …ases/compiler/betterErrorForAccidentalCall.ts(10,1): error TS2349: This expression is not callable.
9 …ases/compiler/betterErrorForAccidentalCall.ts(13,1): error TS2349: This expression is not callable.
18 !!! error TS2349: This expression is not callable.
23 !!! error TS2349: This expression is not callable.
28 !!! error TS2349: This expression is not callable.
35 !!! error TS2349: This expression is not callable.
42 !!! error TS2349: This expression is not callable.
DbetterErrorForUnionCall.errors.txt1 tests/cases/compiler/betterErrorForUnionCall.ts(2,1): error TS2349: This expression is not callable.
2 No constituent of type '{ a: string; } | { b: string; }' is callable.
3 tests/cases/compiler/betterErrorForUnionCall.ts(5,1): error TS2349: This expression is not callable.
4 Not all constituents of type '{ a: string; } | ((a: string) => void)' are callable.
6 tests/cases/compiler/betterErrorForUnionCall.ts(8,1): error TS2349: This expression is not callable.
14 !!! error TS2349: This expression is not callable.
15 !!! error TS2349: No constituent of type '{ a: string; } | { b: string; }' is callable.
20 !!! error TS2349: This expression is not callable.
21 …error TS2349: Not all constituents of type '{ a: string; } | ((a: string) => void)' are callable.
27 !!! error TS2349: This expression is not callable.
DunionOfFunctionAndSignatureIsCallable.types2 function f1(c1: Function, c2: () => object, callable: typeof c1 | typeof c2) {
3 >f1 : (c1: Function, c2: () => object, callable: typeof c1 | typeof c2) => void
6 >callable : Function | (() => object)
20 const c = callable();
22 >callable() : any
23 >callable : Function | (() => object)
DunionOfFunctionAndSignatureIsCallable.symbols2 function f1(c1: Function, c2: () => object, callable: typeof c1 | typeof c2) {
7 >callable : Symbol(callable, Decl(unionOfFunctionAndSignatureIsCallable.ts, 0, 43))
19 const c = callable();
21 >callable : Symbol(callable, Decl(unionOfFunctionAndSignatureIsCallable.ts, 0, 43))
DunionOfFunctionAndSignatureIsCallable.js2 function f1(c1: Function, c2: () => object, callable: typeof c1 | typeof c2) {
5 const c = callable();
16 function f1(c1, c2, callable) {
19 var c = callable();
DcallOnInstance.errors.txt1 tests/cases/compiler/callOnInstance.ts(7,18): error TS2349: This expression is not callable.
3 tests/cases/compiler/callOnInstance.ts(10,1): error TS2349: This expression is not callable.
16 !!! error TS2349: This expression is not callable.
22 !!! error TS2349: This expression is not callable.
DcheckJsFiles_skipDiagnostics.errors.txt1 tests/cases/compiler/a.js(29,1): error TS2349: This expression is not callable.
3 tests/cases/compiler/a.js(35,1): error TS2349: This expression is not callable.
38 !!! error TS2349: This expression is not callable.
47 !!! error TS2349: This expression is not callable.
DobjectTypeWithConstructSignatureAppearsToBeFunctionType.errors.txt1 …ppearsToBeFunctionType.ts(8,18): error TS2348: Value of type 'I' is not callable. Did you mean to …
2 …onType.ts(16,18): error TS2348: Value of type 'new () => number' is not callable. Did you mean to …
15 !!! error TS2348: Value of type 'I' is not callable. Did you mean to include 'new'?
25 !!! error TS2348: Value of type 'new () => number' is not callable. Did you mean to include 'new'?
/third_party/python/Include/cpython/
Dabstract.h42 PyObject *callable,
53 PyObject *callable,
66 PyVectorcall_Function(PyObject *callable) in PyVectorcall_Function() argument
72 assert(callable != NULL); in PyVectorcall_Function()
73 tp = Py_TYPE(callable); in PyVectorcall_Function()
77 assert(PyCallable_Check(callable)); in PyVectorcall_Function()
80 memcpy(&ptr, (char *) callable + offset, sizeof(ptr)); in PyVectorcall_Function()
103 _PyObject_VectorcallTstate(PyThreadState *tstate, PyObject *callable, in _PyObject_VectorcallTstate() argument
113 func = PyVectorcall_Function(callable); in _PyObject_VectorcallTstate()
116 return _PyObject_MakeTpCall(tstate, callable, args, nargs, kwnames); in _PyObject_VectorcallTstate()
[all …]
/third_party/python/Doc/c-api/
Dcall.rst14 Instances of classes that set :c:member:`~PyTypeObject.tp_call` are callable.
17 PyObject *tp_call(PyObject *callable, PyObject *args, PyObject *kwargs);
21 ``callable(*args, **kwargs)`` in Python code.
44 if the callable supports it. However, this is not a hard rule.
49 Moreover, the callable must behave the same
71 .. c:type:: PyObject *(*vectorcallfunc)(PyObject *callable, PyObject *const *args, size_t nargsf, P…
73 - *callable* is the object being called.
103 function as with any other callable.
165 .. c:function:: PyObject* PyVectorcall_Call(PyObject *callable, PyObject *tuple, PyObject *dict)
167 Call *callable*'s :c:type:`vectorcallfunc` with positional and keyword
[all …]
Diterator.rst10 method. The second works with a callable object and a sentinel value, calling
11 the callable for each item in the sequence, and ending the iteration when the
47 .. c:function:: PyObject* PyCallIter_New(PyObject *callable, PyObject *sentinel)
49 Return a new iterator. The first parameter, *callable*, can be any Python
50 callable object that can be called with no parameters; each call to it should
51 return the next item in the iteration. When *callable* returns a value equal to
/third_party/python/Lib/
Dabc.py36 def __init__(self, callable): argument
37 callable.__isabstractmethod__ = True
38 super().__init__(callable)
49 def __init__(self, callable): argument
50 callable.__isabstractmethod__ = True
51 super().__init__(callable)
/third_party/python/Lib/encodings/
D__init__.py126 if not callable(entry[0]) or not callable(entry[1]) or \
127 (entry[2] is not None and not callable(entry[2])) or \
128 (entry[3] is not None and not callable(entry[3])) or \
129 (len(entry) > 4 and entry[4] is not None and not callable(entry[4])) or \
130 (len(entry) > 5 and entry[5] is not None and not callable(entry[5])):
/third_party/boost/libs/context/test/
Dtest_apply.cpp23 struct callable { struct
26 callable() = default; argument
28 callable( int k_) : in callable() argument
90 int fn5( int i, callable && c) { in fn5()
154 callable c( 5); in test5()
169 callable c; in test6()
175 callable c; in test6()
176 int result = ctx::detail::apply( & callable::foo, std::make_tuple( c, 1, 2) ); in test6()
Dtest_invoke.cpp23 struct callable { struct
26 callable() = default; argument
28 callable( int k_) : in callable() function
152 callable c( 5); in test5()
153 int result = ctx::detail::invoke( fn5< callable >, 1, std::move( c) ); in test5()
167 callable c; in test6()
173 callable c; in test6()
174 int result = ctx::detail::invoke( & callable::foo, c, 1, 2); in test6()
/third_party/python/Modules/_ctypes/
Dcallbacks.c20 Py_XDECREF(self->callable); in CThunkObject_dealloc()
32 Py_VISIT(self->callable); in CThunkObject_traverse()
42 Py_CLEAR(self->callable); in CThunkObject_clear()
136 PyObject *callable, in _CallPythonObject() argument
236 result = PyObject_CallObject(callable, arglist); in _CallPythonObject()
239 callable); in _CallPythonObject()
282 callable); in _CallPythonObject()
295 callable); in _CallPythonObject()
317 p->callable, in closure_fcn()
338 p->callable = NULL; in CThunkObject_new()
[all …]
/third_party/boost/libs/thread/test/
Dtest_thread_launching.cpp59 boost::thread callable(func); in BOOST_AUTO_TEST_CASE() local
60 callable.join(); in BOOST_AUTO_TEST_CASE()
82 boost::thread callable(boost::ref(func)); in BOOST_AUTO_TEST_CASE() local
83 callable.join(); in BOOST_AUTO_TEST_CASE()
105 boost::thread callable(func,42); in BOOST_AUTO_TEST_CASE() local
106 callable.join(); in BOOST_AUTO_TEST_CASE()
/third_party/boost/libs/python/doc/reference/
Ddata_members.qbk3 …template_class_modifier_fu `class_<>::def_readwrite`] to produce Python callable objects which wra…
15 [[Effects][Creates a Python callable object which accepts a single argument that can be converted f…
17 [[Returns][An instance of object which holds the new Python callable object.]]
32 [[Effects][Creates a Python callable object which accepts no arguments and returns d or *p, convert…
33 [[Returns][An instance of object which holds the new Python callable object.]]
44 [[Effects][Creates a Python callable object which, when called from Python, expects two arguments w…
45 [[Returns][An instance of object which holds the new Python callable object.]]
60 [[Effects][Creates a Python callable object which accepts one argument, which is converted from Pyt…
61 [[Returns][An instance of object which holds the new Python callable object.]]
/third_party/python/Include/
Dceval.h18 PyObject *callable,
23 #define PyEval_CallObject(callable, arg) \ argument
24 PyEval_CallObjectWithKeywords(callable, arg, (PyObject *)NULL)
27 PyObject *callable, const char *format, ...);
/third_party/python/Include/internal/
Dpycore_call.h13 PyObject *callable,
20 PyObject *callable,
27 PyObject *callable,

12345678910>>...18