swc/crates/swc_ecma_parser/tests/tsc/numberFormatCurrencySignResolved.json
2022-03-22 07:54:08 +00:00

266 lines
7.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 52,
"end": 228,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 52,
"end": 185,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 58,
"end": 184,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 58,
"end": 65,
"ctxt": 0
},
"value": "options",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 68,
"end": 184,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 68,
"end": 182,
"ctxt": 0
},
"object": {
"type": "NewExpression",
"span": {
"start": 68,
"end": 166,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 72,
"end": 89,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 72,
"end": 76,
"ctxt": 0
},
"value": "Intl",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 77,
"end": 89,
"ctxt": 0
},
"value": "NumberFormat",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 90,
"end": 97,
"ctxt": 0
},
"value": "en-NZ",
"raw": "'en-NZ'"
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 99,
"end": 165,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 101,
"end": 106,
"ctxt": 0
},
"value": "style",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 108,
"end": 118,
"ctxt": 0
},
"value": "currency",
"raw": "'currency'"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 120,
"end": 128,
"ctxt": 0
},
"value": "currency",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 130,
"end": 135,
"ctxt": 0
},
"value": "NZD",
"raw": "'NZD'"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 137,
"end": 149,
"ctxt": 0
},
"value": "currencySign",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 151,
"end": 163,
"ctxt": 0
},
"value": "accounting",
"raw": "'accounting'"
}
}
]
}
}
],
"typeArguments": null
},
"property": {
"type": "Identifier",
"span": {
"start": 167,
"end": 182,
"ctxt": 0
},
"value": "resolvedOptions",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 186,
"end": 228,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 192,
"end": 227,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 192,
"end": 204,
"ctxt": 0
},
"value": "currencySign",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 207,
"end": 227,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 207,
"end": 214,
"ctxt": 0
},
"value": "options",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 215,
"end": 227,
"ctxt": 0
},
"value": "currencySign",
"optional": false
}
},
"definite": false
}
]
}
],
"interpreter": null
}