Home
last modified time | relevance | path

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

123

/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))
DjsxChildrenGenericContextualTypes.types14 const Elem = <T,U=never>(p: { prop: T, children: (t: T) => T }) => <div></div>;
15 >Elem : <T, U = never>(p: { prop: T; children: (t: T) => T; }) => JSX.Element
25 Elem({prop: {a: "x"}, children: i => ({a: "z"})});
26 >Elem({prop: {a: "x"}, children: i => ({a: "z"})}) : JSX.Element
27 >Elem : <T, U = never>(p: { prop: T; children: (t: T) => T; }) => JSX.Element
41 const q = <Elem prop={{a: "x"}} children={i => ({a: "z"})} />
43 ><Elem prop={{a: "x"}} children={i => ({a: "z"})} /> : JSX.Element
44 >Elem : <T, U = never>(p: { prop: T; children: (t: T) => T; }) => JSX.Element
57 const qq = <Elem prop={{a: "x"}}>{i => ({a: "z"})}</Elem>
59 ><Elem prop={{a: "x"}}>{i => ({a: "z"})}</Elem> : JSX.Element
[all …]
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" });
DjsxChildrenGenericContextualTypes.errors.txt14 const Elem = <T,U=never>(p: { prop: T, children: (t: T) => T }) => <div></div>;
15 Elem({prop: {a: "x"}, children: i => ({a: "z"})});
16 const q = <Elem prop={{a: "x"}} children={i => ({a: "z"})} />
17 const qq = <Elem prop={{a: "x"}}>{i => ({a: "z"})}</Elem>
DtsxInvokeComponentType.errors.txt8 declare const Elem: ComponentType<{ someKey: string }>;
10 const bad = <Elem />;
15 const good = <Elem someKey="ok" />;
/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/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/typescript/tests/cases/compiler/
DconditionalTypeRelaxingConstraintAssignability.ts12 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
DjsxChildrenGenericContextualTypes.tsx10 const Elem = <T,U=never>(p: { prop: T, children: (t: T) => T }) => <div></div>;
11 Elem({prop: {a: "x"}, children: i => ({a: "z"})});
12 const q = <Elem prop={{a: "x"}} children={i => ({a: "z"})} />
13 const qq = <Elem prop={{a: "x"}}>{i => ({a: "z"})}</Elem>
DtsxInvokeComponentType.tsx7 declare const Elem: ComponentType<{ someKey: string }>;
9 const bad = <Elem />;
11 const good = <Elem someKey="ok" />;
/third_party/flutter/skia/src/xml/
DSkXMLWriter.h42 struct Elem { struct
43 Elem(const char name[], size_t len) in Elem() function
52 void doEnd(Elem* elem); argument
54 Elem* getEnd();
56 SkTDArray<Elem*> fElems;
DSkXMLWriter.cpp58 void SkXMLWriter::doEnd(Elem* elem) { in doEnd()
68 Elem** elem = fElems.push(); in doStart()
69 *elem = new Elem(name, length); in doStart()
73 SkXMLWriter::Elem* SkXMLWriter::getEnd() { in getEnd()
74 Elem* elem; in getEnd()
216 Elem* elem = fElems.top(); in onAddText()
229 Elem* elem = getEnd(); in onEndElement()
285 Elem* elem = this->getEnd(); in onEndElement()
/third_party/skia/src/xml/
DSkXMLWriter.h42 struct Elem { struct
43 Elem(const char name[], size_t len) in Elem() function
52 void doEnd(Elem* elem); argument
54 Elem* getEnd();
56 SkTDArray<Elem*> fElems;
DSkXMLWriter.cpp58 void SkXMLWriter::doEnd(Elem* elem) { in doEnd()
68 Elem** elem = fElems.push(); in doStart()
69 *elem = new Elem(name, length); in doStart()
73 SkXMLWriter::Elem* SkXMLWriter::getEnd() { in getEnd()
74 Elem* elem; in getEnd()
211 Elem* elem = fElems.top(); in onAddText()
224 Elem* elem = getEnd(); in onEndElement()
294 Elem* elem = this->getEnd(); in onEndElement()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DScalarizer.cpp472 for (unsigned Elem = 0; Elem < NumElems; ++Elem) in splitUnary() local
473 Res[Elem] = Split(Builder, Op[Elem], I.getName() + ".i" + Twine(Elem)); in splitUnary()
494 for (unsigned Elem = 0; Elem < NumElems; ++Elem) in splitBinary() local
495 Res[Elem] = Split(Builder, Op0[Elem], Op1[Elem], in splitBinary()
496 I.getName() + ".i" + Twine(Elem)); in splitBinary()
554 for (unsigned Elem = 0; Elem < NumElems; ++Elem) { in splitCall() local
561 ScalarCallOps.push_back(Scattered[J][Elem]); in splitCall()
564 Res[Elem] = Builder.CreateCall(NewIntrin, ScalarCallOps, in splitCall()
565 CI.getName() + ".i" + Twine(Elem)); in splitCall()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DLLVMContextImpl.cpp109 FoldingSetIterator<AttributeImpl> Elem = I++; in ~LLVMContextImpl() local
110 delete &*Elem; in ~LLVMContextImpl()
117 FoldingSetIterator<AttributeListImpl> Elem = I++; in ~LLVMContextImpl() local
118 delete &*Elem; in ~LLVMContextImpl()
124 FoldingSetIterator<AttributeSetNode> Elem = I++; in ~LLVMContextImpl() local
125 delete &*Elem; in ~LLVMContextImpl()
/third_party/rust/crates/bindgen/bindgen-tests/tests/headers/
Dissue-446.hpp3 template <typename Elem>
5 List<Elem> *next;
/third_party/skia/third_party/externals/tint/tools/src/list/
Dlist.go54 if ptr.Kind() != reflect.Ptr || ptr.Elem().Kind() != reflect.Slice {
57 return list{ptr.Elem()}
136 return l.v.Type().Elem()
/third_party/googletest/docs/
Dgmock_cheat_sheet.md59 template <typename Elem>
64 virtual void Push(const Elem& x) = 0;
72 template <typename Elem>
73 class MockStack : public StackInterface<Elem> {
76 MOCK_METHOD(void, Push, (const Elem& x), (override));

123