mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
619 lines
17 KiB
JSON
619 lines
17 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 159,
|
|
"end": 632,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 159,
|
|
"end": 268,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "const",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 165,
|
|
"end": 267,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 165,
|
|
"end": 178,
|
|
"ctxt": 0
|
|
},
|
|
"value": "timezoneNames",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "TsConstAssertion",
|
|
"span": {
|
|
"start": 181,
|
|
"end": 267,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "ArrayExpression",
|
|
"span": {
|
|
"start": 181,
|
|
"end": 258,
|
|
"ctxt": 0
|
|
},
|
|
"elements": [
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 182,
|
|
"end": 189,
|
|
"ctxt": 0
|
|
},
|
|
"value": "short",
|
|
"raw": "'short'"
|
|
}
|
|
},
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 191,
|
|
"end": 197,
|
|
"ctxt": 0
|
|
},
|
|
"value": "long",
|
|
"raw": "'long'"
|
|
}
|
|
},
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 199,
|
|
"end": 212,
|
|
"ctxt": 0
|
|
},
|
|
"value": "shortOffset",
|
|
"raw": "'shortOffset'"
|
|
}
|
|
},
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 214,
|
|
"end": 226,
|
|
"ctxt": 0
|
|
},
|
|
"value": "longOffset",
|
|
"raw": "'longOffset'"
|
|
}
|
|
},
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 228,
|
|
"end": 242,
|
|
"ctxt": 0
|
|
},
|
|
"value": "shortGeneric",
|
|
"raw": "'shortGeneric'"
|
|
}
|
|
},
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 244,
|
|
"end": 257,
|
|
"ctxt": 0
|
|
},
|
|
"value": "longGeneric",
|
|
"raw": "'longGeneric'"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ForOfStatement",
|
|
"span": {
|
|
"start": 269,
|
|
"end": 434,
|
|
"ctxt": 0
|
|
},
|
|
"await": false,
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 274,
|
|
"end": 288,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "const",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 280,
|
|
"end": 288,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 280,
|
|
"end": 288,
|
|
"ctxt": 0
|
|
},
|
|
"value": "zoneName",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 292,
|
|
"end": 305,
|
|
"ctxt": 0
|
|
},
|
|
"value": "timezoneNames",
|
|
"optional": false
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 307,
|
|
"end": 434,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 311,
|
|
"end": 432,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 315,
|
|
"end": 431,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 315,
|
|
"end": 324,
|
|
"ctxt": 0
|
|
},
|
|
"value": "formatter",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "NewExpression",
|
|
"span": {
|
|
"start": 327,
|
|
"end": 431,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 331,
|
|
"end": 350,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 331,
|
|
"end": 335,
|
|
"ctxt": 0
|
|
},
|
|
"value": "Intl",
|
|
"optional": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 336,
|
|
"end": 350,
|
|
"ctxt": 0
|
|
},
|
|
"value": "DateTimeFormat",
|
|
"optional": false
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 351,
|
|
"end": 358,
|
|
"ctxt": 0
|
|
},
|
|
"value": "en-US",
|
|
"raw": "'en-US'"
|
|
}
|
|
},
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 360,
|
|
"end": 430,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 366,
|
|
"end": 374,
|
|
"ctxt": 0
|
|
},
|
|
"value": "timeZone",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 376,
|
|
"end": 397,
|
|
"ctxt": 0
|
|
},
|
|
"value": "America/Los_Angeles",
|
|
"raw": "'America/Los_Angeles'"
|
|
}
|
|
},
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 403,
|
|
"end": 415,
|
|
"ctxt": 0
|
|
},
|
|
"value": "timeZoneName",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 417,
|
|
"end": 425,
|
|
"ctxt": 0
|
|
},
|
|
"value": "zoneName",
|
|
"optional": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"typeArguments": null
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 436,
|
|
"end": 546,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "const",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 442,
|
|
"end": 545,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 442,
|
|
"end": 457,
|
|
"ctxt": 0
|
|
},
|
|
"value": "enumerationKeys",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "TsConstAssertion",
|
|
"span": {
|
|
"start": 460,
|
|
"end": 545,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "ArrayExpression",
|
|
"span": {
|
|
"start": 460,
|
|
"end": 536,
|
|
"ctxt": 0
|
|
},
|
|
"elements": [
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 461,
|
|
"end": 471,
|
|
"ctxt": 0
|
|
},
|
|
"value": "calendar",
|
|
"raw": "'calendar'"
|
|
}
|
|
},
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 473,
|
|
"end": 484,
|
|
"ctxt": 0
|
|
},
|
|
"value": "collation",
|
|
"raw": "'collation'"
|
|
}
|
|
},
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 486,
|
|
"end": 496,
|
|
"ctxt": 0
|
|
},
|
|
"value": "currency",
|
|
"raw": "'currency'"
|
|
}
|
|
},
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 498,
|
|
"end": 515,
|
|
"ctxt": 0
|
|
},
|
|
"value": "numberingSystem",
|
|
"raw": "'numberingSystem'"
|
|
}
|
|
},
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 517,
|
|
"end": 527,
|
|
"ctxt": 0
|
|
},
|
|
"value": "timeZone",
|
|
"raw": "'timeZone'"
|
|
}
|
|
},
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 529,
|
|
"end": 535,
|
|
"ctxt": 0
|
|
},
|
|
"value": "unit",
|
|
"raw": "'unit'"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ForOfStatement",
|
|
"span": {
|
|
"start": 547,
|
|
"end": 632,
|
|
"ctxt": 0
|
|
},
|
|
"await": false,
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 552,
|
|
"end": 561,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "const",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 558,
|
|
"end": 561,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 558,
|
|
"end": 561,
|
|
"ctxt": 0
|
|
},
|
|
"value": "key",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 565,
|
|
"end": 580,
|
|
"ctxt": 0
|
|
},
|
|
"value": "enumerationKeys",
|
|
"optional": false
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 582,
|
|
"end": 632,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 586,
|
|
"end": 630,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 590,
|
|
"end": 629,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 590,
|
|
"end": 599,
|
|
"ctxt": 0
|
|
},
|
|
"value": "supported",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"span": {
|
|
"start": 602,
|
|
"end": 629,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 602,
|
|
"end": 624,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 602,
|
|
"end": 606,
|
|
"ctxt": 0
|
|
},
|
|
"value": "Intl",
|
|
"optional": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 607,
|
|
"end": 624,
|
|
"ctxt": 0
|
|
},
|
|
"value": "supportedValuesOf",
|
|
"optional": false
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 625,
|
|
"end": 628,
|
|
"ctxt": 0
|
|
},
|
|
"value": "key",
|
|
"optional": false
|
|
}
|
|
}
|
|
],
|
|
"typeArguments": null
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|