Files
freeCodeCamp/tools/challenge-parser/parser/__fixtures__/ast-empty-before.json
Oliver Eyton-Williams a3a678b7af chore: remove old parser
2021-02-02 09:51:02 +05:30

145 lines
3.7 KiB
JSON

{
"type": "root",
"children": [
{
"type": "heading",
"depth": 1,
"children": [
{
"type": "text",
"value": "--seed--",
"position": {
"start": { "line": 1, "column": 3, "offset": 2 },
"end": { "line": 1, "column": 11, "offset": 10 },
"indent": []
}
}
],
"position": {
"start": { "line": 1, "column": 1, "offset": 0 },
"end": { "line": 1, "column": 11, "offset": 10 },
"indent": []
}
},
{
"type": "heading",
"depth": 2,
"children": [
{
"type": "text",
"value": "--before-user-code--",
"position": {
"start": { "line": 3, "column": 4, "offset": 15 },
"end": { "line": 3, "column": 24, "offset": 35 },
"indent": []
}
}
],
"position": {
"start": { "line": 3, "column": 1, "offset": 12 },
"end": { "line": 3, "column": 24, "offset": 35 },
"indent": []
}
},
{
"type": "heading",
"depth": 2,
"children": [
{
"type": "text",
"value": "--seed-contents--",
"position": {
"start": { "line": 7, "column": 4, "offset": 42 },
"end": { "line": 7, "column": 21, "offset": 59 },
"indent": []
}
}
],
"position": {
"start": { "line": 7, "column": 1, "offset": 39 },
"end": { "line": 7, "column": 21, "offset": 59 },
"indent": []
}
},
{
"type": "code",
"lang": "html",
"meta": null,
"value": "<html>\n <body>\n </body>\n</html>",
"position": {
"start": { "line": 9, "column": 1, "offset": 61 },
"end": { "line": 14, "column": 4, "offset": 106 },
"indent": [1, 1, 1, 1, 1]
}
},
{
"type": "code",
"lang": "css",
"meta": null,
"value": "body {\n background: green;\n}",
"position": {
"start": { "line": 16, "column": 1, "offset": 108 },
"end": { "line": 20, "column": 4, "offset": 148 },
"indent": [1, 1, 1, 1]
}
},
{
"type": "code",
"lang": "js",
"meta": null,
"value": "var x = 'y';",
"position": {
"start": { "line": 22, "column": 1, "offset": 150 },
"end": { "line": 24, "column": 4, "offset": 172 },
"indent": [1, 1]
}
},
{
"type": "heading",
"depth": 2,
"children": [
{
"type": "text",
"value": "--after-user-code--",
"position": {
"start": { "line": 26, "column": 4, "offset": 177 },
"end": { "line": 26, "column": 23, "offset": 196 },
"indent": []
}
}
],
"position": {
"start": { "line": 26, "column": 1, "offset": 174 },
"end": { "line": 26, "column": 23, "offset": 196 },
"indent": []
}
},
{
"type": "code",
"lang": "css",
"meta": null,
"value": "body {\n background: blue;\n}",
"position": {
"start": { "line": 28, "column": 1, "offset": 198 },
"end": { "line": 32, "column": 4, "offset": 237 },
"indent": [1, 1, 1, 1]
}
},
{
"type": "code",
"lang": "js",
"meta": null,
"value": "function teardown(params) {\n // after\n}",
"position": {
"start": { "line": 34, "column": 1, "offset": 239 },
"end": { "line": 38, "column": 4, "offset": 289 },
"indent": [1, 1, 1, 1]
}
}
],
"position": {
"start": { "line": 1, "column": 1, "offset": 0 },
"end": { "line": 39, "column": 1, "offset": 290 }
}
}