Skip to content

Commit 0f881ef

Browse files
test: update test426-fixtures to 9b9e225b5a63139e9a95cdd1bf874a8f0b9d1317
1 parent f38a739 commit 0f881ef

23 files changed

+653
-7
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Test cases
2+
3+
- **empty-scopes-field**: Empty original scopes field
4+
- **nil-scopes**: Multiple null original scopes
5+
- **close-start-end-position-scopes**: Scopes with very close start and end
6+
positions
7+
- **single-root-original-scope**: A single global root original scope
8+
- **nested-scopes**: Nested original scopes representing functions and blocks
9+
- **sibling-scopes**: Multiple sibling top-level functions
10+
- **scope-variables**: Scopes containing variable declarations
11+
- **multiple-root-original-scopes-with-nil**: Multiple global root scopes with a
12+
null scope in between
13+
- **sibling-ranges**: Multiple sibling root ranges
14+
- **nested-ranges**: A root range with a nested function range
15+
- **range-values**: A root range with a non-function range with bindings
16+
- **sub-range-values**: A root range with sub-range bindings
17+
- **range-call-site**: A function inlined into the root scope
18+
- **hidden-ranges**: A function range corresponding to an original block scope
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": 3,
3+
"file": "hidden-ranges.js",
4+
"sources": [
5+
"original_0.js"
6+
],
7+
"mappings": "",
8+
"names": [
9+
"global",
10+
"block"
11+
],
12+
"scopes": "BCAAA,BCBAC,CEA,CFA,ECAA,EPBAC,FEA,FFA"
13+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"file": "hidden-ranges.js",
3+
"mappings": [],
4+
"sources": [
5+
{
6+
"url": "original_0.js",
7+
"content": null,
8+
"ignored": false,
9+
"scope": {
10+
"start": {
11+
"line": 0,
12+
"column": 0
13+
},
14+
"end": {
15+
"line": 10,
16+
"column": 0
17+
},
18+
"name": null,
19+
"kind": "global",
20+
"isStackFrame": false,
21+
"variables": [],
22+
"children": [
23+
{
24+
"start": {
25+
"line": 1,
26+
"column": 0
27+
},
28+
"end": {
29+
"line": 5,
30+
"column": 0
31+
},
32+
"name": null,
33+
"kind": "block",
34+
"isStackFrame": false,
35+
"variables": [],
36+
"children": []
37+
}
38+
]
39+
}
40+
}
41+
],
42+
"ranges": [
43+
{
44+
"start": {
45+
"line": 0,
46+
"column": 0
47+
},
48+
"end": {
49+
"line": 10,
50+
"column": 0
51+
},
52+
"definitionIndex": 0,
53+
"stackFrameType": "none",
54+
"callSite": null,
55+
"bindings": [],
56+
"children": [
57+
{
58+
"start": {
59+
"line": 1,
60+
"column": 0
61+
},
62+
"end": {
63+
"line": 5,
64+
"column": 0
65+
},
66+
"definitionIndex": 1,
67+
"stackFrameType": "hidden",
68+
"callSite": null,
69+
"bindings": [],
70+
"children": []
71+
}
72+
]
73+
}
74+
]
75+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": 3,
3+
"file": "nested-ranges.js",
4+
"sources": [
5+
"original_0.js"
6+
],
7+
"mappings": "",
8+
"names": [
9+
"global",
10+
"foo",
11+
"function"
12+
],
13+
"scopes": "BCAAA,BHBACE,CEA,CFA,ECAA,EGCC,FC,FG"
14+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"file": "nested-ranges.js",
3+
"mappings": [],
4+
"sources": [
5+
{
6+
"url": "original_0.js",
7+
"content": null,
8+
"ignored": false,
9+
"scope": {
10+
"start": {
11+
"line": 0,
12+
"column": 0
13+
},
14+
"end": {
15+
"line": 10,
16+
"column": 0
17+
},
18+
"name": null,
19+
"kind": "global",
20+
"isStackFrame": false,
21+
"variables": [],
22+
"children": [
23+
{
24+
"start": {
25+
"line": 1,
26+
"column": 0
27+
},
28+
"end": {
29+
"line": 5,
30+
"column": 0
31+
},
32+
"name": "foo",
33+
"kind": "function",
34+
"isStackFrame": true,
35+
"variables": [],
36+
"children": []
37+
}
38+
]
39+
}
40+
}
41+
],
42+
"ranges": [
43+
{
44+
"start": {
45+
"line": 0,
46+
"column": 0
47+
},
48+
"end": {
49+
"line": 0,
50+
"column": 10
51+
},
52+
"definitionIndex": 0,
53+
"stackFrameType": "none",
54+
"callSite": null,
55+
"bindings": [],
56+
"children": [
57+
{
58+
"start": {
59+
"line": 0,
60+
"column": 2
61+
},
62+
"end": {
63+
"line": 0,
64+
"column": 4
65+
},
66+
"definitionIndex": 1,
67+
"stackFrameType": "original",
68+
"callSite": null,
69+
"bindings": [],
70+
"children": []
71+
}
72+
]
73+
}
74+
]
75+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": 3,
3+
"file": "range-call-site.js",
4+
"sources": [
5+
"original_0.js"
6+
],
7+
"mappings": "",
8+
"names": [
9+
"global",
10+
"inlineMe",
11+
"function"
12+
],
13+
"scopes": "BCAAA,BHBACE,CEA,CFA,ECAA,EDBAC,IAGC,FK,FJA"
14+
}
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"file": "range-call-site.js",
3+
"mappings": [],
4+
"sources": [
5+
{
6+
"url": "original_0.js",
7+
"content": null,
8+
"ignored": false,
9+
"scope": {
10+
"start": {
11+
"line": 0,
12+
"column": 0
13+
},
14+
"end": {
15+
"line": 10,
16+
"column": 0
17+
},
18+
"name": null,
19+
"kind": "global",
20+
"isStackFrame": false,
21+
"variables": [],
22+
"children": [
23+
{
24+
"start": {
25+
"line": 1,
26+
"column": 0
27+
},
28+
"end": {
29+
"line": 5,
30+
"column": 0
31+
},
32+
"name": "inlineMe",
33+
"kind": "function",
34+
"isStackFrame": true,
35+
"variables": [],
36+
"children": []
37+
}
38+
]
39+
}
40+
}
41+
],
42+
"ranges": [
43+
{
44+
"start": {
45+
"line": 0,
46+
"column": 0
47+
},
48+
"end": {
49+
"line": 10,
50+
"column": 0
51+
},
52+
"definitionIndex": 0,
53+
"stackFrameType": "none",
54+
"callSite": null,
55+
"bindings": [],
56+
"children": [
57+
{
58+
"start": {
59+
"line": 1,
60+
"column": 0
61+
},
62+
"end": {
63+
"line": 1,
64+
"column": 10
65+
},
66+
"definitionIndex": 1,
67+
"stackFrameType": "none",
68+
"callSite": {
69+
"sourceIndex": 0,
70+
"line": 6,
71+
"column": 2
72+
},
73+
"bindings": [],
74+
"children": []
75+
}
76+
]
77+
}
78+
]
79+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"version": 3,
3+
"file": "range-values.js",
4+
"sources": [
5+
"original_0.js"
6+
],
7+
"mappings": "",
8+
"names": [
9+
"global",
10+
"x",
11+
"y",
12+
"z",
13+
"block",
14+
"a",
15+
"x_val",
16+
"z_val",
17+
"a_val"
18+
],
19+
"scopes": "BCAAA,DCCC,BCBAI,DE,CEA,CFA,ECAA,GHAI,ECCC,GJ,FC,FG"
20+
}

0 commit comments

Comments
 (0)