| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff 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 | ||
| Original file line number | Diff line number | Diff 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 | + } | ||
| Original file line number | Diff line number | Diff 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 | + } | ||
| Original file line number | Diff line number | Diff 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 | + } | ||
| Original file line number | Diff line number | Diff 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 | + } | ||
| Original file line number | Diff line number | Diff 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 | + } | ||
| Original file line number | Diff line number | Diff 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 | + } | ||
| Original file line number | Diff line number | Diff 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 | + } | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments