/third_party/typescript/tests/baselines/reference/ |
D | noImplicitThisBigThis.types | 5 >createObj : () => { func1(): any; func2(): any; func3(): any; } 8 …func1() { return this; }, func2() { return this; }, … 10 func1() { 11 >func1 : () => { func1(): any; func2(): any; func3(): any; } 14 >this : { func1(): any; func2(): any; func3(): any; } 18 >func2 : () => { func1(): any; func2(): any; func3(): any; } 21 >this : { func1(): any; func2(): any; func3(): any; } 25 >func3 : () => { func1(): any; func2(): any; func3(): any; } 28 >this : { func1(): any; func2(): any; func3(): any; } 34 >createObjNoCrash : () => { func1(): any; func2(): any; func3(): any; func4(): any; func5(): any; f… [all …]
|
D | functionLiterals.types | 5 >b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; } 7 func1(x: number): number; // Method signature 8 >func1 : (x: number) => number 21 b.func1 = b.func2; 22 >b.func1 = b.func2 : (x: number) => number 23 >b.func1 : (x: number) => number 24 >b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; } 25 >func1 : (x: number) => number 27 >b : { func1(x: number): number; func2: (x: number) => number; func3: (x: number) => number; } 30 b.func1 = b.func3; [all …]
|
D | functionLiterals.js | 5 func1(x: number): number; // Method signature 11 b.func1 = b.func2; 12 b.func1 = b.func3; 13 b.func2 = b.func1; 15 b.func3 = b.func1; 33 func1<T>(x: T): number; // Method signature 39 b2.func1 = b2.func2; 40 b2.func1 = b2.func3; 41 b2.func2 = b2.func1; 43 b2.func3 = b2.func1; [all …]
|
D | functionLiterals.symbols | 7 func1(x: number): number; // Method signature 8 >func1 : Symbol(func1, Decl(functionLiterals.ts, 2, 8)) 21 b.func1 = b.func2; 22 >b.func1 : Symbol(func1, Decl(functionLiterals.ts, 2, 8)) 24 >func1 : Symbol(func1, Decl(functionLiterals.ts, 2, 8)) 29 b.func1 = b.func3; 30 >b.func1 : Symbol(func1, Decl(functionLiterals.ts, 2, 8)) 32 >func1 : Symbol(func1, Decl(functionLiterals.ts, 2, 8)) 37 b.func2 = b.func1; 41 >b.func1 : Symbol(func1, Decl(functionLiterals.ts, 2, 8)) [all …]
|
D | noImplicitThisBigThis.js | 6 func1() { 20 func1() { 55 func1: function () { 68 func1: function () { 101 func1(): any; 106 func1(): any;
|
D | targetTypeTest2.symbols | 9 function func1(stuff:any[]) { return stuff; } 10 >func1 : Symbol(func1, Decl(targetTypeTest2.ts, 3, 26)) 20 return func1([stuff1, stuff2, stuff3]); 21 >func1 : Symbol(func1, Decl(targetTypeTest2.ts, 3, 26))
|
D | targetTypeTest3.symbols | 9 function func1(stuff:any[]) { return stuff; } 10 >func1 : Symbol(func1, Decl(targetTypeTest3.ts, 3, 29)) 20 return func1([stuff1, stuff2, stuff3]); 21 >func1 : Symbol(func1, Decl(targetTypeTest3.ts, 3, 29))
|
D | targetTypeTest2.types | 13 function func1(stuff:any[]) { return stuff; } 14 >func1 : (stuff: any[]) => any[] 24 return func1([stuff1, stuff2, stuff3]); 25 >func1([stuff1, stuff2, stuff3]) : any[] 26 >func1 : (stuff: any[]) => any[]
|
D | targetTypeTest3.types | 13 function func1(stuff:any[]) { return stuff; } 14 >func1 : (stuff: any[]) => any[] 24 return func1([stuff1, stuff2, stuff3]); 25 >func1([stuff1, stuff2, stuff3]) : any[] 26 >func1 : (stuff: any[]) => any[]
|
D | targetTypeTest3.js | 8 function func1(stuff:any[]) { return stuff; } function 11 return func1([stuff1, stuff2, stuff3]); 17 function func1(stuff) { return stuff; } 19 return func1([stuff1, stuff2, stuff3]);
|
D | targetTypeTest2.js | 8 function func1(stuff:any[]) { return stuff; } function 11 return func1([stuff1, stuff2, stuff3]); 17 function func1(stuff) { return stuff; } 19 return func1([stuff1, stuff2, stuff3]);
|
D | commentsOnObjectLiteral3.types | 3 >v : { prop: number; func: () => void; func1(): void; a: any; } 4 …func1() { }, //getter get a() { return this.prop; } /*trailing 1*/, //setter set a(value) { this… 18 func1() { }, 19 >func1 : () => void
|
D | noImplicitThisBigThis.symbols | 8 func1() { 9 >func1 : Symbol(func1, Decl(noImplicitThisBigThis.ts, 3, 12)) 35 func1() { 36 >func1 : Symbol(func1, Decl(noImplicitThisBigThis.ts, 17, 12))
|
D | emitDefaultParametersFunctionPropertyES6.types | 3 >obj2 : { func1(y?: number, ...rest: any[]): void; func2(x?: string): void; func3(x: string, z: num… 4 …func1(y = 10, ...rest) { }, func2(x = "hello") { }, func3(x: string, z: number, y = "hello")… 6 func1(y = 10, ...rest) { }, 7 >func1 : (y?: number, ...rest: any[]) => void
|
D | emitDefaultParametersFunctionProperty.types | 3 >obj2 : { func1(y?: number, ...rest: any[]): void; func2(x?: string): void; func3(x: string, z: num… 4 …func1(y = 10, ...rest) { }, func2(x = "hello") { }, func3(x: string, z: number, y = "hello")… 6 func1(y = 10, ...rest) { }, 7 >func1 : (y?: number, ...rest: any[]) => void
|
D | emitRestParametersFunctionPropertyES6.types | 3 >obj : { func1: (...rest: any[]) => void; } 5 func1: (...rest) => void 6 >func1 : (...rest: any[]) => void
|
D | emitRestParametersFunctionProperty.types | 3 >obj : { func1: (...rest: any[]) => void; } 5 func1: (...rest) => void 6 >func1 : (...rest: any[]) => void
|
D | quickInfoInheritDoc.baseline | 227 "text": "func1", 269 "text": "BaseClass.func1", 286 "text": "BaseClass.func1.stuff1", 295 "text": "BaseClass.func1.returns", 315 "text": "SubClass.func1.stuff1", 324 "text": "SubClass.func1.returns",
|
D | emitRestParametersFunctionProperty.symbols | 5 func1: (...rest) => void 6 >func1 : Symbol(func1, Decl(emitRestParametersFunctionProperty.ts, 0, 10))
|
/third_party/typescript/tests/cases/conformance/types/objectTypeLiteral/methodSignatures/ |
D | functionLiterals.ts | 4 func1(x: number): number; // Method signature 10 b.func1 = b.func2; 11 b.func1 = b.func3; 12 b.func2 = b.func1; 14 b.func3 = b.func1; 32 func1<T>(x: T): number; // Method signature 38 b2.func1 = b2.func2; 39 b2.func1 = b2.func3; 40 b2.func2 = b2.func1; 42 b2.func3 = b2.func1;
|
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/4.7/improved_function_inference_in_objects_and_methods/ |
D | improved_function_inference_in_objects_and_methods.ts | 26 function func1<T>(arg: T): T{ function 29 var f1 = func1(5); 31 var f2 = func1('a'); 33 var f3 = func1(true); 35 var f4 = func1({ num: 5 }); 37 var f5 = func1(() => { return; });
|
/third_party/node/test/fixtures/wpt/wasm/jsapi/function/ |
D | table.tentative.any.js | 8 var func1 = new WebAssembly.Function({parameters: ["i32"], results: []}, testfunc) 9 table.set(0, func1) 17 assert_equals(first, func1) 18 assert_equals(first.type().parameters[0], func1.type().parameters[0])
|
/third_party/jerryscript/tests/jerry/es2015/ |
D | reflect-construct.js | 33 function func1 (a, b, c) { function 38 var object1 = new func1 (...args); 39 var object2 = Reflect.construct (func1, args); 58 Reflect.construct (func1, 5, 5);
|
D | function-name.js | 63 var func1 = function () {}; function 64 assertMethodName(func1, 'func1'); 97 func1() {}, method 123 assertMethodName(o.func1, 'func1'); 153 func1() {} method in A 184 assertMethodName(A.prototype.func1, 'func1'); 215 func1() {} method in B 246 assertMethodName(B.prototype.func1, 'func1');
|
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/4.2/leading_middle_rest_elements_in_tuple_types/ |
D | leading_middle_rest_elements_in_tuple_types4.ts | 26 function func1(...arg: [...arr: unknown[], num: number]) { function 29 let result1 = func1(10); 31 let result2 = func1(5, 's', true, 10);
|