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

228 lines
5.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": [
{
"type": "JSXAttribute",
"name": {
"type": "JSXIdentifier",
"name": "pre",
"loc": {
"start": {
"line": 1,
"column": 5,
"offset": 5
},
"end": {
"line": 1,
"column": 8,
"offset": 8
}
}
},
"value": {
"type": "Literal",
"value": "leading",
"raw": "\"leading\"",
"loc": {
"start": {
"line": 1,
"column": 9,
"offset": 9
},
"end": {
"line": 1,
"column": 18,
"offset": 18
}
}
},
"loc": {
"start": {
"line": 1,
"column": 5,
"offset": 5
},
"end": {
"line": 1,
"column": 18,
"offset": 18
}
}
},
{
"type": "JSXAttribute",
"name": {
"type": "JSXIdentifier",
"name": "pre2",
"loc": {
"start": {
"line": 1,
"column": 19,
"offset": 19
},
"end": {
"line": 1,
"column": 23,
"offset": 23
}
}
},
"value": {
"type": "Literal",
"value": "attribute",
"raw": "\"attribute\"",
"loc": {
"start": {
"line": 1,
"column": 24,
"offset": 24
},
"end": {
"line": 1,
"column": 35,
"offset": 35
}
}
},
"loc": {
"start": {
"line": 1,
"column": 19,
"offset": 19
},
"end": {
"line": 1,
"column": 35,
"offset": 35
}
}
},
{
"type": "JSXSpreadAttribute",
"argument": {
"type": "Identifier",
"name": "props",
"loc": {
"start": {
"line": 1,
"column": 40,
"offset": 40
},
"end": {
"line": 1,
"column": 45,
"offset": 45
}
}
},
"loc": {
"start": {
"line": 1,
"column": 36,
"offset": 36
},
"end": {
"line": 1,
"column": 46,
"offset": 46
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 47,
"offset": 47
}
}
},
"closingElement": {
"type": "JSXClosingElement",
"name": {
"type": "JSXIdentifier",
"name": "div",
"loc": {
"start": {
"line": 1,
"column": 49,
"offset": 49
},
"end": {
"line": 1,
"column": 52,
"offset": 52
}
}
},
"loc": {
"start": {
"line": 1,
"column": 47,
"offset": 47
},
"end": {
"line": 1,
"column": 53,
"offset": 53
}
}
},
"children": [],
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 53,
"offset": 53
}
}
},
"loc": {
"start": {
"line": 1,
"column": 0,
"offset": 0
},
"end": {
"line": 1,
"column": 53,
"offset": 53
}
}
}
]
}