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

131 lines
2.8 KiB
Plaintext

{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "JSXElement",
"openingElement": {
"type": "JSXOpeningElement",
"name": {
"type": "JSXIdentifier",
"name": "a",
"loc": {
"start": {
"line": 1,
"column": 1,
"offset": 1
},
"end": {
"line": 1,
"column": 2,
"offset": 2
}
}
},
"selfClosing": false,
"attributes": [],
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 3,
"offset": 3
}
}
},
"closingElement": {
"type": "JSXClosingElement",
"name": {
"type": "JSXIdentifier",
"name": "a",
"loc": {
"start": {
"line": 1,
"column": 30,
"offset": 30
},
"end": {
"line": 1,
"column": 31,
"offset": 31
}
}
},
"loc": {
"start": {
"line": 1,
"column": 28,
"offset": 28
},
"end": {
"line": 1,
"column": 32,
"offset": 32
}
}
},
"children": [
{
"type": "JSXExpressionContainer",
"expression": {
"type": "JSXEmptyExpression",
"loc": {
"start": {
"line": 1,
"column": 4,
"offset": 4
},
"end": {
"line": 1,
"column": 27,
"offset": 27
}
}
},
"loc": {
"start": {
"line": 1,
"column": 3,
"offset": 3
},
"end": {
"line": 1,
"column": 28,
"offset": 28
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 32,
"offset": 32
}
}
},
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 32,
"offset": 32
}
}
}
]
}