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

3216 lines
80 KiB
JSON

{
"type": "Module",
"span": {
"start": 92,
"end": 2002,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 92,
"end": 163,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 92,
"end": 162,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 92,
"end": 113,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 92,
"end": 98,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 99,
"end": 113,
"ctxt": 0
},
"value": "defineProperty",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 114,
"end": 121,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 123,
"end": 130,
"ctxt": 0
},
"value": "thing",
"raw": "\"thing\""
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 132,
"end": 161,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 134,
"end": 139,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 141,
"end": 143,
"ctxt": 0
},
"value": 42.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 145,
"end": 153,
"ctxt": 0
},
"value": "writable",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 155,
"end": 159,
"ctxt": 0
},
"value": true
}
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 164,
"end": 248,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 164,
"end": 247,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 164,
"end": 185,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 164,
"end": 170,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 171,
"end": 185,
"ctxt": 0
},
"value": "defineProperty",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 186,
"end": 193,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 195,
"end": 209,
"ctxt": 0
},
"value": "readonlyProp",
"raw": "\"readonlyProp\""
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 211,
"end": 246,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 213,
"end": 218,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 220,
"end": 227,
"ctxt": 0
},
"value": "Smith",
"raw": "\"Smith\""
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 229,
"end": 237,
"ctxt": 0
},
"value": "writable",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 239,
"end": 244,
"ctxt": 0
},
"value": false
}
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 249,
"end": 346,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 249,
"end": 345,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 249,
"end": 270,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 249,
"end": 255,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 256,
"end": 270,
"ctxt": 0
},
"value": "defineProperty",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 271,
"end": 278,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 280,
"end": 293,
"ctxt": 0
},
"value": "rwAccessors",
"raw": "\"rwAccessors\""
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 295,
"end": 344,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 297,
"end": 300,
"ctxt": 0
},
"value": "get",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 297,
"end": 319,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 303,
"end": 319,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 305,
"end": 317,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 312,
"end": 317,
"ctxt": 0
},
"value": 98122.0
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 321,
"end": 324,
"ctxt": 0
},
"value": "set",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 325,
"end": 326,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 325,
"end": 326,
"ctxt": 0
},
"value": "_",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 321,
"end": 342,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 328,
"end": 342,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 347,
"end": 426,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 347,
"end": 425,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 347,
"end": 368,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 347,
"end": 353,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 354,
"end": 368,
"ctxt": 0
},
"value": "defineProperty",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 369,
"end": 376,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 378,
"end": 396,
"ctxt": 0
},
"value": "readonlyAccessor",
"raw": "\"readonlyAccessor\""
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 398,
"end": 424,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 400,
"end": 403,
"ctxt": 0
},
"value": "get",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 400,
"end": 422,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 406,
"end": 422,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 408,
"end": 420,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 415,
"end": 420,
"ctxt": 0
},
"value": 21.75
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 427,
"end": 574,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 427,
"end": 573,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 427,
"end": 448,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 427,
"end": 433,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 434,
"end": 448,
"ctxt": 0
},
"value": "defineProperty",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 449,
"end": 456,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 458,
"end": 475,
"ctxt": 0
},
"value": "setonlyAccessor",
"raw": "\"setonlyAccessor\""
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 477,
"end": 572,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 514,
"end": 517,
"ctxt": 0
},
"value": "set",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 518,
"end": 521,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 518,
"end": 521,
"ctxt": 0
},
"value": "str",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 514,
"end": 570,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 523,
"end": 570,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 533,
"end": 563,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 533,
"end": 563,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 533,
"end": 549,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 533,
"end": 537,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 538,
"end": 549,
"ctxt": 0
},
"value": "rwAccessors",
"optional": false
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 552,
"end": 563,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 552,
"end": 558,
"ctxt": 0
},
"value": "Number",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 559,
"end": 562,
"ctxt": 0
},
"value": "str",
"optional": false
}
}
],
"typeArguments": null
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 598,
"end": 679,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 598,
"end": 678,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 598,
"end": 619,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 598,
"end": 604,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 605,
"end": 619,
"ctxt": 0
},
"value": "defineProperty",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "MemberExpression",
"span": {
"start": 620,
"end": 634,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 620,
"end": 626,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 627,
"end": 634,
"ctxt": 0
},
"value": "exports",
"optional": false
}
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 636,
"end": 643,
"ctxt": 0
},
"value": "thing",
"raw": "\"thing\""
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 645,
"end": 677,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 647,
"end": 652,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 654,
"end": 659,
"ctxt": 0
},
"value": "yes",
"raw": "\"yes\""
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 661,
"end": 669,
"ctxt": 0
},
"value": "writable",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 671,
"end": 675,
"ctxt": 0
},
"value": true
}
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 680,
"end": 771,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 680,
"end": 770,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 680,
"end": 701,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 680,
"end": 686,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 687,
"end": 701,
"ctxt": 0
},
"value": "defineProperty",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "MemberExpression",
"span": {
"start": 702,
"end": 716,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 702,
"end": 708,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 709,
"end": 716,
"ctxt": 0
},
"value": "exports",
"optional": false
}
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 718,
"end": 732,
"ctxt": 0
},
"value": "readonlyProp",
"raw": "\"readonlyProp\""
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 734,
"end": 769,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 736,
"end": 741,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 743,
"end": 750,
"ctxt": 0
},
"value": "Smith",
"raw": "\"Smith\""
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 752,
"end": 760,
"ctxt": 0
},
"value": "writable",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 762,
"end": 767,
"ctxt": 0
},
"value": false
}
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 772,
"end": 876,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 772,
"end": 875,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 772,
"end": 793,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 772,
"end": 778,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 779,
"end": 793,
"ctxt": 0
},
"value": "defineProperty",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "MemberExpression",
"span": {
"start": 794,
"end": 808,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 794,
"end": 800,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 801,
"end": 808,
"ctxt": 0
},
"value": "exports",
"optional": false
}
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 810,
"end": 823,
"ctxt": 0
},
"value": "rwAccessors",
"raw": "\"rwAccessors\""
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 825,
"end": 874,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 827,
"end": 830,
"ctxt": 0
},
"value": "get",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 827,
"end": 849,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 833,
"end": 849,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 835,
"end": 847,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 842,
"end": 847,
"ctxt": 0
},
"value": 98122.0
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 851,
"end": 854,
"ctxt": 0
},
"value": "set",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 855,
"end": 856,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 855,
"end": 856,
"ctxt": 0
},
"value": "_",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 851,
"end": 872,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 858,
"end": 872,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 877,
"end": 963,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 877,
"end": 962,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 877,
"end": 898,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 877,
"end": 883,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 884,
"end": 898,
"ctxt": 0
},
"value": "defineProperty",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "MemberExpression",
"span": {
"start": 899,
"end": 913,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 899,
"end": 905,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 906,
"end": 913,
"ctxt": 0
},
"value": "exports",
"optional": false
}
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 915,
"end": 933,
"ctxt": 0
},
"value": "readonlyAccessor",
"raw": "\"readonlyAccessor\""
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 935,
"end": 961,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 937,
"end": 940,
"ctxt": 0
},
"value": "get",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 937,
"end": 959,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 943,
"end": 959,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 945,
"end": 957,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 952,
"end": 957,
"ctxt": 0
},
"value": 21.75
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 964,
"end": 1118,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 964,
"end": 1117,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 964,
"end": 985,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 964,
"end": 970,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 971,
"end": 985,
"ctxt": 0
},
"value": "defineProperty",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "MemberExpression",
"span": {
"start": 986,
"end": 1000,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 986,
"end": 992,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 993,
"end": 1000,
"ctxt": 0
},
"value": "exports",
"optional": false
}
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1002,
"end": 1019,
"ctxt": 0
},
"value": "setonlyAccessor",
"raw": "\"setonlyAccessor\""
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1021,
"end": 1116,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1058,
"end": 1061,
"ctxt": 0
},
"value": "set",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 1062,
"end": 1065,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1062,
"end": 1065,
"ctxt": 0
},
"value": "str",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 1058,
"end": 1114,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1067,
"end": 1114,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1077,
"end": 1107,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1077,
"end": 1107,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1077,
"end": 1093,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 1077,
"end": 1081,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1082,
"end": 1093,
"ctxt": 0
},
"value": "rwAccessors",
"optional": false
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 1096,
"end": 1107,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1096,
"end": 1102,
"ctxt": 0
},
"value": "Number",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 1103,
"end": 1106,
"ctxt": 0
},
"value": "str",
"optional": false
}
}
],
"typeArguments": null
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 1170,
"end": 1204,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1176,
"end": 1203,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1176,
"end": 1177,
"ctxt": 0
},
"value": "q",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 1180,
"end": 1203,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 1180,
"end": 1197,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1180,
"end": 1187,
"ctxt": 0
},
"value": "require",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1188,
"end": 1196,
"ctxt": 0
},
"value": "./mod1",
"raw": "\"./mod1\""
}
}
],
"typeArguments": null
},
"property": {
"type": "Identifier",
"span": {
"start": 1198,
"end": 1203,
"ctxt": 0
},
"value": "thing",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1232,
"end": 1266,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1238,
"end": 1265,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1238,
"end": 1239,
"ctxt": 0
},
"value": "u",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 1242,
"end": 1265,
"ctxt": 0
},
"object": {
"type": "CallExpression",
"span": {
"start": 1242,
"end": 1259,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1242,
"end": 1249,
"ctxt": 0
},
"value": "require",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1250,
"end": 1258,
"ctxt": 0
},
"value": "./mod2",
"raw": "\"./mod2\""
}
}
],
"typeArguments": null
},
"property": {
"type": "Identifier",
"span": {
"start": 1260,
"end": 1265,
"ctxt": 0
},
"value": "thing",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "ImportDeclaration",
"span": {
"start": 1295,
"end": 1307,
"ctxt": 0
},
"specifiers": [],
"source": {
"type": "StringLiteral",
"span": {
"start": 1302,
"end": 1306,
"ctxt": 0
},
"value": "./",
"raw": "\"./\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "TsImportEqualsDeclaration",
"span": {
"start": 1309,
"end": 1339,
"ctxt": 0
},
"declare": false,
"isExport": false,
"isTypeOnly": false,
"id": {
"type": "Identifier",
"span": {
"start": 1316,
"end": 1318,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"moduleRef": {
"type": "TsExternalModuleReference",
"span": {
"start": 1321,
"end": 1338,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 1329,
"end": 1337,
"ctxt": 0
},
"value": "./mod1",
"raw": "\"./mod1\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1341,
"end": 1350,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1341,
"end": 1349,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1341,
"end": 1343,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1344,
"end": 1349,
"ctxt": 0
},
"value": "thing",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1351,
"end": 1367,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1351,
"end": 1366,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1351,
"end": 1353,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1354,
"end": 1366,
"ctxt": 0
},
"value": "readonlyProp",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1368,
"end": 1383,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1368,
"end": 1382,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1368,
"end": 1370,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1371,
"end": 1382,
"ctxt": 0
},
"value": "rwAccessors",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1384,
"end": 1404,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1384,
"end": 1403,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1384,
"end": 1386,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1387,
"end": 1403,
"ctxt": 0
},
"value": "readonlyAccessor",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1405,
"end": 1424,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1405,
"end": 1423,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1405,
"end": 1407,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1408,
"end": 1423,
"ctxt": 0
},
"value": "setonlyAccessor",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1449,
"end": 1463,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1449,
"end": 1462,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1449,
"end": 1457,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1449,
"end": 1451,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1452,
"end": 1457,
"ctxt": 0
},
"value": "thing",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1460,
"end": 1462,
"ctxt": 0
},
"value": 10.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1464,
"end": 1484,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1464,
"end": 1483,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1464,
"end": 1478,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1464,
"end": 1466,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1467,
"end": 1478,
"ctxt": 0
},
"value": "rwAccessors",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1481,
"end": 1483,
"ctxt": 0
},
"value": 11.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1485,
"end": 1512,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1485,
"end": 1511,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1485,
"end": 1503,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1485,
"end": 1487,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1488,
"end": 1503,
"ctxt": 0
},
"value": "setonlyAccessor",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 1506,
"end": 1511,
"ctxt": 0
},
"value": "yes",
"raw": "\"yes\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1540,
"end": 1565,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1540,
"end": 1564,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1540,
"end": 1555,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1540,
"end": 1542,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1543,
"end": 1555,
"ctxt": 0
},
"value": "readonlyProp",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 1558,
"end": 1564,
"ctxt": 0
},
"value": "name",
"raw": "\"name\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1566,
"end": 1591,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1566,
"end": 1590,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1566,
"end": 1585,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1566,
"end": 1568,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1569,
"end": 1585,
"ctxt": 0
},
"value": "readonlyAccessor",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1588,
"end": 1590,
"ctxt": 0
},
"value": 12.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1592,
"end": 1608,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1592,
"end": 1607,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1592,
"end": 1600,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1592,
"end": 1594,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1595,
"end": 1600,
"ctxt": 0
},
"value": "thing",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 1603,
"end": 1607,
"ctxt": 0
},
"value": "no",
"raw": "\"no\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1609,
"end": 1631,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1609,
"end": 1630,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1609,
"end": 1623,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1609,
"end": 1611,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1612,
"end": 1623,
"ctxt": 0
},
"value": "rwAccessors",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 1626,
"end": 1630,
"ctxt": 0
},
"value": "no",
"raw": "\"no\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1632,
"end": 1655,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1632,
"end": 1654,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1632,
"end": 1650,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1632,
"end": 1634,
"ctxt": 0
},
"value": "m1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1635,
"end": 1650,
"ctxt": 0
},
"value": "setonlyAccessor",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1653,
"end": 1654,
"ctxt": 0
},
"value": 0.0
}
}
},
{
"type": "TsImportEqualsDeclaration",
"span": {
"start": 1657,
"end": 1687,
"ctxt": 0
},
"declare": false,
"isExport": false,
"isTypeOnly": false,
"id": {
"type": "Identifier",
"span": {
"start": 1664,
"end": 1666,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"moduleRef": {
"type": "TsExternalModuleReference",
"span": {
"start": 1669,
"end": 1686,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 1677,
"end": 1685,
"ctxt": 0
},
"value": "./mod2",
"raw": "\"./mod2\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1689,
"end": 1698,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1689,
"end": 1697,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1689,
"end": 1691,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1692,
"end": 1697,
"ctxt": 0
},
"value": "thing",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1699,
"end": 1715,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1699,
"end": 1714,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1699,
"end": 1701,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1702,
"end": 1714,
"ctxt": 0
},
"value": "readonlyProp",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1716,
"end": 1731,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1716,
"end": 1730,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1716,
"end": 1718,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1719,
"end": 1730,
"ctxt": 0
},
"value": "rwAccessors",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1732,
"end": 1752,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1732,
"end": 1751,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1732,
"end": 1734,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1735,
"end": 1751,
"ctxt": 0
},
"value": "readonlyAccessor",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1753,
"end": 1772,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1753,
"end": 1771,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1753,
"end": 1755,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1756,
"end": 1771,
"ctxt": 0
},
"value": "setonlyAccessor",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1797,
"end": 1813,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1797,
"end": 1812,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1797,
"end": 1805,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1797,
"end": 1799,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1800,
"end": 1805,
"ctxt": 0
},
"value": "thing",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 1808,
"end": 1812,
"ctxt": 0
},
"value": "ok",
"raw": "\"ok\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1814,
"end": 1834,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1814,
"end": 1833,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1814,
"end": 1828,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1814,
"end": 1816,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1817,
"end": 1828,
"ctxt": 0
},
"value": "rwAccessors",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1831,
"end": 1833,
"ctxt": 0
},
"value": 11.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1835,
"end": 1862,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1835,
"end": 1861,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1835,
"end": 1853,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1835,
"end": 1837,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1838,
"end": 1853,
"ctxt": 0
},
"value": "setonlyAccessor",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 1856,
"end": 1861,
"ctxt": 0
},
"value": "yes",
"raw": "\"yes\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1890,
"end": 1915,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1890,
"end": 1914,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1890,
"end": 1905,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1890,
"end": 1892,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1893,
"end": 1905,
"ctxt": 0
},
"value": "readonlyProp",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 1908,
"end": 1914,
"ctxt": 0
},
"value": "name",
"raw": "\"name\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1916,
"end": 1941,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1916,
"end": 1940,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1916,
"end": 1935,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1916,
"end": 1918,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1919,
"end": 1935,
"ctxt": 0
},
"value": "readonlyAccessor",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1938,
"end": 1940,
"ctxt": 0
},
"value": 12.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1942,
"end": 1955,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1942,
"end": 1954,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1942,
"end": 1950,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1942,
"end": 1944,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1945,
"end": 1950,
"ctxt": 0
},
"value": "thing",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1953,
"end": 1954,
"ctxt": 0
},
"value": 0.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1956,
"end": 1978,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1956,
"end": 1977,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1956,
"end": 1970,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1956,
"end": 1958,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1959,
"end": 1970,
"ctxt": 0
},
"value": "rwAccessors",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 1973,
"end": 1977,
"ctxt": 0
},
"value": "no",
"raw": "\"no\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1979,
"end": 2002,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1979,
"end": 2001,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1979,
"end": 1997,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1979,
"end": 1981,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1982,
"end": 1997,
"ctxt": 0
},
"value": "setonlyAccessor",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 2000,
"end": 2001,
"ctxt": 0
},
"value": 0.0
}
}
}
],
"interpreter": null
}