freeCodeCamp/tools/challenge-parser/parser/__fixtures__/ast-seed-keys.json

96 lines
2.4 KiB
JSON
Raw Normal View History

{
"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": "leafDirective",
"name": "id",
"attributes": { "id": "key-for-css" },
"children": [],
"position": {
"start": { "line": 12, "column": 1, "offset": 81 },
"end": { "line": 12, "column": 19, "offset": 99 }
}
},
{
"type": "code",
"lang": "css",
"meta": null,
"value": "body {\n background: green;\n}",
"position": {
"start": { "line": 14, "column": 1, "offset": 101 },
"end": { "line": 18, "column": 4, "offset": 141 }
}
},
{
"type": "leafDirective",
"name": "id",
"attributes": { "id": "key-for-js" },
"children": [],
"position": {
"start": { "line": 20, "column": 1, "offset": 143 },
"end": { "line": 20, "column": 18, "offset": 160 }
}
},
{
"type": "code",
"lang": "js",
"meta": null,
"value": "var x = 'y';",
"position": {
"start": { "line": 22, "column": 1, "offset": 162 },
"end": { "line": 24, "column": 4, "offset": 184 }
}
}
],
"position": {
"start": { "line": 1, "column": 1, "offset": 0 },
"end": { "line": 25, "column": 1, "offset": 185 }
}
}