/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | functionLiterals.ts | 26 func1(x: number): number; // Method signature 27 AssertType(func1, "(number) => number"); 40 b.func1 = b.func2; 41 AssertType(b.func1 = b.func2, "(number) => number"); 42 AssertType(b.func1, "(number) => number"); 45 b.func1 = b.func3; 46 AssertType(b.func1 = b.func3, "(number) => number"); 47 AssertType(b.func1, "(number) => number"); 50 b.func2 = b.func1; 51 AssertType(b.func2 = b.func1, "(number) => number"); [all …]
|
D | noImplicitThisBigThis.ts | 24 AssertType({ func1() { return this; }, func2() { return … 27 func1() { 28 AssertType(func1, "() => { func1(): any; func2(): any; func3(): any; }"); 51 AssertType({ func1() { return this; }, func2() { return … 54 func1() { 55 AssertType(func1, "() => { func1(): any; func2(): any; func3(): any; func4(): any; func5(): any; fu…
|
D | targetTypeTest2.ts | 32 function func1(stuff:any[]) { 38 AssertType(func1([stuff1, stuff2, stuff3]), "any[]"); 39 AssertType(func1, "(any[]) => any[]"); 44 return func1([stuff1, stuff2, stuff3]);
|
D | emitDefaultParametersFunctionPropertyES6.ts | 23 AssertType({ func1(y = 10, ...rest) { }, func2(x = "hello") { }, func3(x: string, z: numbe… 25 func1(y = 10, ...rest) { }, 26 AssertType(func1, "(?number, ...any[]) => void");
|
D | emitDefaultParametersFunctionProperty.ts | 23 AssertType({ func1(y = 10, ...rest) { }, func2(x = "hello") { }, func3(x: string, z: numbe… 25 func1(y = 10, ...rest) { }, 26 AssertType(func1, "(?number, ...any[]) => void");
|
D | emitRestParametersFunctionPropertyES6.ts | 24 func1: (...rest) => void 25 AssertType(func1, "(...any[]) => void");
|
D | emitRestParametersFunctionProperty.ts | 24 func1: (...rest) => void 25 AssertType(func1, "(...any[]) => void");
|
D | commentsOnObjectLiteral3.ts | 37 func1() { }, 38 AssertType(func1, "() => void");
|
D | conditionalTypeBasedContextualTypeReturnTypeWidening.ts | 24 const func1 = useState1(() => () => 0); 25 AssertType(func1, "() => 0");
|
/arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/ |
D | functionCall_2.ts | 17 function func1(a : number) : void { function 24 func1(func2(5));
|
D | functionCall.ts | 17 function func1(a: number): void { function 20 func1(5); 35 func1(func2(func3(obj1)));
|
D | tupleAssignability.ts | 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[]] { function
|
D | varRedeclaration.ts | 85 function func1(a: number, b: string): "foo" { function 91 var l: typeof func1 | typeof func2;
|
/arkcompiler/ets_runtime/ecmascript/ic/tests/ |
D | ic_invoke_test.cpp | 77 JSHandle<JSFunction> func1 = factory->NewJSFunction(globalEnv); in HWTEST_F_L0() local 78 func1.GetTaggedValue().GetTaggedObject()->GetClass()->SetClassConstructor(true); in HWTEST_F_L0() 79 array1->Set(thread, 1, func1.GetTaggedValue()); in HWTEST_F_L0() 96 ASSERT_EQ(slotArray->Get(thread, 2), func1.GetTaggedValue()); in HWTEST_F_L0() 110 JSHandle<JSFunction> func1 = factory->NewJSFunction(globalEnv); in HWTEST_F_L0() local 115 array->Set(thread, 2, func1.GetTaggedValue()); in HWTEST_F_L0() 122 …JSTaggedValue testValue1 = InvokeCache::CheckPolyInvokeCache(array.GetTaggedValue(), func1.GetTagg… in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/test/aottest/getunmappedargs/ |
D | getunmappedargs.ts | 17 function func1(a:any) { 20 func1(1);
|
/arkcompiler/ets_runtime/test/aottest/deopt_clear_aotflags/ |
D | deopt_clear_aotflags.ts | 33 const func1 = foo(-1); constant 36 func1(undefined);
|
/arkcompiler/runtime_core/tests/checked/ |
D | aot.pa | 19 #! EVENT "AotEntrypointFound,_GLOBAL::func1" 26 #! EVENT "AotEntrypointFound,_GLOBAL::func1" 50 .function i32 func1(i32 a0) { 63 call.short func1, a0 72 call.short func1, v1
|
/arkcompiler/ets_runtime/test/moduletest/loadicbyvalue/ |
D | loadicbyvalue.js | 24 function func1(a) function 30 func1(obj);
|
/arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
D | test_generic.ts | 17 function func1<Type, A, B extends readonly number[]>(arg: Type): Type { function 39 func1<number, string, [1, 2, 3]>() 43 a: function <B, C extends typeof func1>() { },
|
/arkcompiler/runtime_core/libark_defect_scan_aux/tests/unittest/ |
D | graph_test.js | 47 let func1 = function (o) { function 55 let res = func1();
|
D | debug_info_test.js | 17 function func1(o1, o2) { function 38 let m = '123'; func1(...arr); // written on the same line for testing
|
/arkcompiler/ets_runtime/test/aottest/classstatic/ |
D | classstatic.ts | 232 func1(a:any,...A:any) : void { method in Shape 260 func1() : void { method in Sphere 270 shape.func1(hits); 289 sh.func1(1, 2);
|
D | expect_output.txt | 25 func1 27 func1
|
/arkcompiler/ets_runtime/test/aottest/calls/ |
D | calls.ts | 105 function func1(value: number): number { function 120 func1(value); 140 func1();
|
/arkcompiler/ets_frontend/testTs/expect/types/objectTypeLiteral/methodSignatures/ |
D | functionLiterals.txt | 1 {'lb': [{'t': 2, 'v': 6}, {'t': 2, 'v': 3}, {'t': 5, 'v': 'func1'}, {'t': 25, 'v': 1}, {'t': 5, 'v'… 5 {'lb': [{'t': 2, 'v': 6}, {'t': 2, 'v': 3}, {'t': 5, 'v': 'func1'}, {'t': 25, 'v': 1}, {'t': 5, 'v'…
|