/third_party/typescript/tests/baselines/reference/ |
D | errorForwardReferenceForwadingConstructor.types | 2 // Error forward referencing derived class with forwarding constructor 7 var d1 = new derived(); 8 >d1 : derived 9 >new derived() : derived 10 >derived : typeof derived 12 var d2 = new derived(4); 13 >d2 : derived 14 >new derived(4) : derived 15 >derived : typeof derived 23 class derived extends base { } [all …]
|
D | heterogeneousArrayLiterals.js | 26 var derived: Derived; variable 30 var h = [{ foo: base, basear: derived }, { foo: base }]; // {foo: Base}[] 31 var i = [{ foo: base, basear: derived }, { foo: derived }]; // {foo: Derived}[] 33 var j = [() => base, () => derived]; // { {}: Base } 36 var m = [() => base, () => derived, () => null]; // { (): any }[] 37 var n = [[() => base], [() => derived]]; // { (): Base }[] 38 var o = [derived, derived2]; // {}[] 39 var p = [derived, derived2, base]; // Base[] 40 var q = [[() => derived2], [() => derived]]; // {}[] 45 var a: Base[] = [derived, derived2]; [all …]
|
D | heterogeneousArrayLiterals.types | 135 var derived: Derived; 136 >derived : Derived 144 var h = [{ foo: base, basear: derived }, { foo: base }]; // {foo: Base}[] 146 >[{ foo: base, basear: derived }, { foo: base }] : ({ foo: Base; basear: Derived; } | { foo: Base; … 147 >{ foo: base, basear: derived } : { foo: Base; basear: Derived; } 151 >derived : Derived 156 var i = [{ foo: base, basear: derived }, { foo: derived }]; // {foo: Derived}[] 158 >[{ foo: base, basear: derived }, { foo: derived }] : ({ foo: Base; basear: Derived; } | { foo: Der… 159 >{ foo: base, basear: derived } : { foo: Base; basear: Derived; } 163 >derived : Derived [all …]
|
D | errorForwardReferenceForwadingConstructor.symbols | 2 // Error forward referencing derived class with forwarding constructor 7 var d1 = new derived(); 9 >derived : Symbol(derived, Decl(errorForwardReferenceForwadingConstructor.ts, 7, 48)) 11 var d2 = new derived(4); 13 >derived : Symbol(derived, Decl(errorForwardReferenceForwadingConstructor.ts, 7, 48)) 20 class derived extends base { } 21 >derived : Symbol(derived, Decl(errorForwardReferenceForwadingConstructor.ts, 7, 48))
|
D | checkSuperCallBeforeThisAccess.errors.txt | 1 …rror TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. 2 …rror TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. 3 …super' must be called before accessing a property of 'super' in the constructor of a derived class. 4 …rror TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. 5 …rror TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. 6 …super' must be called before accessing a property of 'super' in the constructor of a derived class. 7 …rror TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. 8 …rror TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. 9 …rror TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. 10 …rror TS17009: 'super' must be called before accessing 'this' in the constructor of a derived class. [all …]
|
D | heterogeneousArrayLiterals.symbols | 71 var derived: Derived; 72 >derived : Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) 82 var h = [{ foo: base, basear: derived }, { foo: base }]; // {foo: Base}[] 87 >derived : Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) 91 var i = [{ foo: base, basear: derived }, { foo: derived }]; // {foo: Derived}[] 96 >derived : Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) 98 >derived : Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) 100 var j = [() => base, () => derived]; // { {}: Base } 103 >derived : Symbol(derived, Decl(heterogeneousArrayLiterals.ts, 24, 3)) 113 var m = [() => base, () => derived, () => null]; // { (): any }[] [all …]
|
D | errorForwardReferenceForwadingConstructor.js | 5 var d1 = new derived(); 6 var d2 = new derived(4); 10 class derived extends base { } class 31 var d1 = new derived(); 32 var d2 = new derived(4); 40 var derived = /** @class */ (function (_super) { function 41 __extends(derived, _super); 42 function derived() { function 45 return derived;
|
D | arrayBestCommonTypes.js | 6 class derived extends base { } class 33 … var t1: { x: number; y: base; }[] = [{ x: 7, y: new derived() }, { x: 5, y: new base() }]; 34 … var t2: { x: boolean; y: base; }[] = [{ x: true, y: new derived() }, { x: false, y: new base() }]; 35 …var t3: { x: string; y: base; }[] = [{ x: undefined, y: new base() }, { x: '', y: new derived() }]; 59 class derived extends base { a: string; } 86 … var t1: { x: number; y: base; }[] = [{ x: 7, y: new derived() }, { x: 5, y: new base() }]; 87 … var t2: { x: boolean; y: base; }[] = [{ x: true, y: new derived() }, { x: false, y: new base() }]; 88 …var t3: { x: string; y: base; }[] = [{ x: undefined, y: new base() }, { x: '', y: new derived() }]; 138 var derived = /** @class */ (function (_super) { function 139 __extends(derived, _super); [all …]
|
D | arrayBestCommonTypes.types | 12 class derived extends base { } 13 >derived : derived 230 … var t1: { x: number; y: base; }[] = [{ x: 7, y: new derived() }, { x: 5, y: new base() }]; 234 >[{ x: 7, y: new derived() }, { x: 5, y: new base() }] : { x: number; y: derived; }[] 235 >{ x: 7, y: new derived() } : { x: number; y: derived; } 238 >y : derived 239 >new derived() : derived 240 >derived : typeof derived 248 … var t2: { x: boolean; y: base; }[] = [{ x: true, y: new derived() }, { x: false, y: new base() }]; 252 >[{ x: true, y: new derived() }, { x: false, y: new base() }] : ({ x: true; y: derived; } | { x: fa… [all …]
|
D | superInObjectLiterals_ES6.errors.txt | 1 …ES6.ts(17,9): error TS2660: 'super' can only be referenced in members of derived classes or object… 2 …ES6.ts(20,9): error TS2660: 'super' can only be referenced in members of derived classes or object… 3 …ES6.ts(23,9): error TS2660: 'super' can only be referenced in members of derived classes or object… 4 …S6.ts(49,17): error TS2660: 'super' can only be referenced in members of derived classes or object… 5 …S6.ts(52,17): error TS2660: 'super' can only be referenced in members of derived classes or object… 27 !!! error TS2660: 'super' can only be referenced in members of derived classes or object literal ex… 32 !!! error TS2660: 'super' can only be referenced in members of derived classes or object literal ex… 37 !!! error TS2660: 'super' can only be referenced in members of derived classes or object literal ex… 65 !!! error TS2660: 'super' can only be referenced in members of derived classes or object literal ex… 70 !!! error TS2660: 'super' can only be referenced in members of derived classes or object literal ex…
|
/third_party/boost/libs/conversion/test/ |
D | polymorphic_cast_test.cpp | 73 Derived * derived; in test_polymorphic_cast() local 77 derived = boost::polymorphic_cast<Derived*>( base ); in test_polymorphic_cast() 79 BOOST_TEST( derived != 0 ); in test_polymorphic_cast() 81 if( derived != 0 ) in test_polymorphic_cast() 83 BOOST_TEST_EQ( derived->kind(), "Derived" ); in test_polymorphic_cast() 116 Derived * derived; in test_polymorphic_pointer_cast() local 120 derived = boost::polymorphic_pointer_cast<Derived>( base ); in test_polymorphic_pointer_cast() 122 BOOST_TEST( derived != 0 ); in test_polymorphic_pointer_cast() 124 if( derived != 0 ) in test_polymorphic_pointer_cast() 126 BOOST_TEST_EQ( derived->kind(), "Derived" ); in test_polymorphic_pointer_cast() [all …]
|
D | cast_test.cpp | 57 Derived * derived = polymorphic_downcast<Derived*>( base ); // downcast in main() local 58 BOOST_TEST( derived->kind() == 'D' ); in main() 60 derived = polymorphic_cast<Derived*>( base ); // downcast, throw on error in main() 61 BOOST_TEST( derived->kind() == 'D' ); in main() 71 { derived = polymorphic_downcast<Derived*>( base ); } // #1 assert failure in main() 74 try { derived = polymorphic_cast<Derived*>( base ); } in main() 79 BOOST_TEST( derived->kind() != 'B' ); in main()
|
/third_party/typescript/tests/cases/conformance/types/typeRelationships/bestCommonType/ |
D | heterogeneousArrayLiterals.ts | 25 var derived: Derived; variable 29 var h = [{ foo: base, basear: derived }, { foo: base }]; // {foo: Base}[] 30 var i = [{ foo: base, basear: derived }, { foo: derived }]; // {foo: Derived}[] 32 var j = [() => base, () => derived]; // { {}: Base } 35 var m = [() => base, () => derived, () => null]; // { (): any }[] 36 var n = [[() => base], [() => derived]]; // { (): Base }[] 37 var o = [derived, derived2]; // {}[] 38 var p = [derived, derived2, base]; // Base[] 39 var q = [[() => derived2], [() => derived]]; // {}[] 44 var a: Base[] = [derived, derived2]; [all …]
|
/third_party/boost/libs/hof/test/ |
D | virtual_base.cpp | 22 struct derived : virtual base { struct 23 derived() : base(1) {} in derived() argument 24 derived(const derived&) : base(1) {} in derived() function 28 ~derived(); argument 30 derived::~derived() {} in ~derived() 34 BOOST_HOF_TEST_CHECK(boost::hof::flip(derived())(nullptr, 2) == 2); in BOOST_HOF_TEST_CASE() 35 BOOST_HOF_TEST_CHECK(boost::hof::rotate(derived())(nullptr, 2) == 2); in BOOST_HOF_TEST_CASE() 36 BOOST_HOF_TEST_CHECK((2 | boost::hof::pipable(derived())(nullptr)) == 2); in BOOST_HOF_TEST_CASE()
|
/third_party/boost/boost/stl_interfaces/ |
D | sequence_container_interface.hpp | 143 constexpr Derived & derived() noexcept in derived() function 147 constexpr const Derived & derived() const noexcept in derived() function 164 return derived().begin() == derived().end(); in empty() 174 return derived().begin() == derived().end(); in empty() 184 return std::addressof(*derived().begin()); in data() 194 return std::addressof(*derived().begin()); in data() 206 return derived().end() - derived().begin(); in size() 219 return derived().end() - derived().begin(); in size() 226 return *derived().begin(); in front() 233 return *derived().begin(); in front() [all …]
|
D | view_interface.hpp | 53 constexpr Derived & derived() noexcept in derived() function 57 constexpr const Derived & derived() const noexcept in derived() function 70 return derived().begin() == derived().end(); in empty() 80 return derived().begin() == derived().end(); in empty() 89 return !derived().empty(); in operator bool() 97 return !derived().empty(); in operator bool() 107 return std::addressof(*derived().begin()); in data() 117 return std::addressof(*derived().begin()); in data() 125 return derived().end() - derived().begin(); in size() 135 return derived().end() - derived().begin(); in size() [all …]
|
/third_party/boost/boost/bimap/detail/ |
D | map_view_base.hpp | 124 return derived().base().replace( in replace() 125 derived().template functor<iterator_to_base_>()(position), in replace() 126 derived().template functor<value_to_base_>()(x) in replace() 133 return derived().base().replace( in replace_key() 134 derived().template functor<iterator_to_base_>()(position), in replace_key() 135 derived().template functor<value_to_base_>()( in replace_key() 145 return derived().base().replace( in replace_data() 146 derived().template functor<iterator_to_base_>()(position), in replace_data() 147 derived().template functor<value_to_base_>()( in replace_data() 190 return derived().base().modify_key( in modify_key() [all …]
|
/third_party/boost/boost/spirit/home/classic/core/composite/impl/ |
D | list.ipp | 28 return a.derived() >> *(b.derived() >> a.derived()); 35 return a.derived() >> *(b >> a.derived()); 42 return a >> *(b.derived() >> a); 49 return a.derived() >> *(b >> a.derived()); 57 return a >> *(b.derived() >> a); 64 return a.derived() >> *(b >> a.derived()); 71 return a >> *(b.derived() >> a); 78 return a.derived() >> *(b >> a.derived()); 86 return a >> *(b.derived() >> a);
|
/third_party/boost/libs/smart_ptr/test/ |
D | cpp11_pointer_cast_test.cpp | 61 class derived class 68 : public derived 83 boost::get_pointer(boost::dynamic_pointer_cast<derived>(ptr)) == in check_dynamic_pointer_cast() 85 dynamic_cast<derived*>(boost::get_pointer(ptr)) in check_dynamic_pointer_cast() 102 boost::static_pointer_cast<derived>(ptr))) == in check_static_pointer_cast() 104 static_cast<base2*>(static_cast<derived*>(boost::get_pointer(ptr))); in check_static_pointer_cast() 136 derived* expect1 = dynamic_cast<derived*>(boost::get_pointer(smart1)); in check_dynamic_moving_pointer_cast() 141 boost::get_pointer(boost::dynamic_pointer_cast<derived>( std::move(smart1) )) == expect1 in check_dynamic_moving_pointer_cast() 153 base2 *expect = static_cast<base2*>(static_cast<derived*>(boost::get_pointer(smart))); in check_static_moving_pointer_cast() 159 boost::static_pointer_cast<derived>( std::move(smart) ))) == in check_static_moving_pointer_cast() [all …]
|
/third_party/boost/libs/phoenix/test/bll_compatibility/ |
D | cast_test.cpp | 35 class derived : public base { class 47 derived *p_derived = new derived; in do_test() 51 derived *d = NULL; in do_test() 54 (var(d) = ll_static_cast<derived *>(b))(); in do_test() 59 (var(b) = ll_dynamic_cast<derived *>(b))(); in do_test() 63 (var(d) = ll_dynamic_cast<derived *>(p_base))(); in do_test() 64 BOOST_TEST_EQ(d, static_cast<derived *>(NULL)); in do_test() 68 const derived* p_const_derived = p_derived; in do_test() 71 (var(d) = ll_const_cast<derived *>(p_const_derived))(); in do_test()
|
/third_party/boost/boost/histogram/detail/ |
D | iterator_adaptor.hpp | 66 return operator_arrow_dispatch::apply(this->derived().operator*()); in operator ->() 68 reference operator[](difference_type n) const { return *(this->derived() + n); } in operator []() 72 return this->derived(); in operator ++() 77 return this->derived(); in operator --() 81 Derived tmp(this->derived()); in operator ++() 87 Derived tmp(this->derived()); in operator --() 94 return this->derived(); in operator +=() 99 return this->derived(); in operator -=() 103 Derived tmp(this->derived()); in operator +() 121 return !this->derived().operator==(x); // equal operator may be overridden in derived in operator !=() [all …]
|
/third_party/boost/boost/graph/ |
D | named_graph.hpp | 270 Graph& derived() { return static_cast< Graph& >(*this); } in derived() function in boost::graph::named_graph 271 const Graph& derived() const in derived() function in boost::graph::named_graph 303 extract_name_from_vertex(derived(), extract), in named_graph() 331 const vertex_name_type& vertex_name = extract_name(derived()[vertex]); in removing_vertex() 396 return add_vertex(g.vertex_constructor(name), g.derived()); in add_vertex() 406 return add_edge(add_vertex(u_name, g.derived()), in add_edge() 407 add_vertex(v_name, g.derived()), g.derived()); in add_edge() 417 return add_edge(u, add_vertex(v_name, g.derived()), g.derived()); in add_edge() 427 return add_edge(add_vertex(u_name, g.derived()), v, g.derived()); in add_edge() 437 return add_edge(u, add_vertex(v_name, g.derived()), p, g.derived()); in add_edge() [all …]
|
/third_party/boost/libs/lambda/test/ |
D | cast_test.cpp | 35 class derived : public base { class 47 derived *p_derived = new derived; in do_test() 51 derived *d = 0; in do_test() 54 (var(d) = ll_static_cast<derived *>(b))(); in do_test() 59 (var(b) = ll_dynamic_cast<derived *>(b))(); in do_test() 63 (var(d) = ll_dynamic_cast<derived *>(p_base))(); in do_test() 68 const derived* p_const_derived = p_derived; in do_test() 71 (var(d) = ll_const_cast<derived *>(p_const_derived))(); in do_test()
|
/third_party/jerryscript/tests/jerry/es2015/ |
D | super-assignment.js | 59 var derived = new Derived; variable 62 assert (derived.func() === 5); 63 assert (derived.funcArrow()() === 5); 64 assert (derived.computed() === 10); 65 assert (derived.getter === 6); 66 derived.setter = 7; 71 derived.deleteSuperReference();
|
/third_party/boost/libs/iterator/test/ |
D | iterator_facade.cpp | 163 struct derived : base struct 165 derived(int state) : state(state) { } in derived() argument 166 derived(const derived &d) : state(d.state) { } in derived() argument 167 derived(const base &b) { derived::assign(b); } in derived() function 171 state = boost::polymorphic_cast<const derived *>(&b)->state; in assign() argument 176 return state == boost::polymorphic_cast<const derived *>(&b)->state; in equal() argument 222 derived d(1); in main() 223 boost::readable_iterator_test(abstract_iterator<derived *, base>(&d), derived(1)); in main()
|