swc/crates/swc_ecma_parser/tests/tsc/numberFormatCurrencySign.json
2022-02-04 17:08:38 +09:00

235 lines
7.2 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",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"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",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"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",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"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",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
}
}
],
"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
}