/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | generatedContextualTyping.ts | 25 let b = new Base(), d1 = new Derived1(), d2 = new Derived2(); 29 AssertType(d1, "Derived1"); 36 let x1: () => Base[] = () => [d1, d2]; 38 AssertType(() => [d1, d2], "() => (union)[]"); 39 AssertType([d1, d2], "(union)[]"); 40 AssertType(d1, "Derived1"); 45 AssertType(function() { return [d1, d2] }, "() => (union)[]"); 46 AssertType([d1, d2], "(union)[]"); 47 AssertType(d1, "Derived1"); 49 return [d1, d2] }; [all …]
|
D | genericCallWithConstraintsTypeArgumentInference.ts | 29 let d1: Derived; variable 30 AssertType(d1, "Derived"); 46 let r2 = foo(d1); // Derived 48 AssertType(foo(d1), "Derived"); 50 AssertType(d1, "Derived"); 73 let r3 = foo2b(d1); // Base 75 AssertType(foo2b(d1), "Base"); 77 AssertType(d1, "Derived"); 138 let c = new C(b, d1); 140 AssertType(new C(b, d1), "C<Base, Derived>"); [all …]
|
D | typeGuardOfFormInstanceOfOnInterface.ts | 56 let d1: D1; variable 57 AssertType(d1, "D1"); 80 str = c1Orc2 instanceof d1 && c1Orc2.p1; // C1 81 AssertType(str = c1Orc2 instanceof d1 && c1Orc2.p1, "string"); 83 AssertType(c1Orc2 instanceof d1 && c1Orc2.p1, "string"); 84 AssertType(c1Orc2 instanceof d1, "boolean"); 86 AssertType(d1, "D1"); 89 num = c1Orc2 instanceof d1 && c1Orc2.p3; // D1 90 AssertType(num = c1Orc2 instanceof d1 && c1Orc2.p3, "number"); 92 AssertType(c1Orc2 instanceof d1 && c1Orc2.p3, "number"); [all …]
|
D | derivedTypeDoesNotRequireExtendsClause.ts | 37 let d1: Derived; variable 38 AssertType(d1, "Derived"); 43 b = d1; 44 AssertType(b = d1, "Derived"); 46 AssertType(d1, "Derived"); 53 let r: Base[] = [d1, d2]; 55 AssertType([d1, d2], "(union)[]"); 56 AssertType(d1, "Derived");
|
D | genericCallWithObjectTypeArgsAndConstraints.ts | 50 let d1 = new X<D>(); variable 51 AssertType(d1, "X<D>"); 55 let r = foo(c1, d1); 57 AssertType(foo(c1, d1), "C"); 60 AssertType(d1, "X<D>"); 77 let r = foo2(c1, d1); 79 AssertType(foo2(c1, d1), "C"); 82 AssertType(d1, "X<D>");
|
D | typeResolution.ts | 77 let d1: InterfaceX; d1.XisIn1_1_1(); 78 AssertType(d1, "InterfaceX"); 79 AssertType(d1.XisIn1_1_1(), "any"); 80 AssertType(d1.XisIn1_1_1, "() => any"); 151 let d1: InterfaceX; d1.XisIn1_1_1(); 152 AssertType(d1, "InterfaceX"); 153 AssertType(d1.XisIn1_1_1(), "any"); 154 AssertType(d1.XisIn1_1_1, "() => any"); 186 let d1: InterfaceX; d1.XisIn1_1_1(); 187 AssertType(d1, "InterfaceX"); [all …]
|
D | genericClassWithObjectTypeArgsAndConstraints.ts | 49 let d1 = new X<D>(); variable 51 let r = g.foo(c1, d1); 64 let r = g2.foo2(c1, d1); 74 let d1 = new X<D>(); variable 76 let r = g.foo(c1, d1); 84 let r = g2.foo2(c1, d1);
|
D | unionAndIntersectionInference2.ts | 32 let d1: string | { name: string }; 33 AssertType(d1, "union"); 54 f1(d1); // { name: string 55 AssertType(f1(d1), "{ name: string; }"); 59 AssertType(d1, "union");
|
D | destructuringObjectBindingPatternAndAssignment1ES6.ts | 132 let {"prop1": d1} = foo1(); 133 AssertType(d1, "number"); 137 let {"prop2": d1} = foo1(); 138 AssertType(d1, "number");
|
D | destructuringObjectBindingPatternAndAssignment1ES5.ts | 132 let {"prop1": d1} = foo1(); 133 AssertType(d1, "number"); 137 let {"prop2": d1} = foo1(); 138 AssertType(d1, "number");
|
D | privateNameComputedPropertyName1targetes2022.ts | 120 const d1 = data[this.#d]; constant 121 AssertType(d1, "string"); 134 console.log(a1, b1, c1, d1); 135 AssertType(console.log(a1, b1, c1, d1), "void"); 140 AssertType(d1, "string");
|
D | privateNameComputedPropertyName1targetes2015.ts | 120 const d1 = data[this.#d]; constant 121 AssertType(d1, "string"); 134 console.log(a1, b1, c1, d1); 135 AssertType(console.log(a1, b1, c1, d1), "void"); 140 AssertType(d1, "string");
|
D | privateNameComputedPropertyName1targetesnext.ts | 120 const d1 = data[this.#d]; constant 121 AssertType(d1, "string"); 134 console.log(a1, b1, c1, d1); 135 AssertType(console.log(a1, b1, c1, d1), "void"); 140 AssertType(d1, "string");
|
D | nullishCoalescingOperator1.ts | 70 declare const d1: I | undefined | null constant 71 AssertType(d1, "union"); 158 const dd1 = d1 ?? {b: 1}; 160 AssertType(d1 ?? {b: 1}, "union"); 161 AssertType(d1, "union");
|
D | arrayLiterals2ES6.ts | 160 let d1 = [...temp]; // has type string[] variable 161 AssertType(d1, "string[]");
|
/arkcompiler/ets_runtime/test/moduletest/dateparse/ |
D | dateparse.js | 22 var d1 = new Date("2023-02-19T11:13:48.132Z"); variable 28 print(d1.getTime() == 1676805228132); 29 print(d1.getFullYear() == 2023); 30 print(d1.getMonth() == 1); 31 print(d1.getDate() == 19);
|
/arkcompiler/ets_runtime/test/moduletest/datecase/ |
D | datecase.js | 22 var d1 = new Date(2022, 0, 1); variable 34 print(d1.getFullYear() == 2022); 35 print(d1.getMonth() == 0); 36 print(d1.getDate() == 1);
|
/arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
D | test-function-with-type-assertion.ts | 18 var d1 = new Base(), d2 = new Derived1(); variable 19 var func1 = <() => Base[]>function() { return [d1, d2] };
|
/arkcompiler/ets_runtime/test/aottest/builtins_stub/ |
D | builtins_stub.ts | 41 let d1 = new Date(16455456000); variable 42 print(d1);
|
/arkcompiler/runtime_core/libpandabase/utils/ |
D | utf.cpp | 69 uint8_t d1 = sp[1]; in ConvertMUtf8ToUtf16Pair() local 71 return {((d0 & MASK_5BIT) << DATA_WIDTH) | (d1 & MASK_6BIT), 2}; in ConvertMUtf8ToUtf16Pair() 79 …return {((d0 & MASK_4BIT) << (DATA_WIDTH * CONST_2)) | ((d1 & MASK_6BIT) << DATA_WIDTH) | (d2 & MA… in ConvertMUtf8ToUtf16Pair() 87 …uint32_t code_point = ((d0 & MASK_4BIT) << (DATA_WIDTH * CONST_3)) | ((d1 & MASK_6BIT) << (DATA_WI… in ConvertMUtf8ToUtf16Pair() 98 static constexpr uint32_t CombineTwoU16(uint16_t d0, uint16_t d1) in CombineTwoU16() argument 102 codePoint |= d1 - LO_SURROGATE_MIN; in CombineTwoU16() 107 constexpr MUtf8Char ConvertUtf16ToMUtf8(uint16_t d0, uint16_t d1) in ConvertUtf16ToMUtf8() argument 111 if (d1 == 0 && d0 >= HI_SURROGATE_MIN && d0 <= LO_SURROGATE_MAX) { in ConvertUtf16ToMUtf8() 136 uint32_t codePoint = CombineTwoU16(d0, d1); in ConvertUtf16ToMUtf8()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | utf_helper.cpp | 128 Utf8Char ConvertUtf16ToUtf8(uint16_t d0, uint16_t d1, bool modify, bool isWriteBuffer) in ConvertUtf16ToUtf8() argument 132 if (d1 == 0 && d0 >= utf::HI_SURROGATE_MIN && d0 <= utf::LO_SURROGATE_MAX) { in ConvertUtf16ToUtf8() 164 if (d1 < utf::LO_SURROGATE_MIN || d1 > utf::LO_SURROGATE_MAX) { in ConvertUtf16ToUtf8() 170 uint32_t codePoint = CombineTwoU16(d0, d1); in ConvertUtf16ToUtf8() 250 uint8_t d1 = data[1]; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in ConvertUtf8ToUtf16Pair() local 252 return {((d0 & utf::MASK_5BIT) << utf::DATA_WIDTH) | (d1 & utf::MASK_6BIT), UtfLength::TWO}; in ConvertUtf8ToUtf16Pair() 257 …return {((d0 & utf::MASK_4BIT) << UtfOffset::TWELVE) | ((d1 & utf::MASK_6BIT) << utf::DATA_WIDTH) | in ConvertUtf8ToUtf16Pair() 263 …uint32_t codePoint = ((d0 & utf::MASK_4BIT) << UtfOffset::EIGHTEEN) | ((d1 & utf::MASK_6BIT) << Ut… in ConvertUtf8ToUtf16Pair()
|
D | utf_helper.h | 79 Utf8Char ConvertUtf16ToUtf8(uint16_t d0, uint16_t d1, bool modify, bool isWriteBuffer = false); 95 static inline uint32_t CombineTwoU16(uint16_t d0, uint16_t d1) in CombineTwoU16() argument 99 codePoint |= d1 - utf::LO_SURROGATE_MIN; in CombineTwoU16()
|
/arkcompiler/ets_runtime/test/typeinfer/ldsuperproperty/ |
D | ldsuperproperty.ts | 44 let d1 = super.a1; 45 AssertType(d1, "undefined");
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/aliasUsageInOrExpression/ |
D | aliasUsageInOrExpression_main.ts | 29 let d1 = i || moduleA; variable 30 AssertType(d1, "IHasVisualizationModel");
|
/arkcompiler/ets_frontend/es2panda/test/parser/js/ |
D | test-var-decl.js | 21 var d1, d2, variable
|