Files
codeql/javascript/extractor/parser-tests/jcorn-jsx/test17.ast
2018-11-07 07:48:25 +00:00

168 lines
3.8 KiB
Plaintext

{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "JSXElement",
"openingElement": {
"type": "JSXOpeningElement",
"name": {
"type": "JSXIdentifier",
"name": "div",
"loc": {
"start": {
"line": 1,
"column": 1,
"offset": 1
},
"end": {
"line": 1,
"column": 4,
"offset": 4
}
}
},
"selfClosing": false,
"attributes": [],
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 5,
"offset": 5
}
}
},
"closingElement": {
"type": "JSXClosingElement",
"name": {
"type": "JSXIdentifier",
"name": "div",
"loc": {
"start": {
"line": 1,
"column": 37,
"offset": 37
},
"end": {
"line": 1,
"column": 40,
"offset": 40
}
}
},
"loc": {
"start": {
"line": 1,
"column": 35,
"offset": 35
},
"end": {
"line": 1,
"column": 41,
"offset": 41
}
}
},
"children": [
{
"type": "JSXElement",
"openingElement": {
"type": "JSXOpeningElement",
"name": {
"type": "JSXIdentifier",
"name": "br",
"loc": {
"start": {
"line": 1,
"column": 6,
"offset": 6
},
"end": {
"line": 1,
"column": 8,
"offset": 8
}
}
},
"selfClosing": true,
"attributes": [],
"loc": {
"start": {
"line": 1,
"column": 5,
"offset": 5
},
"end": {
"line": 1,
"column": 11,
"offset": 11
}
}
},
"closingElement": null,
"children": [],
"loc": {
"start": {
"line": 1,
"column": 5,
"offset": 5
},
"end": {
"line": 1,
"column": 11,
"offset": 11
}
}
},
{
"type": "Literal",
"value": "7x invalid-js-identifier",
"raw": "7x invalid-js-identifier",
"loc": {
"start": {
"line": 1,
"column": 11,
"offset": 11
},
"end": {
"line": 1,
"column": 35,
"offset": 35
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 41,
"offset": 41
}
}
},
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 41,
"offset": 41
}
}
}
]
}