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

498 lines
14 KiB
Plaintext

{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 52,
"offset": 52
}
},
"expression": {
"type": "JSXElement",
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 52,
"offset": 52
}
},
"openingElement": {
"type": "JSXOpeningElement",
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 31,
"offset": 31
}
},
"attributes": [
{
"type": "JSXAttribute",
"loc": {
"start": {
"line": 1,
"column": 3,
"offset": 3
},
"end": {
"line": 1,
"column": 16,
"offset": 16
}
},
"name": {
"type": "JSXIdentifier",
"loc": {
"start": {
"line": 1,
"column": 3,
"offset": 3
},
"end": {
"line": 1,
"column": 5,
"offset": 5
}
},
"name": "aa"
},
"value": {
"type": "JSXExpressionContainer",
"loc": {
"start": {
"line": 1,
"column": 6,
"offset": 6
},
"end": {
"line": 1,
"column": 16,
"offset": 16
}
},
"expression": {
"type": "MemberExpression",
"loc": {
"start": {
"line": 1,
"column": 7,
"offset": 7
},
"end": {
"line": 1,
"column": 15,
"offset": 15
}
},
"object": {
"type": "MemberExpression",
"loc": {
"start": {
"line": 1,
"column": 7,
"offset": 7
},
"end": {
"line": 1,
"column": 12,
"offset": 12
}
},
"object": {
"type": "Identifier",
"loc": {
"start": {
"line": 1,
"column": 7,
"offset": 7
},
"end": {
"line": 1,
"column": 9,
"offset": 9
}
},
"name": "aa"
},
"property": {
"type": "Identifier",
"loc": {
"start": {
"line": 1,
"column": 10,
"offset": 10
},
"end": {
"line": 1,
"column": 12,
"offset": 12
}
},
"name": "bb"
},
"computed": false
},
"property": {
"type": "Identifier",
"loc": {
"start": {
"line": 1,
"column": 13,
"offset": 13
},
"end": {
"line": 1,
"column": 15,
"offset": 15
}
},
"name": "cc"
},
"computed": false
}
}
},
{
"type": "JSXAttribute",
"loc": {
"start": {
"line": 1,
"column": 17,
"offset": 17
},
"end": {
"line": 1,
"column": 30,
"offset": 30
}
},
"name": {
"type": "JSXIdentifier",
"loc": {
"start": {
"line": 1,
"column": 17,
"offset": 17
},
"end": {
"line": 1,
"column": 19,
"offset": 19
}
},
"name": "bb"
},
"value": {
"type": "JSXExpressionContainer",
"loc": {
"start": {
"line": 1,
"column": 20,
"offset": 20
},
"end": {
"line": 1,
"column": 30,
"offset": 30
}
},
"expression": {
"type": "MemberExpression",
"loc": {
"start": {
"line": 1,
"column": 21,
"offset": 21
},
"end": {
"line": 1,
"column": 29,
"offset": 29
}
},
"object": {
"type": "MemberExpression",
"loc": {
"start": {
"line": 1,
"column": 21,
"offset": 21
},
"end": {
"line": 1,
"column": 26,
"offset": 26
}
},
"object": {
"type": "Identifier",
"loc": {
"start": {
"line": 1,
"column": 21,
"offset": 21
},
"end": {
"line": 1,
"column": 23,
"offset": 23
}
},
"name": "bb"
},
"property": {
"type": "Identifier",
"loc": {
"start": {
"line": 1,
"column": 24,
"offset": 24
},
"end": {
"line": 1,
"column": 26,
"offset": 26
}
},
"name": "cc"
},
"computed": false
},
"property": {
"type": "Identifier",
"loc": {
"start": {
"line": 1,
"column": 27,
"offset": 27
},
"end": {
"line": 1,
"column": 29,
"offset": 29
}
},
"name": "dd"
},
"computed": false
}
}
}
],
"name": {
"type": "JSXIdentifier",
"loc": {
"start": {
"line": 1,
"column": 1,
"offset": 1
},
"end": {
"line": 1,
"column": 2,
"offset": 2
}
},
"name": "A"
},
"selfClosing": false
},
"closingElement": {
"type": "JSXClosingElement",
"loc": {
"start": {
"line": 1,
"column": 48,
"offset": 48
},
"end": {
"line": 1,
"column": 52,
"offset": 52
}
},
"name": {
"type": "JSXIdentifier",
"loc": {
"start": {
"line": 1,
"column": 50,
"offset": 50
},
"end": {
"line": 1,
"column": 51,
"offset": 51
}
},
"name": "A"
}
},
"children": [
{
"type": "JSXElement",
"loc": {
"start": {
"line": 1,
"column": 31,
"offset": 31
},
"end": {
"line": 1,
"column": 48,
"offset": 48
}
},
"openingElement": {
"type": "JSXOpeningElement",
"loc": {
"start": {
"line": 1,
"column": 31,
"offset": 31
},
"end": {
"line": 1,
"column": 36,
"offset": 36
}
},
"attributes": [],
"name": {
"type": "JSXIdentifier",
"loc": {
"start": {
"line": 1,
"column": 32,
"offset": 32
},
"end": {
"line": 1,
"column": 35,
"offset": 35
}
},
"name": "div"
},
"selfClosing": false
},
"closingElement": {
"type": "JSXClosingElement",
"loc": {
"start": {
"line": 1,
"column": 42,
"offset": 42
},
"end": {
"line": 1,
"column": 48,
"offset": 48
}
},
"name": {
"type": "JSXIdentifier",
"loc": {
"start": {
"line": 1,
"column": 44,
"offset": 44
},
"end": {
"line": 1,
"column": 47,
"offset": 47
}
},
"name": "div"
}
},
"children": [
{
"type": "JSXExpressionContainer",
"loc": {
"start": {
"line": 1,
"column": 36,
"offset": 36
},
"end": {
"line": 1,
"column": 42,
"offset": 42
}
},
"expression": {
"type": "MemberExpression",
"loc": {
"start": {
"line": 1,
"column": 37,
"offset": 37
},
"end": {
"line": 1,
"column": 41,
"offset": 41
}
},
"object": {
"type": "Identifier",
"loc": {
"start": {
"line": 1,
"column": 37,
"offset": 37
},
"end": {
"line": 1,
"column": 39,
"offset": 39
}
},
"name": "aa"
},
"property": {
"type": "Identifier",
"loc": {
"start": {
"line": 1,
"column": 40,
"offset": 40
},
"end": {
"line": 1,
"column": 41,
"offset": 41
}
},
"name": "b"
},
"computed": false
}
}
]
}
]
}
}
]
}