freeCodeCamp/tools/challenge-parser/parser/__fixtures__/ast-erm-in-solution.json

134 lines
3.4 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 }
}
}
],
"position": {
"start": { "line": 1, "column": 1, "offset": 0 },
"end": { "line": 1, "column": 11, "offset": 10 }
}
},
{
"type": "heading",
"depth": 2,
"children": [
{
"type": "text",
"value": "--seed-contents--",
"position": {
"start": { "line": 3, "column": 4, "offset": 15 },
"end": { "line": 3, "column": 21, "offset": 32 }
}
}
],
"position": {
"start": { "line": 3, "column": 1, "offset": 12 },
"end": { "line": 3, "column": 21, "offset": 32 }
}
},
{
"type": "code",
"lang": "html",
"meta": null,
"value": "<html>\n <body>\n </body>\n</html>",
"position": {
"start": { "line": 5, "column": 1, "offset": 34 },
"end": { "line": 10, "column": 4, "offset": 79 }
}
},
{
"type": "code",
"lang": "css",
"meta": null,
"value": "body {\n background: green;\n}",
"position": {
"start": { "line": 12, "column": 1, "offset": 81 },
"end": { "line": 16, "column": 4, "offset": 121 }
}
},
{
"type": "code",
"lang": "js",
"meta": null,
"value": "var x = 'y';",
"position": {
"start": { "line": 18, "column": 1, "offset": 123 },
"end": { "line": 20, "column": 4, "offset": 145 }
}
},
{
"type": "heading",
"depth": 1,
"children": [
{
"type": "text",
"value": "--solutions--",
"position": {
"start": { "line": 23, "column": 3, "offset": 150 },
"end": { "line": 23, "column": 16, "offset": 163 }
}
}
],
"position": {
"start": { "line": 23, "column": 1, "offset": 148 },
"end": { "line": 23, "column": 16, "offset": 163 }
}
},
{
"type": "leafDirective",
"name": "id",
"attributes": { "id": "html-key" },
"children": [],
"position": {
"start": { "line": 25, "column": 1, "offset": 165 },
"end": { "line": 25, "column": 16, "offset": 180 }
}
},
{
"type": "code",
"lang": "html",
"meta": null,
"value": "<html>\n <body>\n </body>\n</html>",
"position": {
"start": { "line": 27, "column": 1, "offset": 182 },
"end": { "line": 32, "column": 4, "offset": 227 }
}
},
{
"type": "code",
"lang": "css",
"meta": null,
"value": "body {\n--fcc-editable-region--\n background: white;\n--fcc-editable-region--\n}",
"position": {
"start": { "line": 34, "column": 1, "offset": 229 },
"end": { "line": 40, "column": 4, "offset": 317 }
}
},
{
"type": "code",
"lang": "js",
"meta": null,
"value": "var x = 'y';",
"position": {
"start": { "line": 42, "column": 1, "offset": 319 },
"end": { "line": 44, "column": 4, "offset": 341 }
}
}
],
"position": {
"start": { "line": 1, "column": 1, "offset": 0 },
"end": { "line": 45, "column": 1, "offset": 342 }
}
}