Home
last modified time | relevance | path

Searched refs:fn2 (Results 1 – 25 of 324) sorted by relevance

12345678910>>...13

/third_party/typescript/tests/baselines/reference/
DcontextSensitiveReturnTypeInference.types32 >test( (deps, data) => ({ fn1: function() { return deps.foo }, fn2: data.bar }), DEPS) : a…
36 …unction() { return deps.foo }, fn2: data.bar }) : (deps: { foo: number; }, data: IData) => { f…
39 >({ fn1: function() { return deps.foo }, fn2: data.bar }) : { fn1: () => number; fn2: boolea…
40 >{ fn1: function() { return deps.foo }, fn2: data.bar } : { fn1: () => number; fn2: boolean;…
49 fn2: data.bar
50 >fn2 : boolean
62 >test( (deps: typeof DEPS, data) => ({ fn1: function() { return deps.foo }, fn2: data.bar }…
66 … function() { return deps.foo }, fn2: data.bar }) : (deps: typeof DEPS, data: IData) => { fn1:…
70 >({ fn1: function() { return deps.foo }, fn2: data.bar }) : { fn1: () => number; fn2: boolea…
71 >{ fn1: function() { return deps.foo }, fn2: data.bar } : { fn1: () => number; fn2: boolean;…
[all …]
DcontextSensitiveReturnTypeInference.js20 fn2: data.bar property
28 fn2: data.bar property
36 fn2: data.bar
45 fn2: data.bar
54 fn2: 1 property
68 fn2: data.bar
72 fn2: data.bar
76 fn2: data.bar
81 fn2: data.bar
86 fn2: 1
DtaggedTemplateStringsWithOverloadResolution3_ES6.js12 function fn2(strs: TemplateStringsArray, s: string, n: number): number;
13 function fn2<T>(strs: TemplateStringsArray, n: number, t: T): T;
14 function fn2() { return undefined; } function
16 var d1: Date = fn2 `${ 0 }${ undefined }`; // contextually typed
17 var d2 = fn2 `${ 0 }${ undefined }`; // any
23 fn2 `${ 0 }${ '' }`; // OK
26 fn2 `${ '' }${ 0 }`; // OK
80 function fn2() { return undefined; }
81 var d1 = fn2 `${0}${undefined}`; // contextually typed
82 var d2 = fn2 `${0}${undefined}`; // any
[all …]
DtaggedTemplateStringsWithOverloadResolution3.js12 function fn2(strs: TemplateStringsArray, s: string, n: number): number;
13 function fn2<T>(strs: TemplateStringsArray, n: number, t: T): T;
14 function fn2() { return undefined; } function
16 var d1: Date = fn2 `${ 0 }${ undefined }`; // contextually typed
17 var d2 = fn2 `${ 0 }${ undefined }`; // any
23 fn2 `${ 0 }${ '' }`; // OK
26 fn2 `${ '' }${ 0 }`; // OK
84 function fn2() { return undefined; }
85 var d1 = fn2(__makeTemplateObject(["", "", ""], ["", "", ""]), 0, undefined); // contextually typed
86 var d2 = fn2(__makeTemplateObject(["", "", ""], ["", "", ""]), 0, undefined); // any
[all …]
DoverloadResolutionClassConstructors.types59 class fn2<T> {
60 >fn2 : fn2<T>
73 var d = new fn2<Date>(0, undefined);
74 >d : fn2<Date>
75 >new fn2<Date>(0, undefined) : fn2<Date>
76 >fn2 : typeof fn2
81 var s = new fn2(0, '');
82 >s : fn2<string>
83 >new fn2(0, '') : fn2<string>
84 >fn2 : typeof fn2
[all …]
DmoduleExportsAliasLoop1.symbols5 exports.fn2 = Math.min;
6 >exports.fn2 : Symbol(fn2, Decl(x.js, 0, 14))
7 >exports : Symbol(fn2, Decl(x.js, 0, 14))
8 >fn2 : Symbol(fn2, Decl(x.js, 0, 14))
9 >Math.min : Symbol(fn2, Decl(lib.es5.d.ts, --, --))
11 >min : Symbol(fn2, Decl(lib.es5.d.ts, --, --))
DmoduleExportsAliasLoop2.symbols9 exports.fn2 = Foo.min;
10 >exports.fn2 : Symbol(fn2, Decl(x.js, 1, 14))
11 >exports : Symbol(fn2, Decl(x.js, 1, 14))
12 >fn2 : Symbol(fn2, Decl(x.js, 1, 14))
13 >Foo.min : Symbol(fn2, Decl(x.js, 0, 13))
15 >min : Symbol(fn2, Decl(x.js, 0, 13))
DoverloadResolutionClassConstructors.js31 class fn2<T> { class
37 var d = new fn2<Date>(0, undefined);
40 var s = new fn2(0, '');
43 new fn2<Date>('', 0); // OK
46 new fn2('', 0); // OK
156 var fn2 = /** @class */ (function () { function
157 function fn2() { function
159 return fn2;
161 var d = new fn2(0, undefined);
163 var s = new fn2(0, '');
[all …]
DoverloadResolution.js31 function fn2(s: string, n: number): number;
32 function fn2<T>(n: number, t: T): T;
33 function fn2() { return undefined; } function
35 var d = fn2<Date>(0, undefined);
39 var s = fn2(0, '');
42 fn2<Date>('', 0); // Error
45 fn2('', 0); // OK
144 function fn2() { return undefined; }
145 var d = fn2(0, undefined);
148 var s = fn2(0, '');
[all …]
DoverloadResolutionConstructors.js31 interface fn2 {
35 var fn2: fn2; variable
37 var d = new fn2<Date>(0, undefined);
41 var s = new fn2(0, '');
44 new fn2<Date>('', 0); // Error
47 new fn2('', 0); // OK
153 var fn2; variable
154 var d = new fn2(0, undefined);
157 var s = new fn2(0, '');
159 new fn2('', 0); // Error
[all …]
DoverloadResolutionConstructors.types60 interface fn2 {
69 var fn2: fn2;
70 >fn2 : fn2
72 var d = new fn2<Date>(0, undefined);
74 >new fn2<Date>(0, undefined) : Date
75 >fn2 : fn2
83 var s = new fn2(0, '');
85 >new fn2(0, '') : ""
86 >fn2 : fn2
91 new fn2<Date>('', 0); // Error
[all …]
DcontextSensitiveReturnTypeInference.symbols48 fn2: data.bar
49 >fn2 : Symbol(fn2, Decl(contextSensitiveReturnTypeInference.ts, 17, 40))
74 fn2: data.bar
75 >fn2 : Symbol(fn2, Decl(contextSensitiveReturnTypeInference.ts, 25, 40))
99 fn2: data.bar
100 >fn2 : Symbol(fn2, Decl(contextSensitiveReturnTypeInference.ts, 33, 24))
125 fn2: data.bar
126 >fn2 : Symbol(fn2, Decl(contextSensitiveReturnTypeInference.ts, 42, 32))
149 fn2: 1
150 >fn2 : Symbol(fn2, Decl(contextSensitiveReturnTypeInference.ts, 51, 30))
DModuleWithExportedAndNonExportedFunctions.js12 function fn2(s: string) {
29 var fn2 = A.fn2; variable
43 function fn2(s) { function
56 var fn2 = A.fn2;
DparameterDestructuringObjectLiteral.symbols14 const fn2 = ({ headers = {} }) => { };
15 >fn2 : Symbol(fn2, Decl(parameterDestructuringObjectLiteral.ts, 5, 5))
18 fn2({ headers: { foo: 1 } });
19 >fn2 : Symbol(fn2, Decl(parameterDestructuringObjectLiteral.ts, 5, 5))
DparameterDestructuringObjectLiteral.js7 const fn2 = ({ headers = {} }) => { }; function
8 fn2({ headers: { foo: 1 } });
15 var fn2 = function (_a) {
18 fn2({ headers: { foo: 1 } });
25 declare const fn2: ({ headers }: {
DcallOfConditionalTypeWithConcreteBranches.js23 function fn2<T>(arg: Q2<T>) {
29 fn2<string | number>(m => m(42));
30 fn2<number>(m => m(42));
55 function fn2(arg) { function
61 fn2(function (m) { return m(42); });
62 fn2(function (m) { return m(42); });
DgenericRestTypes.js17 const fn2: (...args: never) => void = fn1; constant
22 const fn2: (cb: (...args: never) => void) => void = fn1; constant
27 const fn2: (...args: {x: "a"} & {x: "b"}) => void = fn1; constant
41 var fn2 = fn1;
45 var fn2 = fn1;
55 var fn2 = fn1;
/third_party/ltp/testcases/kernel/containers/libclone/
Dlibclone.c21 int (*fn2) (void *arg), void *arg2) in do_clone_tests()
30 if (fn2) in do_clone_tests()
31 ret = fn2(arg2); in do_clone_tests()
40 int (*fn2) (void *arg), void *arg2) in do_unshare_tests()
82 if (fn2) in do_unshare_tests()
83 ret = fn2(arg2); in do_unshare_tests()
90 int (*fn2) (void *arg), void *arg2) in do_plain_tests()
101 if (fn2) in do_plain_tests()
102 ret = fn2(arg2); in do_plain_tests()
128 int (*fn2) (void *arg), void *arg2) in do_clone_unshare_tests()
[all …]
/third_party/node/deps/npm/node_modules/retry/test/integration/
Dtest-retry-wrap.js9 fn2: function() {},
18 assert.equal(lib.fn2.name, 'bound retryWrapper');
26 assert.equal(lib.fn2.name, 'bound retryWrapper');
29 assert.equal(lib.fn2.options.retries, 2);
37 assert.equal(lib.fn2.name, 'bound retryWrapper');
45 assert.equal(lib.fn2.name, 'bound retryWrapper');
47 assert.equal(lib.fn2.options.retries, 2);
74 fn2: function (a, callback) { method
84 lib.fn2(2, function() {
/third_party/typescript/tests/cases/conformance/expressions/functionCalls/
DoverloadResolution.ts30 function fn2(s: string, n: number): number; function
31 function fn2<T>(n: number, t: T): T;
32 function fn2() { return undefined; }
34 var d = fn2<Date>(0, undefined);
38 var s = fn2(0, '');
41 fn2<Date>('', 0); // Error
44 fn2('', 0); // OK
DoverloadResolutionConstructors.ts30 interface fn2 { interface
34 var fn2: fn2; variable
36 var d = new fn2<Date>(0, undefined);
40 var s = new fn2(0, '');
43 new fn2<Date>('', 0); // Error
46 new fn2('', 0); // OK
/third_party/typescript/tests/cases/conformance/es6/templates/
DtaggedTemplateStringsWithOverloadResolution3.ts12 function fn2(strs: TemplateStringsArray, s: string, n: number): number; function
13 function fn2<T>(strs: TemplateStringsArray, n: number, t: T): T;
14 function fn2() { return undefined; }
16 var d1: Date = fn2 `${ 0 }${ undefined }`; // contextually typed
17 var d2 = fn2 `${ 0 }${ undefined }`; // any
23 fn2 `${ 0 }${ '' }`; // OK
26 fn2 `${ '' }${ 0 }`; // OK
DtaggedTemplateStringsWithOverloadResolution3_ES6.ts12 function fn2(strs: TemplateStringsArray, s: string, n: number): number; function
13 function fn2<T>(strs: TemplateStringsArray, n: number, t: T): T;
14 function fn2() { return undefined; }
16 var d1: Date = fn2 `${ 0 }${ undefined }`; // contextually typed
17 var d2 = fn2 `${ 0 }${ undefined }`; // any
23 fn2 `${ 0 }${ '' }`; // OK
26 fn2 `${ '' }${ 0 }`; // OK
/third_party/node/test/parallel/
Dtest-events-static-geteventlisteners.js16 const fn2 = common.mustNotCall(); constant
19 emitter.on('foo', fn2);
22 deepStrictEqual(getEventListeners(emitter, 'foo'), [fn1, fn2]);
29 const fn2 = common.mustNotCall(); constant
32 target.addEventListener('foo', fn2);
35 deepStrictEqual(getEventListeners(target, 'foo'), [fn1, fn2]);
/third_party/typescript/tests/cases/compiler/
DcontextSensitiveReturnTypeInference.ts21 fn2: data.bar
29 fn2: data.bar
37 fn2: data.bar
46 fn2: data.bar
55 fn2: 1

12345678910>>...13