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

361 lines
9.6 KiB
JSON

{
"type": "Script",
"span": {
"start": 155,
"end": 339,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 155,
"end": 206,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 161,
"end": 205,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 161,
"end": 168,
"ctxt": 0
},
"value": "locales",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 171,
"end": 205,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 172,
"end": 177,
"ctxt": 0
},
"value": "ban",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 179,
"end": 195,
"ctxt": 0
},
"value": "id-u-co-pinyin",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 197,
"end": 204,
"ctxt": 0
},
"value": "de-ID",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 207,
"end": 260,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 213,
"end": 259,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 213,
"end": 220,
"ctxt": 0
},
"value": "options",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "TsConstAssertion",
"span": {
"start": 223,
"end": 259,
"ctxt": 0
},
"expression": {
"type": "ObjectExpression",
"span": {
"start": 223,
"end": 250,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 225,
"end": 238,
"ctxt": 0
},
"value": "localeMatcher",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 240,
"end": 248,
"ctxt": 0
},
"value": "lookup",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
}
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 261,
"end": 339,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 261,
"end": 338,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 261,
"end": 272,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 261,
"end": 268,
"ctxt": 0
},
"value": "console",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 269,
"end": 272,
"ctxt": 0
},
"value": "log",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "CallExpression",
"span": {
"start": 273,
"end": 337,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 273,
"end": 331,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 273,
"end": 326,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 273,
"end": 308,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 273,
"end": 289,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 273,
"end": 277,
"ctxt": 0
},
"value": "Intl",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 278,
"end": 289,
"ctxt": 0
},
"value": "PluralRules",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 290,
"end": 308,
"ctxt": 0
},
"value": "supportedLocalesOf",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 309,
"end": 316,
"ctxt": 0
},
"value": "locales",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 318,
"end": 325,
"ctxt": 0
},
"value": "options",
"optional": false
}
}
],
"typeArguments": null
},
"property": {
"type": "Identifier",
"span": {
"start": 327,
"end": 331,
"ctxt": 0
},
"value": "join",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 332,
"end": 336,
"ctxt": 0
},
"value": ", ",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
],
"typeArguments": null
}
}
],
"typeArguments": null
}
}
],
"interpreter": null
}