278 lines
7.3 KiB
JSON
278 lines
7.3 KiB
JSON
{
|
|
"type": "Program",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "JSXElement",
|
|
"openingElement": {
|
|
"type": "JSXOpeningElement",
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"name": "a",
|
|
"range": [
|
|
1,
|
|
2
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 1
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 2
|
|
}
|
|
}
|
|
},
|
|
"selfClosing": true,
|
|
"attributes": [
|
|
{
|
|
"type": "JSXAttribute",
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"name": "b",
|
|
"range": [
|
|
3,
|
|
4
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 3
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 4
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "JSXExpressionContainer",
|
|
"expression": {
|
|
"type": "ConditionalExpression",
|
|
"test": {
|
|
"type": "Identifier",
|
|
"name": "x",
|
|
"range": [
|
|
6,
|
|
7
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "JSXElement",
|
|
"openingElement": {
|
|
"type": "JSXOpeningElement",
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"name": "c",
|
|
"range": [
|
|
11,
|
|
12
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"selfClosing": true,
|
|
"attributes": [],
|
|
"range": [
|
|
10,
|
|
15
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"closingElement": null,
|
|
"children": [],
|
|
"range": [
|
|
10,
|
|
15
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "JSXElement",
|
|
"openingElement": {
|
|
"type": "JSXOpeningElement",
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"name": "d",
|
|
"range": [
|
|
19,
|
|
20
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"selfClosing": true,
|
|
"attributes": [],
|
|
"range": [
|
|
18,
|
|
23
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"closingElement": null,
|
|
"children": [],
|
|
"range": [
|
|
18,
|
|
23
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
6,
|
|
23
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
5,
|
|
24
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
3,
|
|
24
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 3
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 24
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
27
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"closingElement": null,
|
|
"children": [],
|
|
"range": [
|
|
0,
|
|
27
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"range": [
|
|
0,
|
|
27
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 27
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |