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

219 lines
6.5 KiB
JSON

{
"type": "Script",
"span": {
"start": 52,
"end": 178,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 52,
"end": 178,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 58,
"end": 177,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 58,
"end": 61,
"ctxt": 0
},
"value": "str",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 64,
"end": 177,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 64,
"end": 169,
"ctxt": 0
},
"object": {
"type": "NewExpression",
"span": {
"start": 64,
"end": 162,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 68,
"end": 85,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 68,
"end": 72,
"ctxt": 0
},
"value": "Intl",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 73,
"end": 85,
"ctxt": 0
},
"value": "NumberFormat",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 86,
"end": 93,
"ctxt": 0
},
"value": "en-NZ",
"raw": "'en-NZ'"
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 95,
"end": 161,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 97,
"end": 102,
"ctxt": 0
},
"value": "style",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 104,
"end": 114,
"ctxt": 0
},
"value": "currency",
"raw": "'currency'"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 116,
"end": 124,
"ctxt": 0
},
"value": "currency",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 126,
"end": 131,
"ctxt": 0
},
"value": "NZD",
"raw": "'NZD'"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 133,
"end": 145,
"ctxt": 0
},
"value": "currencySign",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 147,
"end": 159,
"ctxt": 0
},
"value": "accounting",
"raw": "'accounting'"
}
}
]
}
}
],
"typeArguments": null
},
"property": {
"type": "Identifier",
"span": {
"start": 163,
"end": 169,
"ctxt": 0
},
"value": "format",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 170,
"end": 176,
"ctxt": 0
},
"value": 999999.0
}
}
],
"typeArguments": null
},
"definite": false
}
]
}
],
"interpreter": null
}