|
| 1 | +=== tests/cases/compiler/declarationEmitKeywordDestructuring.ts === |
| 2 | +type P = { |
| 3 | +>P : Symbol(P, Decl(declarationEmitKeywordDestructuring.ts, 0, 0)) |
| 4 | + |
| 5 | + enum: boolean; |
| 6 | +>enum : Symbol(enum, Decl(declarationEmitKeywordDestructuring.ts, 0, 10)) |
| 7 | + |
| 8 | + function: boolean; |
| 9 | +>function : Symbol(function, Decl(declarationEmitKeywordDestructuring.ts, 1, 18)) |
| 10 | + |
| 11 | + abstract: boolean; |
| 12 | +>abstract : Symbol(abstract, Decl(declarationEmitKeywordDestructuring.ts, 2, 22)) |
| 13 | + |
| 14 | + async: boolean; |
| 15 | +>async : Symbol(async, Decl(declarationEmitKeywordDestructuring.ts, 3, 22)) |
| 16 | + |
| 17 | + await: boolean; |
| 18 | +>await : Symbol(await, Decl(declarationEmitKeywordDestructuring.ts, 4, 19)) |
| 19 | + |
| 20 | + one: boolean; |
| 21 | +>one : Symbol(one, Decl(declarationEmitKeywordDestructuring.ts, 5, 19)) |
| 22 | + |
| 23 | +}; |
| 24 | + |
| 25 | +function f1({ enum: _enum, ...rest }: P) { |
| 26 | +>f1 : Symbol(f1, Decl(declarationEmitKeywordDestructuring.ts, 7, 2)) |
| 27 | +>enum : Symbol(enum, Decl(declarationEmitKeywordDestructuring.ts, 0, 10)) |
| 28 | +>_enum : Symbol(_enum, Decl(declarationEmitKeywordDestructuring.ts, 9, 13)) |
| 29 | +>rest : Symbol(rest, Decl(declarationEmitKeywordDestructuring.ts, 9, 26)) |
| 30 | +>P : Symbol(P, Decl(declarationEmitKeywordDestructuring.ts, 0, 0)) |
| 31 | + |
| 32 | + return rest; |
| 33 | +>rest : Symbol(rest, Decl(declarationEmitKeywordDestructuring.ts, 9, 26)) |
| 34 | +} |
| 35 | + |
| 36 | +function f2({ function: _function, ...rest }: P) { |
| 37 | +>f2 : Symbol(f2, Decl(declarationEmitKeywordDestructuring.ts, 11, 1)) |
| 38 | +>function : Symbol(function, Decl(declarationEmitKeywordDestructuring.ts, 1, 18)) |
| 39 | +>_function : Symbol(_function, Decl(declarationEmitKeywordDestructuring.ts, 13, 13)) |
| 40 | +>rest : Symbol(rest, Decl(declarationEmitKeywordDestructuring.ts, 13, 34)) |
| 41 | +>P : Symbol(P, Decl(declarationEmitKeywordDestructuring.ts, 0, 0)) |
| 42 | + |
| 43 | + return rest; |
| 44 | +>rest : Symbol(rest, Decl(declarationEmitKeywordDestructuring.ts, 13, 34)) |
| 45 | +} |
| 46 | + |
| 47 | +function f3({ abstract: _abstract, ...rest }: P) { |
| 48 | +>f3 : Symbol(f3, Decl(declarationEmitKeywordDestructuring.ts, 15, 1)) |
| 49 | +>abstract : Symbol(abstract, Decl(declarationEmitKeywordDestructuring.ts, 2, 22)) |
| 50 | +>_abstract : Symbol(_abstract, Decl(declarationEmitKeywordDestructuring.ts, 17, 13)) |
| 51 | +>rest : Symbol(rest, Decl(declarationEmitKeywordDestructuring.ts, 17, 34)) |
| 52 | +>P : Symbol(P, Decl(declarationEmitKeywordDestructuring.ts, 0, 0)) |
| 53 | + |
| 54 | + return rest; |
| 55 | +>rest : Symbol(rest, Decl(declarationEmitKeywordDestructuring.ts, 17, 34)) |
| 56 | +} |
| 57 | + |
| 58 | +function f4({ async: _async, ...rest }: P) { |
| 59 | +>f4 : Symbol(f4, Decl(declarationEmitKeywordDestructuring.ts, 19, 1)) |
| 60 | +>async : Symbol(async, Decl(declarationEmitKeywordDestructuring.ts, 3, 22)) |
| 61 | +>_async : Symbol(_async, Decl(declarationEmitKeywordDestructuring.ts, 21, 13)) |
| 62 | +>rest : Symbol(rest, Decl(declarationEmitKeywordDestructuring.ts, 21, 28)) |
| 63 | +>P : Symbol(P, Decl(declarationEmitKeywordDestructuring.ts, 0, 0)) |
| 64 | + |
| 65 | + return rest; |
| 66 | +>rest : Symbol(rest, Decl(declarationEmitKeywordDestructuring.ts, 21, 28)) |
| 67 | +} |
| 68 | + |
| 69 | +function f5({ await: _await, ...rest }: P) { |
| 70 | +>f5 : Symbol(f5, Decl(declarationEmitKeywordDestructuring.ts, 23, 1)) |
| 71 | +>await : Symbol(await, Decl(declarationEmitKeywordDestructuring.ts, 4, 19)) |
| 72 | +>_await : Symbol(_await, Decl(declarationEmitKeywordDestructuring.ts, 25, 13)) |
| 73 | +>rest : Symbol(rest, Decl(declarationEmitKeywordDestructuring.ts, 25, 28)) |
| 74 | +>P : Symbol(P, Decl(declarationEmitKeywordDestructuring.ts, 0, 0)) |
| 75 | + |
| 76 | + return rest; |
| 77 | +>rest : Symbol(rest, Decl(declarationEmitKeywordDestructuring.ts, 25, 28)) |
| 78 | +} |
| 79 | + |
0 commit comments