Files

79 lines
3.0 KiB
JSON

{
"type": "File",
"start":0,"end":61,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":61}},
"errors": [
"SyntaxError: Spaces between `%` and `checks` are not allowed here. (1:17)"
],
"program": {
"type": "Program",
"start":0,"end":61,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":61}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":61,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":61}},
"id": {
"type": "Identifier",
"start":9,"end":12,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":12,"index":12},"identifierName":"foo"},
"name": "foo"
},
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":13,"end":14,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":14,"index":14},"identifierName":"x"},
"name": "x"
}
],
"predicate": {
"type": "InferredPredicate",
"start":17,"end":25,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":25,"index":25}}
},
"returnType": null,
"body": {
"type": "BlockStatement",
"start":26,"end":61,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":3,"column":1,"index":61}},
"body": [
{
"type": "ReturnStatement",
"start":30,"end":59,"loc":{"start":{"line":2,"column":2,"index":30},"end":{"line":2,"column":31,"index":59}},
"argument": {
"type": "BinaryExpression",
"start":37,"end":58,"loc":{"start":{"line":2,"column":9,"index":37},"end":{"line":2,"column":30,"index":58}},
"left": {
"type": "UnaryExpression",
"start":37,"end":45,"loc":{"start":{"line":2,"column":9,"index":37},"end":{"line":2,"column":17,"index":45}},
"operator": "typeof",
"prefix": true,
"argument": {
"type": "Identifier",
"start":44,"end":45,"loc":{"start":{"line":2,"column":16,"index":44},"end":{"line":2,"column":17,"index":45},"identifierName":"x"},
"name": "x"
}
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start":50,"end":58,"loc":{"start":{"line":2,"column":22,"index":50},"end":{"line":2,"column":30,"index":58}},
"extra": {
"rawValue": "string",
"raw": "\"string\""
},
"value": "string"
}
}
}
],
"directives": []
}
}
],
"directives": [],
"extra": {
"topLevelAwait": false
}
}
}