Home
last modified time | relevance | path

Searched refs:func2 (Results 1 – 25 of 49) sorted by relevance

12

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DoverloadResolutionWithAny.ts50 let func2: { variable
51 AssertType(func2, "{ (string, string): number; (any, string): boolean; (string, any): RegExp; (any,…
70 func2(x, x); // string variable
71 AssertType(func2(x, x), "string");
72 AssertType(func2, "{ (string, string): number; (any, string): boolean; (string, any): RegExp; (any,…
76 func2("", ""); // number
77 AssertType(func2("", ""), "number");
78 AssertType(func2, "{ (string, string): number; (any, string): boolean; (string, any): RegExp; (any,…
82 func2(x, ""); // boolean
83 AssertType(func2(x, ""), "boolean");
[all …]
DfunctionLiterals.ts30 func2: (x: number) => number; // Function type literal
31 AssertType(func2, "(number) => number");
40 b.func1 = b.func2;
41 AssertType(b.func1 = b.func2, "(number) => number");
43 AssertType(b.func2, "(number) => number");
50 b.func2 = b.func1;
51 AssertType(b.func2 = b.func1, "(number) => number");
52 AssertType(b.func2, "(number) => number");
55 b.func2 = b.func3;
56 AssertType(b.func2 = b.func3, "(number) => number");
[all …]
DnoImplicitThisBigThis.ts24 AssertType({ func1() { return this; }, func2() { return …
34 func2() {
35 AssertType(func2, "() => { func1(): any; func2(): any; func3(): any; }");
51 AssertType({ func1() { return this; }, func2() { return …
61 func2() {
62 AssertType(func2, "() => { func1(): any; func2(): any; func3(): any; func4(): any; func5(): any; fu…
DasyncAwaitNestedClasses_es5.ts24 static func2(): Promise<void> {
36 await B.func2();
37 AssertType(await B.func2(), "void");
38 AssertType(B.func2(), "Promise<void>");
39 AssertType(B.func2, "() => Promise<void>");
DemitDefaultParametersFunctionPropertyES6.ts23 AssertType({ func1(y = 10, ...rest) { }, func2(x = "hello") { }, func3(x: string, z: numbe…
31 func2(x = "hello") { },
32 AssertType(func2, "(?string) => void");
DemitDefaultParametersFunctionProperty.ts23 AssertType({ func1(y = 10, ...rest) { }, func2(x = "hello") { }, func3(x: string, z: numbe…
31 func2(x = "hello") { },
32 AssertType(func2, "(?string) => void");
DconditionalTypeBasedContextualTypeReturnTypeWidening.ts32 const func2 = useState2(() => () => 0);
33 AssertType(func2, "() => 0");
/arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/
DtupleAssignability.ts55 function func2(a: typeof tuple16, b?: [number, boolean]): [typeof func2, string] { function
56 return [func2, "foo"];
59 var tuple17 = func2([[1, "foo", "bar"], [], 2]);
60 var tuple18 = func2([[3, "baz", "qux"], [], 4], [5, true]);
63 var b: typeof func2 = tuple18[0];
DfunctionCall_2.ts21 function func2(a : number) : string{ function
24 func1(func2(5));
DfunctionCall.ts22 function func2(a: number): number { function
35 func1(func2(func3(obj1)));
DvarRedeclaration.ts88 function func2(a: string, b: number): true { function
91 var l: typeof func1 | typeof func2;
/arkcompiler/ets_runtime/ecmascript/ic/tests/
Dic_invoke_test.cpp81 JSHandle<JSFunction> func2 = factory->NewJSFunction(globalEnv); in HWTEST_F_L0() local
82 func2.GetTaggedValue().GetTaggedObject()->GetClass()->SetClassConstructor(true); in HWTEST_F_L0()
83 array1->Set(thread, 2, func2.GetTaggedValue()); in HWTEST_F_L0()
98 ASSERT_EQ(slotArray->Get(thread, 4), func2.GetTaggedValue()); in HWTEST_F_L0()
111 JSHandle<JSFunction> func2 = factory->NewJSFunction(globalEnv); in HWTEST_F_L0() local
117 array->Set(thread, 4, func2.GetTaggedValue()); in HWTEST_F_L0()
124 …JSTaggedValue testValue2 = InvokeCache::CheckPolyInvokeCache(array.GetTaggedValue(), func2.GetTagg… in HWTEST_F_L0()
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-keyword-declare.ts31 declare function func2(); function
32 func2();
Dtest_generic.ts21 function func2<A extends { a: number, b: string }>() { } function
40 func2<<A>() => {}>();
Dtest-function-with-type-assertion.ts20 var func2 = <(arg0: Number) => Number>function(a: Number) { return a }; variable
/arkcompiler/ets_runtime/test/aottest/getunmappedargs/
Dgetunmappedargs.ts22 function func2(a:any, b:any, c:any) { function
27 func2(1, "abc", 3.14);
/arkcompiler/ets_runtime/test/aottest/deopt_clear_aotflags/
Ddeopt_clear_aotflags.ts34 const func2 = foo(2); constant
38 func2(3);
/arkcompiler/runtime_core/tests/checked/
Daot.pa20 #! EVENT "AotEntrypointFound,_GLOBAL::func2"
28 #! EVENT_NOT "AotEntrypointFound,_GLOBAL::func2"
56 .function i32 func2(i32 a0) {
65 call.short func2, a0
74 call.short func2, v1
/arkcompiler/runtime_core/libark_defect_scan_aux/tests/unittest/
Dcallee_info_test.js24 let func2 = (x) => { return x * 2; }; function
25 func2(o2.x);
31 let func3 = func2;
Dgraph_test.js48 function func2(o1, o2) { function
51 let bar = func2;
Ddebug_info_test.js21 async function func2() { } function
34 c = a + b + func2();
/arkcompiler/ets_runtime/test/aottest/calls/
Dcalls.ts110 function func2(value: number, value1: number): number { function
141 func2(1);
152 func2(value1, value2);
/arkcompiler/ets_frontend/testTs/expect/types/objectTypeLiteral/methodSignatures/
DfunctionLiterals.txt1 …t': 2, 'v': 3}, {'t': 5, 'v': 'func1'}, {'t': 25, 'v': 1}, {'t': 5, 'v': 'func2'}, {'t': 25, 'v': …
5 …t': 2, 'v': 3}, {'t': 5, 'v': 'func1'}, {'t': 25, 'v': 1}, {'t': 5, 'v': 'func2'}, {'t': 25, 'v': …
/arkcompiler/toolchain/tooling/test/testcases/js/
Ddropframe.js98 function func2() { function
105 func2()
/arkcompiler/runtime_core/compiler/tests/js/
DmoduleTryCatch.js27 function func2(a) { function

12