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

102 lines
2.2 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": true,
"attributes": [
{
"type": "JSXSpreadAttribute",
"argument": {
"type": "Identifier",
"name": "props",
"loc": {
"start": {
"line": 1,
"column": 9,
"offset": 9
},
"end": {
"line": 1,
"column": 14,
"offset": 14
}
}
},
"loc": {
"start": {
"line": 1,
"column": 5,
"offset": 5
},
"end": {
"line": 1,
"column": 15,
"offset": 15
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 18,
"offset": 18
}
}
},
"closingElement": null,
"children": [],
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 18,
"offset": 18
}
}
},
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 18,
"offset": 18
}
}
}
]
}