Home
last modified time | relevance | path

Searched refs:Callable (Results 1 – 25 of 102) sorted by relevance

12345

/third_party/typescript/tests/baselines/reference/
DassignmentCompatability_checking-call-member-off-of-function-interface.types4 interface Callable {
10 var x: Callable;
11 >x : Callable
16 >x : Callable
21 >x : Callable
27 >x : Callable
32 >x : Callable
41 >x : Callable
44 function fn(c: Callable) { }
45 >fn : (c: Callable) => void
[all …]
DassignmentCompatability_checking-call-member-off-of-function-interface.errors.txt1 …f-of-function-interface.ts(10,1): error TS2322: Type 'string' is not assignable to type 'Callable'.
2 …11,1): error TS2741: Property 'call' is missing in type 'string[]' but required in type 'Callable'.
3 …f-of-function-interface.ts(12,1): error TS2322: Type 'number' is not assignable to type 'Callable'.
4 …ce.ts(13,1): error TS2741: Property 'call' is missing in type '{}' but required in type 'Callable'.
5 …s(22,4): error TS2345: Argument of type 'string' is not assignable to parameter of type 'Callable'.
6 …23,4): error TS2345: Argument of type 'string[]' is not assignable to parameter of type 'Callable'.
7 …s(24,4): error TS2345: Argument of type 'number' is not assignable to parameter of type 'Callable'.
8 …ce.ts(25,4): error TS2345: Argument of type '{}' is not assignable to parameter of type 'Callable'.
9 Property 'call' is missing in type '{}' but required in type 'Callable'.
15 interface Callable {
[all …]
DassignmentCompatability_checking-call-member-off-of-function-interface.symbols4 interface Callable {
5 >Callable : Symbol(Callable, Decl(assignmentCompatability_checking-call-member-off-of-function-inte…
8 >call : Symbol(Callable.call, Decl(assignmentCompatability_checking-call-member-off-of-function-int…
12 var x: Callable;
14 >Callable : Symbol(Callable, Decl(assignmentCompatability_checking-call-member-off-of-function-inte…
37 function fn(c: Callable) { }
40 >Callable : Symbol(Callable, Decl(assignmentCompatability_checking-call-member-off-of-function-inte…
DgenericWithCallSignatures1.symbols21 interface Callable<T> {
22 >Callable : Symbol(Callable, Decl(genericWithCallSignatures_0.ts, 0, 0))
33 interface CallableExtention<T> extends Callable<T> { }
36 >Callable : Symbol(Callable, Decl(genericWithCallSignatures_0.ts, 0, 0))
DassignmentCompatability_checking-call-member-off-of-function-interface.js4 interface Callable {
8 var x: Callable;
20 function fn(c: Callable) { } argument
/third_party/boost/boost/poly_collection/detail/
Dfunction_model.hpp52 template<typename Callable>
53 using is_implementation=is_invocable_r<R,Callable&,Args...>;
90 template<typename Callable>
91 using iterator=Callable*;
92 template<typename Callable>
93 using const_iterator=const Callable*;
96 template<typename Callable,typename Allocator>
98 split_segment<function_model,Callable,Allocator>;
116 template<typename Callable>
117 static value_type make_value_type(Callable& x){return value_type{x};} in make_value_type()
Dcallable_wrapper.hpp38 typename Callable,
40 !std::is_same<Callable,callable_wrapper>::value&&
41 is_invocable_r<R,Callable,Args...>::value
44 explicit callable_wrapper(Callable& x)noexcept:pt{info(x)},px{&x}{} in callable_wrapper()
77 template<typename Callable>
78 static table* info(Callable&)noexcept in info() argument
82 auto r=std::ref(*static_cast<Callable*>(p)); in info()
85 typeid(Callable), in info()
87 auto r=std::ref(*static_cast<Callable*>(p)); in info()
Dcallable_wrapper_iterator.hpp70 typename Callable,
72 std::is_constructible<CWrapper,Callable&>::value&&
73 (!std::is_const<CWrapper>::value||std::is_const<Callable>::value)
76 explicit operator Callable*()const noexcept in operator Callable*()
78 return const_cast<Callable*>( in operator Callable*()
79 static_cast<const Callable*>( in operator Callable*()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dstring_constant_test.cc25 struct Callable { struct
32 constexpr auto str = MakeStringConstant(Callable{}); in TEST()
44 constexpr auto str = MakeStringConstant(Callable{}); in TEST()
46 EXPECT_EQ(Callable{}(), T::value); in TEST()
47 EXPECT_EQ(Callable{}(), str()); in TEST()
53 constexpr auto str = MakeStringConstant(Callable{}); in TEST()
56 EXPECT_EQ(Callable{}(), T::value); in TEST()
57 EXPECT_EQ(Callable{}(), str2()); in TEST()
/third_party/skia/third_party/externals/abseil-cpp/absl/base/
Dcall_once.h76 template <typename Callable, typename... Args>
77 void call_once(absl::once_flag& flag, Callable&& fn, Args&&... args);
105 template <typename Callable, typename... Args>
106 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args);
145 template <typename Callable, typename... Args>
148 base_internal::SchedulingMode scheduling_mode, Callable&& fn, in CallOnceImpl()
178 base_internal::invoke(std::forward<Callable>(fn), in CallOnceImpl()
192 template <typename Callable, typename... Args>
193 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args) { in LowLevelCallOnce()
198 std::forward<Callable>(fn), in LowLevelCallOnce()
[all …]
/third_party/abseil-cpp/absl/base/
Dcall_once.h76 template <typename Callable, typename... Args>
77 void call_once(absl::once_flag& flag, Callable&& fn, Args&&... args);
105 template <typename Callable, typename... Args>
106 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args);
145 template <typename Callable, typename... Args>
148 base_internal::SchedulingMode scheduling_mode, Callable&& fn, in CallOnceImpl()
178 base_internal::invoke(std::forward<Callable>(fn), in CallOnceImpl()
199 template <typename Callable, typename... Args>
200 void LowLevelCallOnce(absl::once_flag* flag, Callable&& fn, Args&&... args) { in LowLevelCallOnce()
205 std::forward<Callable>(fn), in LowLevelCallOnce()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DScopeExit.h25 template <typename Callable> class scope_exit {
26 Callable ExitFunction;
56 template <typename Callable>
57 LLVM_NODISCARD detail::scope_exit<typename std::decay<Callable>::type>
58 make_scope_exit(Callable &&F) { in make_scope_exit()
59 return detail::scope_exit<typename std::decay<Callable>::type>( in make_scope_exit()
60 std::forward<Callable>(F)); in make_scope_exit()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DTaskQueue.h40 template <typename Callable> struct Task {
41 using ResultTy = typename std::result_of<Callable()>::type;
42 explicit Task(Callable C, TaskQueue &Parent) in Task()
62 Callable C;
80 template <typename Callable>
81 std::future<typename std::result_of<Callable()>::type> async(Callable &&C) { in async()
86 Task<Callable> T{std::move(C), *this}; in async()
87 using ResultTy = typename std::result_of<Callable()>::type; in async()
/third_party/grpc/src/python/grpcio/grpc/experimental/aio/
D_typing.py16 from typing import (Any, AsyncIterable, Callable, Iterable, Sequence, Tuple,
24 SerializingFunction = Callable[[Any], bytes]
25 DeserializingFunction = Callable[[bytes], Any]
30 DoneCallbackType = Callable[[Any], None]
/third_party/grpc/src/python/grpcio/grpc/aio/
D_typing.py16 from typing import (Any, AsyncIterable, Callable, Iterable, Sequence, Tuple,
24 SerializingFunction = Callable[[Any], bytes]
25 DeserializingFunction = Callable[[bytes], Any]
30 DoneCallbackType = Callable[[Any], None]
/third_party/boost/libs/callable_traits/test/
Dis_invocable.cpp25 template<typename Callable>
26 void operator()(tag<Callable>) const { in operator ()()
30 …CT_ASSERT((std::is_invocable<Callable, Args...>() == boost::callable_traits::is_invocable<Callable in operator ()()
32 …CT_ASSERT((std::is_invocable_v<Callable, Args...> == boost::callable_traits::is_invocable_v<Callab… in operator ()()
35 CT_ASSERT((Expect == boost::callable_traits::is_invocable<Callable, Args...>())); in operator ()()
37 CT_ASSERT((Expect == boost::callable_traits::is_invocable_v<Callable, Args...>)); in operator ()()
44 template<typename Callable, typename... InvokeCases>
47 ignored x {(InvokeCases{}(tag<Callable>{}),0)..., 0}; in run_tests()
Dis_invocable_r.cpp25 template<typename Callable>
26 void operator()(tag<Callable>) const { in operator ()()
30 …CT_ASSERT((std::is_invocable_r<Ret, Callable, Args...>() == boost::callable_traits::is_invocable_r… in operator ()()
32 …CT_ASSERT((std::is_invocable_r_v<Ret, Callable, Args...> == boost::callable_traits::is_invocable_r… in operator ()()
35 CT_ASSERT((Expect == boost::callable_traits::is_invocable_r<Ret, Callable, Args...>())); in operator ()()
37 CT_ASSERT((Expect == boost::callable_traits::is_invocable_r_v<Ret, Callable, Args...>)); in operator ()()
44 template<typename Callable, typename... InvokeCases>
47 ignored x {(InvokeCases{}(tag<Callable>{}),0)..., 0}; in run_tests()
/third_party/typescript/tests/cases/compiler/
DassignmentCompatability_checking-call-member-off-of-function-interface.ts3 interface Callable { interface
7 var x: Callable;
19 function fn(c: Callable) { }
/third_party/python/Lib/test/
Dtest_genericalias.py174 from typing import List, Dict, Callable
208 L5 = list[Callable[[K, V], K]]
209 self.assertEqual(L5.__args__, (Callable[[K, V], K],))
213 from typing import List, Dict, Union, Callable
229 self.assertEqual(list[Callable[[K, V], K]][str, int],
230 list[Callable[[str, int], str]])
323 alias = Callable[[int, str], float]
325 self.assertIs(alias.__origin__, Callable)
343 C1 = Callable[[int, T], T]
344 C2 = Callable[[K, T], V]
[all …]
Dinspect_fodder.py84 class Callable: class
92 custom_method = Callable().as_method_of(42)
93 del Callable
/third_party/boost/boost/xpressive/detail/static/transforms/
Das_quantifier.hpp66 template<typename Grammar, typename Greedy, typename Callable = proto::callable>
67 struct as_simple_quantifier : proto::transform<as_simple_quantifier<Grammar, Greedy, Callable> >
218 template<typename Grammar, typename Greedy, typename Callable = proto::callable>
219 struct as_default_optional : proto::transform<as_default_optional<Grammar, Greedy, Callable> >
250 template<typename Grammar, typename Greedy, typename Callable = proto::callable>
251 struct as_mark_optional : proto::transform<as_mark_optional<Grammar, Greedy, Callable> >
304 template<typename Greedy, typename Callable = proto::callable>
305 struct make_optional_ : proto::transform<make_optional_<Greedy, Callable> >
346 template<typename Greedy, typename Callable = proto::callable>
347 struct as_default_quantifier : proto::transform<as_default_quantifier<Greedy, Callable> >
Das_independent.hpp98 template<typename Grammar, typename Callable = proto::callable>
99 struct as_lookahead : proto::transform<as_lookahead<Grammar, Callable> >
137 template<typename Grammar, typename Callable = proto::callable>
138 struct as_lookbehind : proto::transform<as_lookbehind<Grammar, Callable> >
175 template<typename Grammar, typename Callable = proto::callable>
176 struct as_keeper : proto::transform<as_keeper<Grammar, Callable> >
Das_alternate.hpp64 template<typename Grammar, typename Callable = proto::callable>
65 struct in_alternate_list : proto::transform<in_alternate_list<Grammar, Callable> >
101 template<typename Grammar, typename Callable = proto::callable>
102 struct as_alternate_matcher : proto::transform<as_alternate_matcher<Grammar, Callable> >
/third_party/grpc/src/python/grpcio_tests/tests_aio/unit/
Dserver_interceptor_test.py20 from typing import Any, Awaitable, Callable, Tuple
41 self, continuation: Callable[[grpc.HandlerCallDetails],
52 self, fn: Callable[[
53 Callable[[grpc.HandlerCallDetails],
60 self, continuation: Callable[[grpc.HandlerCallDetails],
68 condition: Callable, argument
72 continuation: Callable[[grpc.HandlerCallDetails],
91 self, continuation: Callable[[grpc.HandlerCallDetails],
103 def wrapper(behavior: Callable[
/third_party/grpc/src/python/grpcio/grpc/
D_simple_stubs.py21 from typing import (Any, AnyStr, Callable, Dict, Iterator, Optional, Sequence,
173 request_serializer: Optional[Callable[[Any], bytes]] = None,
174 response_deserializer: Optional[Callable[[bytes], Any]] = None,
254 request_serializer: Optional[Callable[[Any], bytes]] = None,
255 response_deserializer: Optional[Callable[[bytes], Any]] = None,
334 request_serializer: Optional[Callable[[Any], bytes]] = None,
335 response_deserializer: Optional[Callable[[bytes], Any]] = None,
414 request_serializer: Optional[Callable[[Any], bytes]] = None,
415 response_deserializer: Optional[Callable[[bytes], Any]] = None,

12345