/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
D | CastReference.ets | 32 final class B extends A { 34 this.name_ = c'B'; 38 return c'B'; 43 let B_ = new B(); 44 assert B_.name() == c'B'; 45 assert B_.b() == c'B'; 48 assert B_A.name() == c'B'; 51 let A_B = B_A as B; 52 assert B_.name() == c'B'; 53 assert B_.b() == c'B'; [all …]
|
D | ClassMemberAccess.ets | 33 class B extends A { 34 static static_name: char = c'B'; 35 name: char = c'B'; 38 return B.static_name; 50 final class C extends B { 78 let b = new B(); 79 assert B.static_name == c'B'; 80 assert B.get_static_name() == c'B'; 81 assert b.name == c'B'; 82 assert b.get_name() == c'B'; [all …]
|
D | mostSpecificMethod.ets | 17 class B extends A {} 28 public Baz(x: A, y: B) : String { 29 return "KlassA::Baz(A, B)"; 32 public final Baz(x: B, y: B) : String { 33 return "KlassA::Baz(B, B)"; 46 public override Baz(x: A, y: B) : String { 47 return "KlassB::Baz(A, B)"; 66 function Foo(x: A, y: B) : String { return "GLOBAL::Foo(A, B)"; } 67 function Foo(x: B, y: B) : String { return "GLOBAL::Foo(B, B)"; } 100 let objB : B = new B(); [all …]
|
D | conditionalExpressionGenericLUB.ets | 18 class B extends A {} 20 class C extends B {} 24 class F extends B {} 42 function foo(p: GenA<B>): int { 50 function foo(p: GenB<B>): int { 66 function foo(p: GenC<B, B>): int { 80 let test_a : GenB<B> = a; 82 assert (foo(a) == foo(new GenB<B>)); 85 let test_b : GenB<in B> = b; 88 // foo(b) would call signature 'foo(p: GenB<in B>)', [all …]
|
D | class-abstract-inheritance.ets | 20 abstract class B extends A { 30 class BB extends B {} 32 abstract class C extends B { 47 let b: B = new BB(); 57 assert((b as B).str == "A") 59 assert((b as B).get_str() == "A") 60 assert((b as B).get_super_str() == "A") 63 assert((c as B).str == "A") 68 assert((c as B).get_str() == "C") 69 assert((c as B).get_super_str() == "A")
|
/arkcompiler/ets_frontend/ets2panda/test/compiler/ets/ |
D | generic_function_call_4.ets | 17 class B<T> {} 19 function test2<T>(): B<T> { 20 let tmp: B<T> = new B<T>(); 24 function test3<T>(): B<B<T>> { 25 let tmp: B<B<T>> = new B<B<T>>(); 30 let bClass: B<A> = test2<A>(); 31 let bClass2: B<B<A>> = test3<A>();
|
D | n_assignGenericWithNullableTypeParamToNonNullable.ets | 17 class B {} 20 let abn : A<B | null> = new A<B>(); // should work: non nullable B is the subtype of nullable B 21 …let ab : A<B> = abn; // should not work: nullable B (the type of abn) is not the subtype of non nu…
|
D | union_types_5.ets | 19 class B { 26 function foo(x: B|C) { 27 if (x instanceof B) { 32 assert false: "Error! x must be instanceof B|C"; 36 function bar(x: A<B|C>) { 37 if (x.union0 instanceof B) { 42 assert false: "Error! x.union0 must be instanceof B|C"; 47 let a: A<B|C> = new A<B|C>(); 48 a.union0 = new B();
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/ |
D | aarch64_fp_simd_regs.def | 26 FP_SIMD_REG(0 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false) 27 FP_SIMD_REG(1 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false) 28 FP_SIMD_REG(2 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false) 29 FP_SIMD_REG(3 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false) 30 FP_SIMD_REG(4 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false) 31 FP_SIMD_REG(5 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false) 32 FP_SIMD_REG(6 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false) 33 FP_SIMD_REG(7 , "V", "B", "H", "S", "D", "Q", true, false, true, false, false) 34 FP_SIMD_REG(8 , "V", "B", "H", "S", "D", "Q", true, true, false, false, false) 35 FP_SIMD_REG(9 , "V", "B", "H", "S", "D", "Q", true, true, false, false, false) [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_runtime/test/typeinfer/es2abc_feature/namespace_multiple/ |
D | namespace_multiple.ts | 24 namespace B { namespace 29 AssertType(A.a + B.c, "int"); 31 AssertType(A.a + B.d, "string"); 32 AssertType(A.b + B.c, "string"); 33 AssertType(A.b + B.d, "string"); 34 AssertType(B.c + B.d, "string");
|
/arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
D | test-intersection.ts | 18 type B = string; alias 24 type Type1 = (A | & B) & (& C | D); 25 type Type2 = A & (| C | D) | B & (C | D) 26 type Type3 = A & C | A & D | B & C | B & D; 27 type Type4 = A & (B & C) & D; 28 type Type5 = (A | (B & C) & D) & E | F;
|
D | test_generic.ts | 17 function func1<Type, A, B extends readonly number[]>(arg: Type): Type { 43 a: function <B, C extends typeof func1>() { }, 48 class A<T extends B, Z = { a: number, b: string }> { 53 class W extends T<<B> () => number, [number | string][]> { 61 var a: new <A>() => <B>() => string; 64 var c: B.T<A<C<number>>>[0]; 68 type E<R extends B, C, T = number> = number | T | string; 73 <A extends B>():number => true;
|
/arkcompiler/ets_frontend/ets2panda/test/parser/ts/ |
D | test-intersection.ts | 18 type B = string; alias 24 type Type1 = (A | & B) & (& C | D); 25 type Type2 = A & (| C | D) | B & (C | D) 26 type Type3 = A & C | A & D | B & C | B & D; 27 type Type4 = A & (B & C) & D; 28 type Type5 = (A | (B & C) & D) & E | F;
|
D | test_generic.ts | 17 function func1<Type, A, B extends readonly number[]>(arg: Type): Type { 43 a: function <B, C extends typeof func1>() { }, 48 class A<T extends B, Z = { a: number, b: string }> { 53 class W extends T<<B> () => number, [number | string][]> { 61 var a: new <A>() => <B>() => string; 64 var c: B.T<A<C<number>>>[0]; 68 type E<R extends B, C, T = number> = number | T | string; 73 <A extends B>():number => true;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/ |
D | x64_fp_simd_regs.def | 26 FP_SIMD_REG(0 , "B", "H", "S", "D", "Q", true, false, true, false, false) 27 FP_SIMD_REG(1 , "B", "H", "S", "D", "Q", true, false, true, false, false) 28 FP_SIMD_REG(2 , "B", "H", "S", "D", "Q", true, false, true, false, false) 29 FP_SIMD_REG(3 , "B", "H", "S", "D", "Q", true, false, true, false, false) 30 FP_SIMD_REG(4 , "B", "H", "S", "D", "Q", true, false, true, false, false) 31 FP_SIMD_REG(5 , "B", "H", "S", "D", "Q", true, false, true, false, false) 32 FP_SIMD_REG(6 , "B", "H", "S", "D", "Q", true, false, true, false, false) 33 FP_SIMD_REG(7 , "B", "H", "S", "D", "Q", true, false, true, false, false) 34 FP_SIMD_REG(8 , "B", "H", "S", "D", "Q", true, false, false, true, false) 35 FP_SIMD_REG(9 , "B", "H", "S", "D", "Q", true, false, false, true, false) [all …]
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/unions/ |
D | union_param_11_01.ets | 24 class B extends A {} 26 function callB(b: B, text: string) { 27 assert b instanceof B : text 30 function callA(a: B | string, name?: string) { 31 if (a instanceof B){ 32 callB(a as B, name ?? "") 37 callA(new B()) 38 let a: B | string = new B()
|
D | union_param_11_02.ets | 24 class B extends A {} 26 type Margin = B | string 28 function callB(b: B, text: string) { 29 assert b instanceof B : text 33 if (a instanceof B){ 34 callB(a as B, name ?? "") 39 callA(new B()) 40 let a: Margin = new B() 41 callA(a, "b is not instance of B")
|
D | union_param_08.ets | 23 class B extends A {} 25 type Margin = B | string 27 function callB(b: B) { 28 assert b instanceof B 32 if (a instanceof B){ 33 callB(a as B) 38 callA(new B()) 39 let a: Margin = new B()
|
D | union_param_11_03.ets | 24 class B extends A {} 26 type Margin = B | string 28 function callB(b: B, text: string) { 29 assert b instanceof B : text 33 if (a instanceof B){ 34 callB(a as B, name ?? "") 39 callA(new B()) 40 let a: Margin = new B()
|
/arkcompiler/ets_frontend/ets2panda/linter-4.2/test/ |
D | unique_names.ts | 30 export interface B { interface 33 export class B extends A {} class 40 export interface B { interface 48 import * as B from 'y'; 49 interface B { interface 52 class B {} class 70 const ab = new A.B(); 80 const B = 'Text'; constant 81 type B = number[];
|
/arkcompiler/ets_frontend/ets2panda/linter/test/ |
D | unique_names.ts | 30 export interface B { interface 33 export class B extends A {} class 40 export interface B { interface 48 import * as B from 'y'; 49 interface B { interface 52 class B {} class 70 const ab = new A.B(); 80 const B = 'Text'; constant 81 type B = number[];
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/02.evaluation_of_expressions/06.evaluation_of_other_expressions/ |
D | instof.ets | 29 class B extends A implements J {} 35 if (a instanceof B) return 1; 38 a = new B(); 41 if (!(a instanceof B)) return 1; 47 if (i instanceof B) return 1; 50 i = new B(); 53 if (!(i instanceof B)) return 1; 56 let b: B = new B(); 59 if (!(b instanceof B)) return 1; 62 let j: J = new B(); [all …]
|
/arkcompiler/ets_runtime/test/quickfix/global_func/ |
D | base_modify.js | 18 globalThis.B(); 21 function B() { class 25 globalThis.B = B;
|
/arkcompiler/ets_runtime/test/quickfix/add_callfunction/ |
D | base.js | 17 B(); 20 function B() { class 25 globalThis.B = B;
|