mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
88 lines
3.6 KiB
JSON
88 lines
3.6 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":54,"index":54}},
|
|
"errors": [
|
|
"SyntaxError: Spaces between `%` and `checks` are not allowed here. (1:20)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":54,"index":54}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":54,"index":54}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":4,"end":53,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":53,"index":53}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"f"},
|
|
"name": "f"
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start":8,"end":53,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":53,"index":53}},
|
|
"predicate": {
|
|
"type": "InferredPredicate",
|
|
"start":20,"end":28,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":28,"index":28}}
|
|
},
|
|
"returnType": null,
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start":9,"end":17,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":17,"index":17},"identifierName":"x"},
|
|
"name": "x",
|
|
"typeAnnotation": {
|
|
"type": "TypeAnnotation",
|
|
"start":10,"end":17,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":17,"index":17}},
|
|
"typeAnnotation": {
|
|
"type": "MixedTypeAnnotation",
|
|
"start":12,"end":17,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":17,"index":17}}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BinaryExpression",
|
|
"start":32,"end":53,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":53,"index":53}},
|
|
"left": {
|
|
"type": "UnaryExpression",
|
|
"start":32,"end":40,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":40,"index":40}},
|
|
"operator": "typeof",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start":39,"end":40,"loc":{"start":{"line":1,"column":39,"index":39},"end":{"line":1,"column":40,"index":40},"identifierName":"x"},
|
|
"name": "x"
|
|
}
|
|
},
|
|
"operator": "===",
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start":45,"end":53,"loc":{"start":{"line":1,"column":45,"index":45},"end":{"line":1,"column":53,"index":53}},
|
|
"extra": {
|
|
"rawValue": "string",
|
|
"raw": "\"string\""
|
|
},
|
|
"value": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "var"
|
|
}
|
|
],
|
|
"directives": [],
|
|
"extra": {
|
|
"topLevelAwait": false
|
|
}
|
|
}
|
|
}
|