Home
last modified time | relevance | path

Searched refs:Elem (Results 1 – 25 of 115) sorted by relevance

12345

/third_party/typescript/tests/baselines/reference/
DconditionalTypeRelaxingConstraintAssignability.types24 export class Elem<
25 >Elem : Elem<C>
37 new Elem(undefined as ElChildren.Void);
38 >new Elem(undefined as ElChildren.Void) : Elem<undefined>
39 >Elem : typeof Elem
44 new Elem('' as ElChildren.Text);
45 >new Elem('' as ElChildren.Text) : Elem<string>
46 >Elem : typeof Elem
51 new Elem('' as ElChildren.Void | ElChildren.Text); // error
52 >new Elem('' as ElChildren.Void | ElChildren.Text) : Elem<string | undefined>
[all …]
DconditionalTypeRelaxingConstraintAssignability.js12 export class Elem< class
21 new Elem(undefined as ElChildren.Void);
22 new Elem('' as ElChildren.Text);
23 new Elem('' as ElChildren.Void | ElChildren.Text); // error
24 new Elem('' as ElChildren); // error
43 exports.Elem = void 0;
44 var Elem = /** @class */ (function () {
45 function Elem(children_) { class in Elem
48 return Elem;
50 exports.Elem = Elem;
[all …]
DjsxChildrenGenericContextualTypes.js9 const Elem = <T,U=never>(p: { prop: T, children: (t: T) => T }) => <div></div>;
10 Elem({prop: {a: "x"}, children: i => ({a: "z"})});
11 const q = <Elem prop={{a: "x"}} children={i => ({a: "z"})} />
12 const qq = <Elem prop={{a: "x"}}>{i => ({a: "z"})}</Elem>
27 var Elem = function (p) { return <div></div>; }; class
28 Elem({ prop: { a: "x" }, children: function (i) { return ({ a: "z" }); } });
29 var q = <Elem prop={{ a: "x" }} children={function (i) { return ({ a: "z" }); }}/>;
30 var qq = <Elem prop={{ a: "x" }}>{function (i) { return ({ a: "z" }); }}</Elem>;
DtsxInvokeComponentType.symbols7 declare const Elem: ComponentType<{ someKey: string }>;
8 >Elem : Symbol(Elem, Decl(tsxInvokeComponentType.tsx, 3, 13))
12 const bad = <Elem />;
14 >Elem : Symbol(Elem, Decl(tsxInvokeComponentType.tsx, 3, 13))
16 const good = <Elem someKey="ok" />;
18 >Elem : Symbol(Elem, Decl(tsxInvokeComponentType.tsx, 3, 13))
DtsxInvokeComponentType.types7 declare const Elem: ComponentType<{ someKey: string }>;
8 >Elem : React.ComponentType<{ someKey: string; }>
11 const bad = <Elem />;
13 ><Elem /> : JSX.Element
14 >Elem : React.ComponentType<{ someKey: string; }>
16 const good = <Elem someKey="ok" />;
18 ><Elem someKey="ok" /> : JSX.Element
19 >Elem : React.ComponentType<{ someKey: string; }>
DconditionalTypeRelaxingConstraintAssignability.symbols34 export class Elem<
35 >Elem : Symbol(Elem, Decl(conditionalTypeRelaxingConstraintAssignability.ts, 8, 83))
44 >children_ : Symbol(Elem.children_, Decl(conditionalTypeRelaxingConstraintAssignability.ts, 13, 14))
52 new Elem(undefined as ElChildren.Void);
53 >Elem : Symbol(Elem, Decl(conditionalTypeRelaxingConstraintAssignability.ts, 8, 83))
58 new Elem('' as ElChildren.Text);
59 >Elem : Symbol(Elem, Decl(conditionalTypeRelaxingConstraintAssignability.ts, 8, 83))
63 new Elem('' as ElChildren.Void | ElChildren.Text); // error
64 >Elem : Symbol(Elem, Decl(conditionalTypeRelaxingConstraintAssignability.ts, 8, 83))
70 new Elem('' as ElChildren); // error
[all …]
DjsxChildrenGenericContextualTypes.symbols24 const Elem = <T,U=never>(p: { prop: T, children: (t: T) => T }) => <div></div>;
25 >Elem : Symbol(Elem, Decl(jsxChildrenGenericContextualTypes.tsx, 7, 5))
38 Elem({prop: {a: "x"}, children: i => ({a: "z"})});
39 >Elem : Symbol(Elem, Decl(jsxChildrenGenericContextualTypes.tsx, 7, 5))
46 const q = <Elem prop={{a: "x"}} children={i => ({a: "z"})} />
48 >Elem : Symbol(Elem, Decl(jsxChildrenGenericContextualTypes.tsx, 7, 5))
55 const qq = <Elem prop={{a: "x"}}>{i => ({a: "z"})}</Elem>
57 >Elem : Symbol(Elem, Decl(jsxChildrenGenericContextualTypes.tsx, 7, 5))
62 >Elem : Symbol(Elem, Decl(jsxChildrenGenericContextualTypes.tsx, 7, 5))
DtsxInvokeComponentType.js5 declare const Elem: ComponentType<{ someKey: string }>;
7 const bad = <Elem />;
9 const good = <Elem someKey="ok" />;
23 var bad = react_1["default"].createElement(Elem, null);
24 var good = react_1["default"].createElement(Elem, { someKey: "ok" });
/third_party/boost/boost/archive/iterators/
Distream_iterator.hpp33 template<class Elem = char>
36 istream_iterator<Elem>,
37 Elem,
39 Elem
45 istream_iterator<Elem>,
46 Elem,
48 Elem
50 typedef typename std::basic_istream<Elem> istream_type;
58 Elem dereference() const { in dereference()
59 return static_cast<Elem>(m_istream->peek()); in dereference()
[all …]
/third_party/boost/boost/archive/
Dbasic_binary_iprimitive.hpp65 template<class Archive, class Elem, class Tr>
73 std::basic_streambuf<Elem, Tr> & m_sb;
87 boost::archive::codecvt_null<Elem> codecvt_null_facet;
88 basic_streambuf_locale_saver<Elem, Tr> locale_saver;
123 std::basic_streambuf<Elem, Tr> & sb,
154 template<class Archive, class Elem, class Tr>
156 basic_binary_iprimitive<Archive, Elem, Tr>::load_binary( in load_binary()
162 static_cast<std::streamsize>(count / sizeof(Elem)) in load_binary()
165 std::streamsize s = static_cast<std::streamsize>(count / sizeof(Elem)); in load_binary()
167 static_cast<Elem *>(address), in load_binary()
[all …]
Dbasic_binary_oprimitive.hpp61 template<class Archive, class Elem, class Tr>
69 std::basic_streambuf<Elem, Tr> & m_sb;
82 boost::archive::codecvt_null<Elem> codecvt_null_facet;
83 basic_streambuf_locale_saver<Elem, Tr> locale_saver;
118 std::basic_streambuf<Elem, Tr> & sb,
150 template<class Archive, class Elem, class Tr>
152 basic_binary_oprimitive<Archive, Elem, Tr>::save_binary( in save_binary()
166 count = ( count + sizeof(Elem) - 1) / sizeof(Elem); in save_binary()
168 static_cast<const Elem *>(address), in save_binary()
Dbinary_iarchive_impl.hpp35 template<class Archive, class Elem, class Tr>
37 public basic_binary_iprimitive<Archive, Elem, Tr>,
66 this->basic_binary_iprimitive<Archive, Elem, Tr>::init(); in init()
69 basic_binary_iprimitive<Archive, Elem, Tr>::init(); in init()
73 std::basic_streambuf<Elem, Tr> & bsb, in binary_iarchive_impl() argument
76 basic_binary_iprimitive<Archive, Elem, Tr>( in binary_iarchive_impl()
83 std::basic_istream<Elem, Tr> & is, in binary_iarchive_impl() argument
86 basic_binary_iprimitive<Archive, Elem, Tr>( in binary_iarchive_impl()
Dbinary_oarchive_impl.hpp36 template<class Archive, class Elem, class Tr>
38 public basic_binary_oprimitive<Archive, Elem, Tr>,
67 this->basic_binary_oprimitive<Archive, Elem, Tr>::init(); in init()
70 basic_binary_oprimitive<Archive, Elem, Tr>::init(); in init()
74 std::basic_streambuf<Elem, Tr> & bsb, in binary_oarchive_impl() argument
77 basic_binary_oprimitive<Archive, Elem, Tr>( in binary_oarchive_impl()
84 std::basic_ostream<Elem, Tr> & os, in binary_oarchive_impl() argument
87 basic_binary_oprimitive<Archive, Elem, Tr>( in binary_oarchive_impl()
/third_party/boost/boost/archive/impl/
Dbasic_binary_oprimitive.ipp39 template<class Archive, class Elem, class Tr>
41 basic_binary_oprimitive<Archive, Elem, Tr>::init()
55 template<class Archive, class Elem, class Tr>
57 basic_binary_oprimitive<Archive, Elem, Tr>::save(const char * s)
64 template<class Archive, class Elem, class Tr>
66 basic_binary_oprimitive<Archive, Elem, Tr>::save(const std::string &s)
75 template<class Archive, class Elem, class Tr>
77 basic_binary_oprimitive<Archive, Elem, Tr>::save(const wchar_t * ws)
86 template<class Archive, class Elem, class Tr>
88 basic_binary_oprimitive<Archive, Elem, Tr>::save(const std::wstring &ws)
[all …]
Dbasic_binary_iprimitive.ipp34 template<class Archive, class Elem, class Tr>
36 basic_binary_iprimitive<Archive, Elem, Tr>::init()
89 template<class Archive, class Elem, class Tr>
91 basic_binary_iprimitive<Archive, Elem, Tr>::load(wchar_t * ws)
101 template<class Archive, class Elem, class Tr>
103 basic_binary_iprimitive<Archive, Elem, Tr>::load(std::string & s)
117 template<class Archive, class Elem, class Tr>
119 basic_binary_iprimitive<Archive, Elem, Tr>::load(char * s)
128 template<class Archive, class Elem, class Tr>
130 basic_binary_iprimitive<Archive, Elem, Tr>::load(std::wstring & ws)
[all …]
/third_party/boost/boost/spirit/home/karma/stream/
Dostream_iterator.hpp25 typename T, typename Elem = char
26 , typename Traits = std::char_traits<Elem> >
35 typedef Elem char_type;
37 typedef std::basic_ostream<Elem, Traits> ostream_type;
38 typedef ostream_iterator<T, Elem, Traits> self_type;
40 ostream_iterator(ostream_type& os_, Elem const* delim_ = 0) in ostream_iterator()
64 Elem const* delim;
/third_party/skia/third_party/externals/abseil-cpp/absl/container/
Dnode_hash_map_test.cc173 auto Elem = [](int key, int value) { in TEST() local
177 EXPECT_THAT(set1, UnorderedElementsAre(Elem(7, -7), Elem(17, -17))); in TEST()
178 EXPECT_THAT(set2, UnorderedElementsAre(Elem(7, -70), Elem(19, -190))); in TEST()
186 UnorderedElementsAre(Elem(7, -7), Elem(17, -17), Elem(19, -190))); in TEST()
187 EXPECT_THAT(set2, UnorderedElementsAre(Elem(7, -70))); in TEST()
193 EXPECT_THAT(set1, UnorderedElementsAre(Elem(17, -17), Elem(19, -190))); in TEST()
201 EXPECT_THAT(*insert_result.position, Elem(7, -70)); in TEST()
202 EXPECT_THAT(set2, UnorderedElementsAre(Elem(7, -70))); in TEST()
208 EXPECT_THAT(set1, UnorderedElementsAre(Elem(19, -190))); in TEST()
216 EXPECT_THAT(*insert_result.position, Elem(17, 23)); in TEST()
[all …]
/third_party/abseil-cpp/absl/container/
Dnode_hash_map_test.cc173 auto Elem = [](int key, int value) { in TEST() local
177 EXPECT_THAT(set1, UnorderedElementsAre(Elem(7, -7), Elem(17, -17))); in TEST()
178 EXPECT_THAT(set2, UnorderedElementsAre(Elem(7, -70), Elem(19, -190))); in TEST()
186 UnorderedElementsAre(Elem(7, -7), Elem(17, -17), Elem(19, -190))); in TEST()
187 EXPECT_THAT(set2, UnorderedElementsAre(Elem(7, -70))); in TEST()
193 EXPECT_THAT(set1, UnorderedElementsAre(Elem(17, -17), Elem(19, -190))); in TEST()
201 EXPECT_THAT(*insert_result.position, Elem(7, -70)); in TEST()
202 EXPECT_THAT(set2, UnorderedElementsAre(Elem(7, -70))); in TEST()
208 EXPECT_THAT(set1, UnorderedElementsAre(Elem(19, -190))); in TEST()
216 EXPECT_THAT(*insert_result.position, Elem(17, 23)); in TEST()
[all …]
/third_party/vk-gl-cts/framework/delibs/decpp/
DdeArrayUtil.hpp33 template <int LastElementIndex, int Size, typename Elem>
34 const Elem& getSizedArrayElement (const Elem (&array)[Size], typename de::meta::EnableIf<int, LastE… in getSizedArrayElement()
41 template <int Size, typename Elem>
42 const Elem& getArrayElement (const Elem (&array)[Size], int offset) in getArrayElement()
/third_party/boost/boost/range/
Distream_range.hpp25 template<class Type, class Elem, class Traits> inline
26 iterator_range<std::istream_iterator<Type, Elem, Traits> >
27 istream_range(std::basic_istream<Elem, Traits>& in) in istream_range() argument
29 return iterator_range<std::istream_iterator<Type, Elem, Traits> >( in istream_range()
30 std::istream_iterator<Type, Elem, Traits>(in), in istream_range()
31 std::istream_iterator<Type, Elem, Traits>()); in istream_range()
/third_party/boost/boost/asio/detail/
Dconsuming_buffers.hpp37 template <typename Elem, std::size_t N>
38 struct prepared_buffers_max<boost::array<Elem, N> >
45 template <typename Elem, std::size_t N>
46 struct prepared_buffers_max<std::array<Elem, N> >
273 template <typename Buffer, typename Elem>
274 class consuming_buffers<Buffer, boost::array<Elem, 2>,
275 typename boost::array<Elem, 2>::const_iterator>
279 explicit consuming_buffers(const boost::array<Elem, 2>& buffers) in consuming_buffers() argument
319 boost::array<Elem, 2> buffers_;
325 template <typename Buffer, typename Elem>
[all …]
/third_party/boost/libs/asio/include/boost/asio/detail/
Dconsuming_buffers.hpp37 template <typename Elem, std::size_t N>
38 struct prepared_buffers_max<boost::array<Elem, N> >
45 template <typename Elem, std::size_t N>
46 struct prepared_buffers_max<std::array<Elem, N> >
273 template <typename Buffer, typename Elem>
274 class consuming_buffers<Buffer, boost::array<Elem, 2>,
275 typename boost::array<Elem, 2>::const_iterator>
279 explicit consuming_buffers(const boost::array<Elem, 2>& buffers) in consuming_buffers() argument
319 boost::array<Elem, 2> buffers_;
325 template <typename Buffer, typename Elem>
[all …]
/third_party/boost/boost/asio/
Dbuffer.hpp1408 template <typename Elem, typename Traits, typename Allocator>
1410 std::basic_string<Elem, Traits, Allocator>& data) BOOST_ASIO_NOEXCEPT in buffer() argument
1413 data.size() * sizeof(Elem) in buffer()
1416 typename std::basic_string<Elem, Traits, Allocator>::iterator in buffer()
1432 template <typename Elem, typename Traits, typename Allocator>
1434 std::basic_string<Elem, Traits, Allocator>& data, in buffer() argument
1438 data.size() * sizeof(Elem) < max_size_in_bytes in buffer()
1439 ? data.size() * sizeof(Elem) : max_size_in_bytes in buffer()
1442 typename std::basic_string<Elem, Traits, Allocator>::iterator in buffer()
1455 template <typename Elem, typename Traits, typename Allocator>
[all …]
/third_party/boost/libs/asio/include/boost/asio/
Dbuffer.hpp1408 template <typename Elem, typename Traits, typename Allocator>
1410 std::basic_string<Elem, Traits, Allocator>& data) BOOST_ASIO_NOEXCEPT in buffer() argument
1413 data.size() * sizeof(Elem) in buffer()
1416 typename std::basic_string<Elem, Traits, Allocator>::iterator in buffer()
1432 template <typename Elem, typename Traits, typename Allocator>
1434 std::basic_string<Elem, Traits, Allocator>& data, in buffer() argument
1438 data.size() * sizeof(Elem) < max_size_in_bytes in buffer()
1439 ? data.size() * sizeof(Elem) : max_size_in_bytes in buffer()
1442 typename std::basic_string<Elem, Traits, Allocator>::iterator in buffer()
1455 template <typename Elem, typename Traits, typename Allocator>
[all …]
/third_party/boost/libs/asio/include/boost/asio/ip/impl/
Dnetwork_v4.hpp29 template <typename Elem, typename Traits>
30 std::basic_ostream<Elem, Traits>& operator<<( in operator <<() argument
31 std::basic_ostream<Elem, Traits>& os, const network_v4& addr) in operator <<()
37 if (os.exceptions() & std::basic_ostream<Elem, Traits>::failbit) in operator <<()
40 os.setstate(std::basic_ostream<Elem, Traits>::failbit); in operator <<()

12345