mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
377 lines
9.4 KiB
Plaintext
377 lines
9.4 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": [
|
|
{
|
|
"type": "JSXAttribute",
|
|
"name": {
|
|
"type": "JSXNamespacedName",
|
|
"namespace": {
|
|
"type": "JSXIdentifier",
|
|
"name": "n",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 3,
|
|
"offset": 3
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 4,
|
|
"offset": 4
|
|
}
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"name": "foo",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 5,
|
|
"offset": 5
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 8,
|
|
"offset": 8
|
|
}
|
|
}
|
|
},
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 3,
|
|
"offset": 3
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 8,
|
|
"offset": 8
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"type": "Literal",
|
|
"value": "bar",
|
|
"raw": "\"bar\"",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 9,
|
|
"offset": 9
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 14,
|
|
"offset": 14
|
|
}
|
|
}
|
|
},
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 3,
|
|
"offset": 3
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 14,
|
|
"offset": 14
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0,
|
|
"offset": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 15,
|
|
"offset": 15
|
|
}
|
|
}
|
|
},
|
|
"closingElement": {
|
|
"type": "JSXClosingElement",
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"name": "a",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 38,
|
|
"offset": 38
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 39,
|
|
"offset": 39
|
|
}
|
|
}
|
|
},
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 36,
|
|
"offset": 36
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 40,
|
|
"offset": 40
|
|
}
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "Literal",
|
|
"value": " ",
|
|
"raw": " ",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 15,
|
|
"offset": 15
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 16,
|
|
"offset": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "JSXExpressionContainer",
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"name": "value",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 17,
|
|
"offset": 17
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 22,
|
|
"offset": 22
|
|
}
|
|
}
|
|
},
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 16,
|
|
"offset": 16
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 23,
|
|
"offset": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Literal",
|
|
"value": " ",
|
|
"raw": " ",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 23,
|
|
"offset": 23
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 24,
|
|
"offset": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "JSXElement",
|
|
"openingElement": {
|
|
"type": "JSXOpeningElement",
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"name": "b",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 25,
|
|
"offset": 25
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 26,
|
|
"offset": 26
|
|
}
|
|
}
|
|
},
|
|
"selfClosing": false,
|
|
"attributes": [],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 24,
|
|
"offset": 24
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 27,
|
|
"offset": 27
|
|
}
|
|
}
|
|
},
|
|
"closingElement": {
|
|
"type": "JSXClosingElement",
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"name": "b",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 34,
|
|
"offset": 34
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 35,
|
|
"offset": 35
|
|
}
|
|
}
|
|
},
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 32,
|
|
"offset": 32
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 36,
|
|
"offset": 36
|
|
}
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "JSXElement",
|
|
"openingElement": {
|
|
"type": "JSXOpeningElement",
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"name": "c",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 28,
|
|
"offset": 28
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 29,
|
|
"offset": 29
|
|
}
|
|
}
|
|
},
|
|
"selfClosing": true,
|
|
"attributes": [],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 27,
|
|
"offset": 27
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 32,
|
|
"offset": 32
|
|
}
|
|
}
|
|
},
|
|
"closingElement": null,
|
|
"children": [],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 27,
|
|
"offset": 27
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 32,
|
|
"offset": 32
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 24,
|
|
"offset": 24
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 36,
|
|
"offset": 36
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0,
|
|
"offset": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 40,
|
|
"offset": 40
|
|
}
|
|
}
|
|
},
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0,
|
|
"offset": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 40,
|
|
"offset": 40
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |