/arkcompiler/ets_runtime/test/typeinfer/automatedcases/moduleExportDuplicateAlias3/ |
D | moduleExportAliasDuplicateAlias.js | 21 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 …]
|
D | test.js | 21 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/ |
D | moduleExportAliasDuplicateAlias.js | 21 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 …]
|
D | test.js | 21 const { apply } = require('./moduleExportAliasDuplicateAlias') 22 AssertType(apply, "() => void"); 27 apply() 28 AssertType(apply(), "void"); 29 AssertType(apply, "() => void");
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | asyncArrowFunctionCapturesArguments_es6.ts | 27 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");
|
D | asyncArrowFunctionCapturesArguments_es2017.ts | 27 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");
|
D | objectTypeWithCallSignatureHidingMembersOfFunction.ts | 26 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");
|
D | objectTypeWithConstructSignatureHidingMembersOfFunction.ts | 23 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");
|
D | objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.ts | 28 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");
|
D | objectTypeWithCallSignatureHidingMembersOfExtendedFunction.ts | 31 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");
|
D | emitSkipsThisWithRestParameter.ts | 22 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));
|
D | objectTypeWithCallSignatureAppearsToBeFunctionType.ts | 36 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");
|
D | functionType.ts | 22 salt.apply("hello", []); 23 AssertType(salt.apply("hello", []), "any"); 24 AssertType(salt.apply, "(Function, any, ?any) => any");
|
D | jsFileCompilationRestParamJsDocFunction.ts | 32 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;
|
D | declarationEmitPromise.ts | 50 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");
|
D | returnTypeParameterWithModules.ts | 23 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]);
|
D | genericTypeParameterEquivalence2.ts | 23 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/ |
D | stackoverflow.js | 24 var res = String.fromCharCode.apply(null, array); 33 var res = String.fromCharCode.apply(null, array);
|
/arkcompiler/ets_runtime/test/moduletest/module/ |
D | module.js | 35 var infoA = A.carInfo.apply(myCar); 45 var infoC = Star.starColor.apply(myStar);
|
D | C.js | 36 var info = Star.starColor.apply(myStar);
|
D | B.js | 37 var info = Car.carInfo.apply(myCar);
|
/arkcompiler/ets_runtime/test/aottest/proxy/ |
D | proxy.ts | 24 apply: function(target:any, thisArg:any, argumentsList:any[]) { 37 ArkTools.removeAOTFlag(handler.apply);
|
/arkcompiler/ets_frontend/testTs/expect/types/members/ |
D | objectTypeWithConstructSignatureHidingMembersOfFunction.txt | 2 {'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': …
|
D | objectTypeWithCallSignatureHidingMembersOfFunction.txt | 2 {'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/ |
D | proxy.js | 27 apply: function(target, thisObj, args) { method 28 return target.apply(thisObj, args)
|