/third_party/typescript/tests/baselines/reference/ |
D | commentsAfterSpread.js | 39 .../* comment f */rest 41 return rest.length; 47 rest 50 rest 52 return rest.length; 58 first, .../* comment i */rest 59 ) => rest.length; 64 rest 65 ) => rest.length; 69 .../* comment k */rest [all …]
|
D | commentsAfterSpread.types | 94 >f : (first: any, ...rest: any[]) => number 99 .../* comment f */rest 100 >rest : any[] 103 return rest.length; 104 >rest.length : number 105 >rest : any[] 110 >g : (first: any, ...rest: any[]) => number 116 rest 117 >rest : any[] 123 >[.../* comment gab */ rest ] : any[] [all …]
|
D | emitRestParametersFunctionExpressionES6.types | 2 var funcExp = (...rest) => { } 3 >funcExp : (...rest: any[]) => void 4 >(...rest) => { } : (...rest: any[]) => void 5 >rest : any[] 7 var funcExp1 = (X: number, ...rest) => { } 8 >funcExp1 : (X: number, ...rest: any[]) => void 9 >(X: number, ...rest) => { } : (X: number, ...rest: any[]) => void 11 >rest : any[] 13 var funcExp2 = function (...rest) { } 14 >funcExp2 : (...rest: any[]) => void [all …]
|
D | emitRestParametersFunctionExpression.types | 2 var funcExp = (...rest) => { } 3 >funcExp : (...rest: any[]) => void 4 >(...rest) => { } : (...rest: any[]) => void 5 >rest : any[] 7 var funcExp1 = (X: number, ...rest) => { } 8 >funcExp1 : (X: number, ...rest: any[]) => void 9 >(X: number, ...rest) => { } : (X: number, ...rest: any[]) => void 11 >rest : any[] 13 var funcExp2 = function (...rest) { } 14 >funcExp2 : (...rest: any[]) => void [all …]
|
D | vararg.types | 8 public f(x:string,...rest:number[]) { 9 >f : (x: string, ...rest: number[]) => string 11 >rest : number[] 17 for (var i=0;i<rest.length;i++) { 20 >i<rest.length : boolean 22 >rest.length : number 23 >rest : number[] 28 sum+=rest[i]; 29 >sum+=rest[i] : number 31 >rest[i] : number [all …]
|
D | emitDefaultParametersFunctionExpressionES6.types | 15 var lambda3 = (x: number, y = "hello", ...rest) => { } 16 >lambda3 : (x: number, y?: string, ...rest: any[]) => void 17 >(x: number, y = "hello", ...rest) => { } : (x: number, y?: string, ...rest: any[]) => void 21 >rest : any[] 23 var lambda4 = (y = "hello", ...rest) => { } 24 >lambda4 : (y?: string, ...rest: any[]) => void 25 >(y = "hello", ...rest) => { } : (y?: string, ...rest: any[]) => void 28 >rest : any[] 30 var x = function (str = "hello", ...rest) { } 31 >x : (str?: string, ...rest: any[]) => void [all …]
|
D | emitDefaultParametersFunctionExpression.types | 15 var lambda3 = (x: number, y = "hello", ...rest) => { } 16 >lambda3 : (x: number, y?: string, ...rest: any[]) => void 17 >(x: number, y = "hello", ...rest) => { } : (x: number, y?: string, ...rest: any[]) => void 21 >rest : any[] 23 var lambda4 = (y = "hello", ...rest) => { } 24 >lambda4 : (y?: string, ...rest: any[]) => void 25 >(y = "hello", ...rest) => { } : (y?: string, ...rest: any[]) => void 28 >rest : any[] 30 var x = function (str = "hello", ...rest) { } 31 >x : (str?: string, ...rest: any[]) => void [all …]
|
D | emitRestParametersMethod.js | 3 constructor(name: string, ...rest) { } argument 5 public bar(...rest) { } argument 6 public foo(x: number, ...rest) { } argument 10 constructor(...rest) { } argument 12 public bar(...rest) { } argument 13 public foo(x: number, ...rest) { } argument 19 var rest = []; 21 rest[_i - 1] = arguments[_i]; 25 var rest = []; 27 rest[_i] = arguments[_i]; [all …]
|
D | commentsAfterSpread.symbols | 80 .../* comment f */rest 81 >rest : Symbol(rest, Decl(commentsAfterSpread.ts, 36, 8)) 84 return rest.length; 85 >rest.length : Symbol(Array.length, Decl(lib.es5.d.ts, --, --)) 86 >rest : Symbol(rest, Decl(commentsAfterSpread.ts, 36, 8)) 97 rest 98 >rest : Symbol(rest, Decl(commentsAfterSpread.ts, 43, 8)) 105 rest 106 >rest : Symbol(rest, Decl(commentsAfterSpread.ts, 43, 8)) 109 return rest.length; [all …]
|
D | emitRestParametersMethod.types | 5 constructor(name: string, ...rest) { } 7 >rest : any[] 9 public bar(...rest) { } 10 >bar : (...rest: any[]) => void 11 >rest : any[] 13 public foo(x: number, ...rest) { } 14 >foo : (x: number, ...rest: any[]) => void 16 >rest : any[] 22 constructor(...rest) { } 23 >rest : any[] [all …]
|
D | emitRestParametersMethodES6.types | 5 constructor(name: string, ...rest) { } 7 >rest : any[] 9 public bar(...rest) { } 10 >bar : (...rest: any[]) => void 11 >rest : any[] 13 public foo(x: number, ...rest) { } 14 >foo : (x: number, ...rest: any[]) => void 16 >rest : any[] 22 constructor(...rest) { } 23 >rest : any[] [all …]
|
D | emitRestParametersMethodES6.symbols | 5 constructor(name: string, ...rest) { } 7 >rest : Symbol(rest, Decl(emitRestParametersMethodES6.ts, 1, 29)) 9 public bar(...rest) { } 11 >rest : Symbol(rest, Decl(emitRestParametersMethodES6.ts, 3, 15)) 13 public foo(x: number, ...rest) { } 16 >rest : Symbol(rest, Decl(emitRestParametersMethodES6.ts, 4, 25)) 22 constructor(...rest) { } 23 >rest : Symbol(rest, Decl(emitRestParametersMethodES6.ts, 8, 16)) 25 public bar(...rest) { } 27 >rest : Symbol(rest, Decl(emitRestParametersMethodES6.ts, 10, 15)) [all …]
|
D | emitRestParametersMethod.symbols | 5 constructor(name: string, ...rest) { } 7 >rest : Symbol(rest, Decl(emitRestParametersMethod.ts, 1, 29)) 9 public bar(...rest) { } 11 >rest : Symbol(rest, Decl(emitRestParametersMethod.ts, 3, 15)) 13 public foo(x: number, ...rest) { } 16 >rest : Symbol(rest, Decl(emitRestParametersMethod.ts, 4, 25)) 22 constructor(...rest) { } 23 >rest : Symbol(rest, Decl(emitRestParametersMethod.ts, 8, 16)) 25 public bar(...rest) { } 27 >rest : Symbol(rest, Decl(emitRestParametersMethod.ts, 10, 15)) [all …]
|
D | objectRestNegative.types | 1 === tests/cases/conformance/types/rest/objectRestNegative.ts === 44 let { x, ...rest } = t; 46 >rest : Omit<T, "x"> 49 return rest; 50 >rest : Omit<T, "x"> 53 let rest: { b: string } 54 >rest : { b: string; } 57 ({a, ...rest.b + rest.b} = o); 58 >({a, ...rest.b + rest.b} = o) : { a: number; b: string; } 59 >{a, ...rest.b + rest.b} = o : { a: number; b: string; } [all …]
|
D | restParametersOfNonArrayTypes.errors.txt | 1 …al/callSignatures/restParametersOfNonArrayTypes.ts(3,14): error TS2370: A rest parameter must be o… 2 …al/callSignatures/restParametersOfNonArrayTypes.ts(4,22): error TS2370: A rest parameter must be o… 3 …al/callSignatures/restParametersOfNonArrayTypes.ts(5,11): error TS1014: A rest parameter must be l… 4 …al/callSignatures/restParametersOfNonArrayTypes.ts(5,11): error TS2370: A rest parameter must be o… 5 …al/callSignatures/restParametersOfNonArrayTypes.ts(5,23): error TS2370: A rest parameter must be o… 6 …ral/callSignatures/restParametersOfNonArrayTypes.ts(8,9): error TS2370: A rest parameter must be o… 7 …al/callSignatures/restParametersOfNonArrayTypes.ts(12,6): error TS2370: A rest parameter must be o… 8 …al/callSignatures/restParametersOfNonArrayTypes.ts(13,9): error TS1014: A rest parameter must be l… 9 …al/callSignatures/restParametersOfNonArrayTypes.ts(13,9): error TS2370: A rest parameter must be o… 10 …l/callSignatures/restParametersOfNonArrayTypes.ts(13,23): error TS2370: A rest parameter must be o… [all …]
|
D | emitDefaultParametersFunctionExpression.js | 4 var lambda3 = (x: number, y = "hello", ...rest) => { } argument 5 var lambda4 = (y = "hello", ...rest) => { } argument 7 var x = function (str = "hello", ...rest) { } argument 8 var y = (function (num = 10, boo = false, ...rest) { })() argument 9 var z = (function (num: number, boo = false, ...rest) { })(10) argument 21 var rest = []; 23 rest[_i - 2] = arguments[_i]; 28 var rest = []; 30 rest[_i - 1] = arguments[_i]; 35 var rest = []; [all …]
|
D | emitRestParametersMethodES6.js | 3 constructor(name: string, ...rest) { } argument 5 public bar(...rest) { } argument 6 public foo(x: number, ...rest) { } argument 10 constructor(...rest) { } argument 12 public bar(...rest) { } argument 13 public foo(x: number, ...rest) { } argument 19 constructor(name, ...rest) { } argument 20 bar(...rest) { } argument 21 foo(x, ...rest) { } argument 24 constructor(...rest) { } argument [all …]
|
D | vararg.js | 4 public f(x:string,...rest:number[]) { 6 for (var i=0;i<rest.length;i++) { 7 sum+=rest[i]; 13 public fnope(x:string,...rest:number) { 17 public fonly(...rest:string[]) { 19 for (var i=0;i<rest.length;i++) { 20 builder+=rest[i]; 48 var rest = []; 50 rest[_i - 1] = arguments[_i]; 53 for (var i = 0; i < rest.length; i++) { [all …]
|
D | objectRestPropertyMustBeLast.errors.txt | 1 tests/cases/conformance/types/rest/objectRestPropertyMustBeLast.ts(1,9): error TS2462: A rest eleme… 2 tests/cases/conformance/types/rest/objectRestPropertyMustBeLast.ts(2,3): error TS2462: A rest eleme… 3 tests/cases/conformance/types/rest/objectRestPropertyMustBeLast.ts(4,9): error TS2462: A rest eleme… 4 tests/cases/conformance/types/rest/objectRestPropertyMustBeLast.ts(5,3): error TS2462: A rest eleme… 7 ==== tests/cases/conformance/types/rest/objectRestPropertyMustBeLast.ts (4 errors) ==== 8 var {...a, x } = { x: 1 }; // Error, rest must be last property 10 !!! error TS2462: A rest element must be last in a destructuring pattern. 11 ({...a, x } = { x: 1 }); // Error, rest must be last property 13 !!! error TS2462: A rest element must be last in a destructuring pattern. 15 var {...a, x, ...b } = { x: 1 }; // Error, rest must be last property [all …]
|
D | tupleLengthCheck.types | 5 declare const rest: [number, string, ...boolean[]] 6 >rest : [number, string, ...boolean[]] 26 const a4 = rest[1] 28 >rest[1] : string 29 >rest : [number, string, ...boolean[]] 32 const a5 = rest[2] 34 >rest[2] : boolean 35 >rest : [number, string, ...boolean[]] 38 const a6 = rest[3] 40 >rest[3] : boolean [all …]
|
D | emitRestParametersFunctionExpression.js | 2 var funcExp = (...rest) => { } argument 3 var funcExp1 = (X: number, ...rest) => { } argument 4 var funcExp2 = function (...rest) { } argument 5 var funcExp3 = (function (...rest) { })() argument 10 var rest = []; 12 rest[_i] = arguments[_i]; 16 var rest = []; 18 rest[_i - 1] = arguments[_i]; 22 var rest = []; 24 rest[_i] = arguments[_i]; [all …]
|
D | tupleLengthCheck.symbols | 5 declare const rest: [number, string, ...boolean[]] 6 >rest : Symbol(rest, Decl(tupleLengthCheck.ts, 1, 13)) 21 const a4 = rest[1] 23 >rest : Symbol(rest, Decl(tupleLengthCheck.ts, 1, 13)) 26 const a5 = rest[2] 28 >rest : Symbol(rest, Decl(tupleLengthCheck.ts, 1, 13)) 30 const a6 = rest[3] 32 >rest : Symbol(rest, Decl(tupleLengthCheck.ts, 1, 13)) 34 const a7 = rest[1000] 36 >rest : Symbol(rest, Decl(tupleLengthCheck.ts, 1, 13))
|
D | collisionRestParameterFunction.types | 46 function f4(_i: number, ...rest); // no codegen no error 47 >f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; } 49 >rest : any[] 51 function f4(_i: string, ...rest); // no codegen no error 52 >f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; } 54 >rest : any[] 56 function f4(_i: any, ...rest) { // error 57 >f4 : { (_i: number, ...rest: any[]): any; (_i: string, ...rest: any[]): any; } 59 >rest : any[] 75 declare function f5(_i: number, ...rest); // no codegen no error [all …]
|
/third_party/boost/boost/vmd/detail/ |
D | identifier.hpp | 28 #define BOOST_VMD_DETAIL_IDENTIFIER_PROCESS_KEYS_SUCCESS(id,rest,keymatch,mods) \ argument 29 BOOST_VMD_DETAIL_IDENTIFIER_SUCCESS_MODS(id,rest,BOOST_PP_DEC(keymatch),mods) \ 32 #define BOOST_VMD_DETAIL_IDENTIFIER_PROCESS_KEYS_FAILURE(id,rest,keymatch,mods) \ argument 36 #define BOOST_VMD_DETAIL_IDENTIFIER_PROCESS_KEYS_TUPLE_RESULT(id,rest,keymatch,mods) \ argument 43 (id,rest,keymatch,mods) \ 46 #define BOOST_VMD_DETAIL_IDENTIFIER_PROCESS_KEYS_TUPLE_RESULT_D(d,id,rest,keymatch,mods) \ argument 53 (id,rest,keymatch,mods) \ 56 #define BOOST_VMD_DETAIL_IDENTIFIER_PROCESS_KEYS_TUPLE(id,rest,keytuple,mods) \ argument 60 rest, \ 66 #define BOOST_VMD_DETAIL_IDENTIFIER_PROCESS_KEYS_TUPLE_D(d,id,rest,keytuple,mods) \ argument [all …]
|
/third_party/typescript/tests/cases/compiler/ |
D | commentsAfterSpread.ts | 39 .../* comment f */rest 41 return rest.length; 47 rest 50 rest 52 return rest.length; 58 first, .../* comment i */rest 59 ) => rest.length; 64 rest 65 ) => rest.length; 69 .../* comment k */rest [all …]
|