/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | overloadResolutionWithAny.ts | 50 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 …]
|
D | functionLiterals.ts | 30 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 …]
|
D | noImplicitThisBigThis.ts | 24 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…
|
D | asyncAwaitNestedClasses_es5.ts | 24 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>");
|
D | emitDefaultParametersFunctionPropertyES6.ts | 23 AssertType({ func1(y = 10, ...rest) { }, func2(x = "hello") { }, func3(x: string, z: numbe… 31 func2(x = "hello") { }, 32 AssertType(func2, "(?string) => void");
|
D | emitDefaultParametersFunctionProperty.ts | 23 AssertType({ func1(y = 10, ...rest) { }, func2(x = "hello") { }, func3(x: string, z: numbe… 31 func2(x = "hello") { }, 32 AssertType(func2, "(?string) => void");
|
D | conditionalTypeBasedContextualTypeReturnTypeWidening.ts | 32 const func2 = useState2(() => () => 0); 33 AssertType(func2, "() => 0");
|
/arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/ |
D | tupleAssignability.ts | 55 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];
|
D | functionCall_2.ts | 21 function func2(a : number) : string{ function 24 func1(func2(5));
|
D | functionCall.ts | 22 function func2(a: number): number { function 35 func1(func2(func3(obj1)));
|
D | varRedeclaration.ts | 88 function func2(a: string, b: number): true { function 91 var l: typeof func1 | typeof func2;
|
/arkcompiler/ets_runtime/ecmascript/ic/tests/ |
D | ic_invoke_test.cpp | 81 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/ |
D | test-keyword-declare.ts | 31 declare function func2(); function 32 func2();
|
D | test_generic.ts | 21 function func2<A extends { a: number, b: string }>() { } function 40 func2<<A>() => {}>();
|
D | test-function-with-type-assertion.ts | 20 var func2 = <(arg0: Number) => Number>function(a: Number) { return a }; variable
|
/arkcompiler/ets_runtime/test/aottest/getunmappedargs/ |
D | getunmappedargs.ts | 22 function func2(a:any, b:any, c:any) { function 27 func2(1, "abc", 3.14);
|
/arkcompiler/ets_runtime/test/aottest/deopt_clear_aotflags/ |
D | deopt_clear_aotflags.ts | 34 const func2 = foo(2); constant 38 func2(3);
|
/arkcompiler/runtime_core/tests/checked/ |
D | aot.pa | 20 #! 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/ |
D | callee_info_test.js | 24 let func2 = (x) => { return x * 2; }; function 25 func2(o2.x); 31 let func3 = func2;
|
D | graph_test.js | 48 function func2(o1, o2) { function 51 let bar = func2;
|
D | debug_info_test.js | 21 async function func2() { } function 34 c = a + b + func2();
|
/arkcompiler/ets_runtime/test/aottest/calls/ |
D | calls.ts | 110 function func2(value: number, value1: number): number { function 141 func2(1); 152 func2(value1, value2);
|
/arkcompiler/ets_frontend/testTs/expect/types/objectTypeLiteral/methodSignatures/ |
D | functionLiterals.txt | 1 …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/ |
D | dropframe.js | 98 function func2() { function 105 func2()
|
/arkcompiler/runtime_core/compiler/tests/js/ |
D | moduleTryCatch.js | 27 function func2(a) { function
|