mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
275 lines
6.0 KiB
Plaintext
275 lines
6.0 KiB
Plaintext
{
|
|
"type": "Program",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0,
|
|
"offset": 0
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 0,
|
|
"offset": 53
|
|
}
|
|
},
|
|
"sourceType": "script",
|
|
"body": [
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0,
|
|
"offset": 0
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 1,
|
|
"offset": 21
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6,
|
|
"offset": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 9,
|
|
"offset": 9
|
|
}
|
|
},
|
|
"name": "Foo"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 10,
|
|
"offset": 10
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 1,
|
|
"offset": 21
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "FieldDefinition",
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 2,
|
|
"offset": 14
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 3,
|
|
"offset": 15
|
|
}
|
|
},
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 2,
|
|
"offset": 14
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 3,
|
|
"offset": 15
|
|
}
|
|
},
|
|
"name": "x"
|
|
},
|
|
"static": false,
|
|
"value": null
|
|
},
|
|
{
|
|
"type": "FieldDefinition",
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 2,
|
|
"offset": 18
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 3,
|
|
"offset": 19
|
|
}
|
|
},
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 2,
|
|
"offset": 18
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 3,
|
|
"offset": 19
|
|
}
|
|
},
|
|
"name": "y"
|
|
},
|
|
"static": false,
|
|
"value": null
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 0,
|
|
"offset": 23
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 1,
|
|
"offset": 52
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 6,
|
|
"offset": 29
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 9,
|
|
"offset": 32
|
|
}
|
|
},
|
|
"name": "Foo"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 10,
|
|
"offset": 33
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 1,
|
|
"offset": 52
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "FieldDefinition",
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 2,
|
|
"offset": 37
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 3,
|
|
"offset": 38
|
|
}
|
|
},
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 2,
|
|
"offset": 37
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 3,
|
|
"offset": 38
|
|
}
|
|
},
|
|
"name": "p"
|
|
},
|
|
"static": false,
|
|
"value": null
|
|
},
|
|
{
|
|
"type": "MethodDefinition",
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 2,
|
|
"offset": 41
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 11,
|
|
"offset": 50
|
|
}
|
|
},
|
|
"computed": true,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 3,
|
|
"offset": 42
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 4,
|
|
"offset": 43
|
|
}
|
|
},
|
|
"name": "m"
|
|
},
|
|
"static": false,
|
|
"kind": "method",
|
|
"value": {
|
|
"type": "FunctionExpression",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 9,
|
|
"offset": 48
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 11,
|
|
"offset": 50
|
|
}
|
|
},
|
|
"body": []
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
} |