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

118 lines
2.5 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": 20,
"offset": 20
},
"end": {
"line": 1,
"column": 23,
"offset": 23
}
}
},
"loc": {
"start": {
"line": 1,
"column": 18,
"offset": 18
},
"end": {
"line": 1,
"column": 24,
"offset": 24
}
}
},
"children": [
{
"type": "Literal",
"value": "@test content",
"raw": "@test content",
"loc": {
"start": {
"line": 1,
"column": 5,
"offset": 5
},
"end": {
"line": 1,
"column": 18,
"offset": 18
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 24,
"offset": 24
}
}
},
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 24,
"offset": 24
}
}
}
]
}