Home
last modified time | relevance | path

Searched refs:apply (Results 1 – 25 of 57) sorted by relevance

123

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/moduleExportDuplicateAlias3/
DmoduleExportAliasDuplicateAlias.js21 exports.apply = undefined;
22 AssertType(exports.apply = undefined, "undefined");
23 AssertType(exports.apply, "union");
26 exports.apply = undefined;
27 AssertType(exports.apply = undefined, "undefined");
28 AssertType(exports.apply, "union");
32 exports.apply = a;
33 AssertType(exports.apply = a, "() => void");
34 AssertType(exports.apply, "union");
37 exports.apply()
[all …]
Dtest.js21 const { apply } = require('./moduleExportAliasDuplicateAlias')
22 AssertType(apply, "number");
27 const result = apply.toFixed()
29 AssertType(apply.toFixed(), "string");
30 AssertType(apply.toFixed, "(?union) => string");
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/moduleExportDuplicateAlias2/
DmoduleExportAliasDuplicateAlias.js21 module.exports.apply = undefined;
22 AssertType(module.exports.apply = undefined, "undefined");
23 AssertType(module.exports.apply, "any");
27 module.exports.apply = a;
28 AssertType(module.exports.apply = a, "() => void");
29 AssertType(module.exports.apply, "any");
32 module.exports.apply = a;
33 AssertType(module.exports.apply = a, "() => void");
34 AssertType(module.exports.apply, "any");
37 module.exports.apply()
[all …]
Dtest.js21 const { apply } = require('./moduleExportAliasDuplicateAlias')
22 AssertType(apply, "() => void");
27 apply()
28 AssertType(apply(), "void");
29 AssertType(apply, "() => void");
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DasyncArrowFunctionCapturesArguments_es6.ts27 let fn = async () => await other.apply(this, arguments);
29 AssertType(async () => await other.apply(this, arguments), "() => Promise<any>");
30 AssertType(await other.apply(this, arguments), "any");
31 AssertType(other.apply(this, arguments), "any");
32 AssertType(other.apply, "(Function, any, ?any) => any");
DasyncArrowFunctionCapturesArguments_es2017.ts27 let fn = async () => await other.apply(this, arguments);
29 AssertType(async () => await other.apply(this, arguments), "() => Promise<any>");
30 AssertType(await other.apply(this, arguments), "any");
31 AssertType(other.apply(this, arguments), "any");
32 AssertType(other.apply, "(Function, any, ?any) => any");
DobjectTypeWithCallSignatureHidingMembersOfFunction.ts26 apply(a: any, b?: any): void;
33 let r1: (a: any, b?: any) => void = i.apply;
37 AssertType(i.apply, "(any, ?any) => void");
53 apply(a: any, b?: any): void; variable
54 AssertType(apply, "(any, ?any) => void");
64 let r2: (a: any, b?: any) => void = x.apply;
68 AssertType(x.apply, "(any, ?any) => void");
DobjectTypeWithConstructSignatureHidingMembersOfFunction.ts23 apply(a: any, b?: any): void;
30 let r1: (a: any, b?: any) => void = i.apply;
34 AssertType(i.apply, "(any, ?any) => void");
50 apply(a: any, b?: any): void; variable
51 AssertType(apply, "(any, ?any) => void");
61 let r2: (a: any, b?: any) => void = x.apply;
65 AssertType(x.apply, "(any, ?any) => void");
DobjectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts28 apply(a: any, b?: any): void; method
35 let r1: (a: any, b?: any) => void = i.apply;
39 AssertType(i.apply, "(any, ?any) => void");
65 apply(a: any, b?: any): void; variable
66 AssertType(apply, "(any, ?any) => void");
76 let r2: (a: any, b?: any) => void = x.apply;
80 AssertType(x.apply, "(any, ?any) => void");
DobjectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts31 apply(a: any, b?: any): void; method
38 let r1: (a: any, b?: any) => void = i.apply;
42 AssertType(i.apply, "(any, ?any) => void");
68 apply(a: any, b?: any): void; variable
69 AssertType(apply, "(any, ?any) => void");
79 let r2: (a: any, b?: any) => void = x.apply;
83 AssertType(x.apply, "(any, ?any) => void");
DemitSkipsThisWithRestParameter.ts22 AssertType(function(this: any, ...args: any[]) { return fn.apply(this, [ this ].concat(args)…
27 AssertType(fn.apply(this, [ this ].concat(args)), "any");
28 AssertType(fn.apply, "(Function, any, ?any) => any");
35 return fn.apply(this, [ this ].concat(args));
DobjectTypeWithCallSignatureAppearsToBeFunctionType.ts36 let r2b: (x: any, y?: any) => any = i.apply;
40 AssertType(i.apply, "(Function, any, ?any) => any");
53 let rb4: (x: any, y?: any) => any = b.apply;
57 AssertType(b.apply, "(Function, any, ?any) => any");
DfunctionType.ts22 salt.apply("hello", []);
23 AssertType(salt.apply("hello", []), "any");
24 AssertType(salt.apply, "(Function, any, ?any) => any");
DjsFileCompilationRestParamJsDocFunction.ts32 function apply(func, thisArg, ...args) {
86 AssertType(func.apply(thisArg, args), "any");
87 AssertType(func.apply, "(Function, any, ?any) => any");
90 return func.apply(thisArg, args);
93 export default apply;
DdeclarationEmitPromise.ts50 AssertType(<T>(f: (a: A, b?: B, c?: C, d?: D, e?: E) => T): T => f.apply(this, result), "<T>…
58 f.apply(this, result);
59 AssertType(f.apply(this, result), "any");
60 AssertType(f.apply, "(Function, any, ?any) => any");
99 AssertType(<T>(f: (a: A, b?: B, c?: C, d?: D, e?: E) => T): T => f.apply(this, result), "<T>…
107 f.apply(this, result);
108 AssertType(f.apply(this, result), "any");
109 AssertType(f.apply, "(Function, any, ?any) => any");
DreturnTypeParameterWithModules.ts23 AssertType(Array.prototype.reduce.apply(ar, e ? [f, e] : [f]), "any");
24 AssertType(Array.prototype.reduce.apply, "(Function, any, ?any) => any");
35 return Array.prototype.reduce.apply(ar, e ? [f, e] : [f]);
DgenericTypeParameterEquivalence2.ts23 AssertType(function (a:A) : C { return f(g.apply(null, a)); }, "(A) => C");
27 AssertType(f(g.apply(null, a)), "C");
29 AssertType(g.apply(null, a), "any");
30 AssertType(g.apply, "(Function, any, ?any) => any");
33 return f(g.apply(null, a));
/arkcompiler/ets_runtime/test/moduletest/stackoverflow/
Dstackoverflow.js24 var res = String.fromCharCode.apply(null, array);
33 var res = String.fromCharCode.apply(null, array);
/arkcompiler/ets_runtime/test/moduletest/module/
Dmodule.js35 var infoA = A.carInfo.apply(myCar);
45 var infoC = Star.starColor.apply(myStar);
DC.js36 var info = Star.starColor.apply(myStar);
DB.js37 var info = Car.carInfo.apply(myCar);
/arkcompiler/ets_runtime/test/aottest/proxy/
Dproxy.ts24 apply: function(target:any, thisArg:any, argumentsList:any[]) {
37 ArkTools.removeAOTFlag(handler.apply);
/arkcompiler/ets_frontend/testTs/expect/types/members/
DobjectTypeWithConstructSignatureHidingMembersOfFunction.txt2 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 128}, {'t': 5, 'v': 'apply'}, {'t': 2, 'v': 0}, {'t': 2, 'v…
5 …, 'v': 3}, {'t': 5, 'v': '#undefined'}, {'t': 25, 'v': 1}, {'t': 5, 'v': 'apply'}, {'t': 25, 'v': …
DobjectTypeWithCallSignatureHidingMembersOfFunction.txt2 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 128}, {'t': 5, 'v': 'apply'}, {'t': 2, 'v': 0}, {'t': 2, 'v…
5 …, 'v': 3}, {'t': 5, 'v': '#undefined'}, {'t': 25, 'v': 3}, {'t': 5, 'v': 'apply'}, {'t': 25, 'v': …
/arkcompiler/ets_runtime/test/moduletest/proxy/
Dproxy.js27 apply: function(target, thisObj, args) { method
28 return target.apply(thisObj, args)

123