/third_party/typescript/tests/baselines/reference/ |
D | contextSensitiveReturnTypeInference.types | 32 >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 …]
|
D | contextSensitiveReturnTypeInference.js | 20 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
|
D | taggedTemplateStringsWithOverloadResolution3_ES6.js | 12 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 …]
|
D | taggedTemplateStringsWithOverloadResolution3.js | 12 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 …]
|
D | overloadResolutionClassConstructors.types | 59 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 …]
|
D | moduleExportsAliasLoop1.symbols | 5 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, --, --))
|
D | moduleExportsAliasLoop2.symbols | 9 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))
|
D | overloadResolutionClassConstructors.js | 31 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 …]
|
D | overloadResolution.js | 31 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 …]
|
D | overloadResolutionConstructors.js | 31 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 …]
|
D | overloadResolutionConstructors.types | 60 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 …]
|
D | contextSensitiveReturnTypeInference.symbols | 48 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))
|
D | ModuleWithExportedAndNonExportedFunctions.js | 12 function fn2(s: string) { 29 var fn2 = A.fn2; variable 43 function fn2(s) { function 56 var fn2 = A.fn2;
|
D | parameterDestructuringObjectLiteral.symbols | 14 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))
|
D | parameterDestructuringObjectLiteral.js | 7 const fn2 = ({ headers = {} }) => { }; function 8 fn2({ headers: { foo: 1 } }); 15 var fn2 = function (_a) { 18 fn2({ headers: { foo: 1 } }); 25 declare const fn2: ({ headers }: {
|
D | callOfConditionalTypeWithConcreteBranches.js | 23 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); });
|
D | genericRestTypes.js | 17 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/ |
D | libclone.c | 21 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/ |
D | test-retry-wrap.js | 9 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/ |
D | overloadResolution.ts | 30 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
|
D | overloadResolutionConstructors.ts | 30 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/ |
D | taggedTemplateStringsWithOverloadResolution3.ts | 12 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
|
D | taggedTemplateStringsWithOverloadResolution3_ES6.ts | 12 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/ |
D | test-events-static-geteventlisteners.js | 16 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/ |
D | contextSensitiveReturnTypeInference.ts | 21 fn2: data.bar 29 fn2: data.bar 37 fn2: data.bar 46 fn2: data.bar 55 fn2: 1
|