/third_party/rust/crates/nom/src/ |
D | macros.rs | 2 (0, $submac:ident ! ($($rest:tt)*)) => ($submac!(1, $($rest)*)); 3 (1, $submac:ident ! ($($rest:tt)*)) => ($submac!(2, $($rest)*)); 4 (2, $submac:ident ! ($($rest:tt)*)) => ($submac!(3, $($rest)*)); 5 (3, $submac:ident ! ($($rest:tt)*)) => ($submac!(4, $($rest)*)); 6 (4, $submac:ident ! ($($rest:tt)*)) => ($submac!(5, $($rest)*)); 7 (5, $submac:ident ! ($($rest:tt)*)) => ($submac!(6, $($rest)*)); 8 (6, $submac:ident ! ($($rest:tt)*)) => ($submac!(7, $($rest)*)); 9 (7, $submac:ident ! ($($rest:tt)*)) => ($submac!(8, $($rest)*)); 10 (8, $submac:ident ! ($($rest:tt)*)) => ($submac!(9, $($rest)*)); 11 (9, $submac:ident ! ($($rest:tt)*)) => ($submac!(10, $($rest)*)); [all …]
|
/third_party/typescript/tests/baselines/reference/ |
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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 …]
|
D | collisionArgumentsClassMethod.types | 13 public foo1(arguments: number, ...rest) { //arguments is error 14 >foo1 : (arguments: number, ...rest: any[]) => void 16 >rest : any[] 48 public f41(arguments: number, ...rest); // no codegen no error 49 >f41 : { (arguments: number, ...rest: any[]): any; (arguments: string, ...rest: any[]): any; } 51 >rest : any[] 53 public f41(arguments: string, ...rest); // no codegen no error 54 >f41 : { (arguments: number, ...rest: any[]): any; (arguments: string, ...rest: any[]): any; } 56 >rest : any[] 58 public f41(arguments: any, ...rest) { // error [all …]
|
/third_party/rust/crates/proc-macro2/src/ |
D | parse.rs | 11 pub rest: &'a str, field 18 let (_front, rest) = self.rest.split_at(bytes); in advance() 20 rest, in advance() 27 self.rest.starts_with(s) in starts_with() 31 self.rest.is_empty() in is_empty() 35 self.rest.len() in len() 39 self.rest.as_bytes() in as_bytes() 43 self.rest.bytes() in bytes() 47 self.rest.chars() in chars() 51 self.rest.char_indices() in char_indices() [all …]
|
/third_party/node/lib/ |
D | url.js | 179 let rest = ''; 217 rest += url.slice(lastPos, i); 218 rest += '/'; 234 rest = url; 236 rest = url.slice(start); 238 rest = url.slice(start, end); 242 rest += url.slice(lastPos); 245 rest += url.slice(lastPos, end); 251 const simplePath = simplePathPattern.exec(rest); 253 this.path = rest; [all …]
|