| /arkcompiler/ets_frontend/es2panda/test/parser/js/ |
| D | test-binary-expression.js | 17 a | b 18 a ^ b 19 a & b 20 a == b 21 a != b 22 a === b 23 a !== b 24 a < b 25 a <= b 26 a > b [all …]
|
| D | test-arrow-function.js | 17 (a, b) => a 19 a, b, c => c; 21 a, b, c => a += b = c++; 23 a, b, c => { return c } 25 (a, b, c) => a, b, c; 27 (a, b, c) => a, b, c 29 a, b, c => c, b, a
|
| D | test-member-expression.js | 17 a.b 18 a[b] 19 a.b.c.d 20 a[b][c] 21 a[b && c.d](2) 22 a.b[c].d 23 a[(b)] 24 a["dsfd" || c].b
|
| D | test-logical-expression.js | 17 a || b 18 a && b; 19 a && b || c 20 a || b && c 21 a && b || c && b || d && e 22 a || b && c && d || e; 23 b && a && e
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/ |
| D | varRedeclaration.ts | 20 var b: number; variable 21 var b: number; variable 26 var d: { a: number, b: string }; variable 27 var d: { b: string, a: number }; 29 var e: (a: number, b: (string | number)[]) => void; 30 var e: (a: number, b: (string | number)[]) => void; 32 var f: { a: number, b: string } | { a: number[], b?: string }; variable 33 var f: { a: number, b: string } | { a: number[], b?: string }; variable 37 b: string, property 42 b: string, property [all …]
|
| D | objectLiteralAssignability.ts | 18 var obj2: { a: number, b: string } | { a: number, b: string, c: number } = { a: 5, b: "foo", ...obj… variable 19 obj2 = { a: 2, b: "bar", c: 3 }; 22 var obj4: { a: typeof obj3, b?: { a: number, b?: string } } = { a: {}, b: { a: 5 } }; variable 23 obj4 = { a: {}, b: { a: 5, b: "foo" } }; 26 var obj5: { a: { a: number, b: string }, b: { a: boolean } } = { a: { a: 5, b: "foo" }, b: { a: tru… variable 27 var obj6: { a(a: number, b: string): number, b(): boolean }; variable 28 obj6 = { a: function (a: number, b: string): number { return 12; }, b: function () { return true } … 30 var obj7: {} | { a: number } | { a: string, b: number } | { a: boolean, b: string, c: number }; variable 33 obj7 = { a: "foo", b: 5 }; 34 obj7 = { a: true, b: "foo", c: 5 }; [all …]
|
| D | interfaceAssignment.ts | 19 b: string, property 23 var a: A = { a: 1, b: "foo", c: true }; 25 interface B extends A { interface 26 d(a: number, b: string): number[]; 29 var b: B = { variable 30 a: 2, b: "bar", c: false, d: function (a: number, b: string) { 37 (a: number, b: number): string, 41 (a: number, b: number): string, 42 (a: number, b: number): string, 43 (a: number, b: number): string, [all …]
|
| D | interfacePropertyReferenceContainingInterface.ts | 18 a: B; 19 b: A; property 22 interface B extends A { interface 26 var foo: B; 28 foo.a.b.b.a.c.a; 29 foo.b.b.b.b.b.b.a; 30 foo.c.b.a.c.a.c.a;
|
| D | objectLiteralAssignability19.ts | 17 var a: { a: number, b: { a: number, b: string }, c: { b: boolean, a: null, } }; variable 18 var b: { a: number | string, b: { a: number, b: number }, c: { a: { a: number, b: string }, d: bool… variable 19 a = b;
|
| D | tupleAssignability.ts | 21 var tuple5: [[a: number, b?: string], [boolean | string, number[]]] = [[1], ["foo", [1, 2, 3]]]; variable 25 var tuple8: (boolean | { a: number, b: string })[] | [string, number | string] = [false, { a: 5, b:… 29 var tuple11: [a: number, b: number | string, c: boolean]; variable 30 var tuple12: [a: number, b: string, c: boolean, d?: any]; variable 31 var tuple13: [a?: number, b?: number, c?: number]; variable 40 var tuple14 = [[1, 2], func1(1, "foo"), true] as [a?: [number, number], b?: [a: number, b?: boolean… 47 function func1(a: number, b: string): [a: number, b?: boolean[]] { 55 function func2(a: typeof tuple16, b?: [number, boolean]): [typeof func2, string] { 63 var b: typeof func2 = tuple18[0]; variable 64 b([[1, "foo", "bar"], [], 2]); [all …]
|
| /arkcompiler/runtime_core/irtoc/lang/tests/ |
| D | regmask_test.rb | 37 r2 = Regmap.new({ arm64: {b: 4}, arm32: {b: 5}, x86_64: {b: 6} }) 40 assert_equal(r3, Regmap.new({ arm64: {a: 1, b: 4}, arm32: {a: 2, b: 5}, x86_64: {a: 3, b: 6} })) 44 assert_equal(r5, {a: 3, b: 6, c: 7}) 46 assert_equal(r6, {b: 6}) 57 map = Regmap.from_hash({a: 1, b: 2, c: 3, d: 4, e: 5, f: 6}) 58 mask = RegMask.new(map, :a, :b, :c, :d, :e, :f) 59 m1 = RegMask.new(map[:b], map[:d]) 60 m2 = RegMask.new(map, :b, :d) 64 assert_equal(m4, RegMask.new(map, :a, :b, :c, :d, :e)) 67 assert_equal(RegMask.new(map, :a) + map[:b], RegMask.new(map, :a, :b)) [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
| D | test-func-param.ts | 17 function func1(a: number, b: string) { } 18 function func2(a: boolean = true, ...b: number[]) { } 19 function func3(a = 6, [c, d], b?) { } 20 function func4({ }: number, [a, b]: string[]) { } 21 function func5([a, b]: [number, string] = [1, "foo"]) { } 22 function func6({ a, b }: { a: number, b: number } = { a: 0, b: 0 }) { } 23 declare function func7([a, b]: [number, string]) 24 declare function func8({ a, b }: { a: number, b: number }) 25 declare function func9([a, b]?: [number, string]) 26 declare function func10({ a, b }?: { a: number, b: number }) [all …]
|
| D | test_generic.ts | 17 function func1<Type, A, B extends readonly number[]>(arg: Type): Type { 21 function func2<A extends { a: number, b: string }>() { } 23 function func3<A extends keyof { a: { b: number, c: boolean }, b: [number, string] }>(a: A, b: stri… 34 interface U<A extends readonly [number, number, { a: number, b: string }], Z = boolean> extends R<[… 43 a: function <B, C extends typeof func1>() { }, 44 b: function <D = number, T = string>() { }, 48 class A<T extends B, Z = { a: number, b: string }> { 50 private b<E extends (a: number, b: string) => any[]>() { } 53 class W extends T<<B> () => number, [number | string][]> { 57 class X extends Q<number> implements S<<R>(a:number, b:string) => [number]>, A { [all …]
|
| D | test-type-annotation.ts | 19 var b: string; variable 45 var func1: (a: number, b: string) => number; 46 var func2: (a: number[] | string, b?: 5) => number | string; 47 var func3: (f: (a: number, b: string) => number[], [a, b]: number[]) => (a: number, b: boolean) => … 50 var ctor1: new (a: number, b: string) => number; 51 var ctor2: new (a: number[] | string, b?: 5) => number | string; 52 var ctor3: new (f: (a: number, b: string) => number[], [a, b]: number[]) => (a: number, b: boolean)… 53 var ctor4: abstract new (a: number, b: string) => number; 54 var ctor5: abstract new (a: number[] | string, b?: 5) => number | string; 55 var ctor6: abstract new (f: (a: number, b: string) => number[], [a, b]: number[]) => (a: number, b:…
|
| D | test_module.ts | 20 interface B { interface 21 a: (a: number, b: string) => boolean, 22 b(): number method 29 function b() { } function 32 module a.b.c { 39 module a.b.c { 59 declare var b; variable 65 declare var b; variable 70 var b; variable 74 var b; variable [all …]
|
| /arkcompiler/runtime_core/disassembler/tests/sources/ |
| D | calls.pa | 16 .record B {} 18 .function u8 B.Bhandler_unspec(B a0) { 22 .function u8 B.Bhandler_short(B a0, u1 a1) { 26 .function u8 B.Bhandler_short2(B a0, u1[] a1, i64 a2) { 30 .function u16 B.Bhandler_long(B a0, i8 a1, i16 a2, i32 a3) { 34 .function u16 B.Bhandler_long2(B a0, i8 a1, i16 a2, i32 a3, i64 a4) { 38 .function u16 B.Bhandler_range(B a0, i8 a1, i16 a2, i32 a3, i8 a4, i16 a5, i32 a6) { 87 call.virt B.Bhandler_unspec, v4 89 call.virt B.Bhandler_short, v4, v1 91 call.virt B.Bhandler_short2, v4, v1, v2 [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/js/language/expressions/ |
| D | test-expression1.js | 18 var b=2; variable 19 var c = a < b; 20 var d = a <= b; 21 var e = a > b; 22 var f = a >= b; 24 b = b--; 26 b = -b; 28 b -= b; 30 print(b);
|
| /arkcompiler/ets_frontend/es2panda/test/ |
| D | test262skiplist-compiler-arm64.txt | 45 built-ins/Array/prototype/reduce/15.4.4.21-8-b-2.js 46 built-ins/Array/prototype/reduce/15.4.4.21-8-b-3.js 47 built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-1.js 48 built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-10.js 49 built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-11.js 50 built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-12.js 51 built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-13.js 52 built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-14.js 53 built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-15.js 54 built-ins/Array/prototype/reduce/15.4.4.21-8-b-iii-1-16.js [all …]
|
| /arkcompiler/ets_runtime/test/typeinfer/superclass/ |
| D | superclass.ts | 19 foo():B { 20 let v = new B(); 21 AssertType(v, "B"); 26 class B extends A {} class 29 let b = a.foo(); variable 30 let c = new B(); 34 AssertType(b, "B"); 35 AssertType(c, "B"); 36 AssertType(d, "B");
|
| /arkcompiler/toolchain/tooling/test/testcases/js/ |
| D | step.js | 84 var b = 1; variable 85 b = 2; 86 b = 3; 87 b = 4; 89 b = 5; 90 b = 6; 91 b = 7; 92 b = 8; 93 b = 9; 94 b = 10; [all …]
|
| /arkcompiler/ets_runtime/test/aottest/aot_compatibility_test/builtins_api/ |
| D | builtins_api.ts | 20 b:string; 22 print("this.hasOwnProperty:", this.hasOwnProperty("b")); 24 print("Object.getOwnPropertyDescriptor:", Object.getOwnPropertyDescriptor(this,"b")); 26 print("Reflect.has:", Reflect.has(this, "b")); 28 print("Reflect.get:", Reflect.get(this, "b")); 29 … print("Reflect.getOwnPropertyDescriptor():", Reflect.getOwnPropertyDescriptor(this, "b")); 30 this.b = "abc"; 31 print("this.hasOwnProperty:", this.hasOwnProperty("b")); 33 print("Object.getOwnPropertyDescriptor:", Object.getOwnPropertyDescriptor(this,"b")); 35 print("Reflect.has:", Reflect.has(this, "b")); [all …]
|
| /arkcompiler/ets_frontend/testTs/ |
| D | test-case.patch | 713 diff --git a/tests/cases/conformance/ambient/ambientDeclarations.ts b/tests/cases/conformance/ambie… 716 +++ b/tests/cases/conformance/ambient/ambientDeclarations.ts 723 …formance/ambient/ambientDeclarationsPatterns/ambientDeclarationsPatterns.ts b/tests/cases/conforma… 727 +++ b/tests/cases/conformance/ambient/ambientDeclarationsPatterns/ambientDeclarationsPatterns.ts 741 diff --git a/tests/cases/conformance/ambient/ambientDeclarationsPatterns/declarations.d.ts b/tests/… 745 +++ b/tests/cases/conformance/ambient/ambientDeclarationsPatterns/declarations.d.ts 765 diff --git a/tests/cases/conformance/ambient/ambientInsideNonAmbient.ts b/tests/cases/conformance/a… 768 +++ b/tests/cases/conformance/ambient/ambientInsideNonAmbient.ts 784 diff --git a/tests/cases/conformance/ambient/ambientInsideNonAmbientExternalModule.ts b/tests/cases… 787 +++ b/tests/cases/conformance/ambient/ambientInsideNonAmbientExternalModule.ts [all …]
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/js/language/literals/ |
| D | special-character.js | 4 let b = "test"; 5 print(`${b}\n`); 6 print(`${b}\t`); 7 print(`${b}\'`); 8 print(`${b}\"`); 9 print(`${b}\?`); 10 print(`${b}\0`);
|
| /arkcompiler/ets_frontend/es2panda/util/ |
| D | enumbitops.h | 36 inline T operator|(T a, T b) \ 40 return static_cast<T>(static_cast<utype>(a) | static_cast<utype>(b)); \ 43 inline std::underlying_type_t<T> operator&(T a, T b) \ 47 return static_cast<utype>(static_cast<utype>(a) & static_cast<utype>(b)); \ 50 inline T operator^(T a, T b) \ 54 return static_cast<T>(static_cast<utype>(a) ^ static_cast<utype>(b)); \ 57 inline T &operator|=(T &a, T b) \ 60 return a = a | b; \ 63 inline T &operator&=(T &a, T b) \ 67 return a = static_cast<T>(static_cast<utype>(a) & static_cast<utype>(b)); \ [all …]
|
| /arkcompiler/ets_runtime/test/aottest/framestatesphi/ |
| D | framestatesphi.ts | 17 class B { 30 let b = new B() variable 31 print(b.choice) 32 b.f(true); 33 print(b.choice) 34 b.f(false); 35 print(b.choice)
|