|
3 | 3 |
|
4 | 4 | # stdout |
5 | 5 | ``` |
6 | | - x parents(check): VariableDeclaration -> Program |
| 6 | + x parents(check): VariableDeclaration: |
| 7 | + | parent: Program |
| 8 | + | ancestors: [ Program ] |
7 | 9 | ,-[files/index.js:1:1] |
8 | 10 | 1 | const obj = { a: [b, c], ...d }; |
9 | 11 | : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
10 | 12 | `---- |
11 | 13 |
|
12 | | - x parents(check): Program -> null |
| 14 | + x parents(check): Program: |
| 15 | + | parent: undefined |
| 16 | + | ancestors: [ ] |
13 | 17 | ,-[files/index.js:1:1] |
14 | 18 | 1 | const obj = { a: [b, c], ...d }; |
15 | 19 | : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
16 | 20 | `---- |
17 | 21 |
|
18 | | - x parents(check): Identifier -> VariableDeclarator |
| 22 | + x parents(check): Identifier: |
| 23 | + | parent: VariableDeclarator |
| 24 | + | ancestors: [ Program, VariableDeclaration, VariableDeclarator ] |
19 | 25 | ,-[files/index.js:1:7] |
20 | 26 | 1 | const obj = { a: [b, c], ...d }; |
21 | 27 | : ^^^ |
22 | 28 | `---- |
23 | 29 |
|
24 | | - x parents(check): VariableDeclarator -> VariableDeclaration |
| 30 | + x parents(check): VariableDeclarator: |
| 31 | + | parent: VariableDeclaration |
| 32 | + | ancestors: [ Program, VariableDeclaration ] |
25 | 33 | ,-[files/index.js:1:7] |
26 | 34 | 1 | const obj = { a: [b, c], ...d }; |
27 | 35 | : ^^^^^^^^^^^^^^^^^^^^^^^^^ |
28 | 36 | `---- |
29 | 37 |
|
30 | | - x parents(check): ObjectExpression -> VariableDeclarator |
| 38 | + x parents(check): ObjectExpression: |
| 39 | + | parent: VariableDeclarator |
| 40 | + | ancestors: [ Program, VariableDeclaration, VariableDeclarator ] |
31 | 41 | ,-[files/index.js:1:13] |
32 | 42 | 1 | const obj = { a: [b, c], ...d }; |
33 | 43 | : ^^^^^^^^^^^^^^^^^^^ |
34 | 44 | `---- |
35 | 45 |
|
36 | | - x parents(check): Identifier -> Property |
| 46 | + x parents(check): Identifier: |
| 47 | + | parent: Property |
| 48 | + | ancestors: [ Program, VariableDeclaration, VariableDeclarator, ObjectExpression, Property ] |
37 | 49 | ,-[files/index.js:1:15] |
38 | 50 | 1 | const obj = { a: [b, c], ...d }; |
39 | 51 | : ^ |
40 | 52 | `---- |
41 | 53 |
|
42 | | - x parents(check): Property -> ObjectExpression |
| 54 | + x parents(check): Property: |
| 55 | + | parent: ObjectExpression |
| 56 | + | ancestors: [ Program, VariableDeclaration, VariableDeclarator, ObjectExpression ] |
43 | 57 | ,-[files/index.js:1:15] |
44 | 58 | 1 | const obj = { a: [b, c], ...d }; |
45 | 59 | : ^^^^^^^^^ |
46 | 60 | `---- |
47 | 61 |
|
48 | | - x parents(check): ArrayExpression -> Property |
| 62 | + x parents(check): ArrayExpression: |
| 63 | + | parent: Property |
| 64 | + | ancestors: [ Program, VariableDeclaration, VariableDeclarator, ObjectExpression, Property ] |
49 | 65 | ,-[files/index.js:1:18] |
50 | 66 | 1 | const obj = { a: [b, c], ...d }; |
51 | 67 | : ^^^^^^ |
52 | 68 | `---- |
53 | 69 |
|
54 | | - x parents(check): Identifier -> ArrayExpression |
| 70 | + x parents(check): Identifier: |
| 71 | + | parent: ArrayExpression |
| 72 | + | ancestors: [ Program, VariableDeclaration, VariableDeclarator, ObjectExpression, Property, ArrayExpression ] |
55 | 73 | ,-[files/index.js:1:19] |
56 | 74 | 1 | const obj = { a: [b, c], ...d }; |
57 | 75 | : ^ |
58 | 76 | `---- |
59 | 77 |
|
60 | | - x parents(check): Identifier -> ArrayExpression |
| 78 | + x parents(check): Identifier: |
| 79 | + | parent: ArrayExpression |
| 80 | + | ancestors: [ Program, VariableDeclaration, VariableDeclarator, ObjectExpression, Property, ArrayExpression ] |
61 | 81 | ,-[files/index.js:1:22] |
62 | 82 | 1 | const obj = { a: [b, c], ...d }; |
63 | 83 | : ^ |
64 | 84 | `---- |
65 | 85 |
|
66 | | - x parents(check): SpreadElement -> ObjectExpression |
| 86 | + x parents(check): SpreadElement: |
| 87 | + | parent: ObjectExpression |
| 88 | + | ancestors: [ Program, VariableDeclaration, VariableDeclarator, ObjectExpression ] |
67 | 89 | ,-[files/index.js:1:26] |
68 | 90 | 1 | const obj = { a: [b, c], ...d }; |
69 | 91 | : ^^^^ |
70 | 92 | `---- |
71 | 93 |
|
72 | | - x parents(check): Identifier -> SpreadElement |
| 94 | + x parents(check): Identifier: |
| 95 | + | parent: SpreadElement |
| 96 | + | ancestors: [ Program, VariableDeclaration, VariableDeclarator, ObjectExpression, SpreadElement ] |
73 | 97 | ,-[files/index.js:1:29] |
74 | 98 | 1 | const obj = { a: [b, c], ...d }; |
75 | 99 | : ^ |
|
0 commit comments