swc/crates/swc_ecma_parser/tests/tsc/checkObjectDefineProperty.json

2323 lines
56 KiB
JSON
Raw Normal View History

{
"type": "Module",
"span": {
"start": 94,
"end": 1614,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 94,
"end": 107,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 100,
"end": 106,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 100,
"end": 101,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 104,
"end": 106,
"ctxt": 0
},
"properties": []
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 108,
"end": 179,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 108,
"end": 178,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 108,
"end": 129,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 108,
"end": 114,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 115,
"end": 129,
"ctxt": 0
},
"value": "defineProperty",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 130,
"end": 131,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 133,
"end": 139,
"ctxt": 0
},
"value": "name",
"raw": "\"name\""
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 141,
"end": 177,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 143,
"end": 148,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 150,
"end": 159,
"ctxt": 0
},
"value": "Charles",
"raw": "\"Charles\""
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 161,
"end": 169,
"ctxt": 0
},
"value": "writable",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 171,
"end": 175,
"ctxt": 0
},
"value": true
}
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 180,
"end": 235,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 180,
"end": 234,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 180,
"end": 201,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 180,
"end": 186,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 187,
"end": 201,
"ctxt": 0
},
"value": "defineProperty",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 202,
"end": 203,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 205,
"end": 217,
"ctxt": 0
},
"value": "middleInit",
"raw": "\"middleInit\""
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 219,
"end": 233,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 221,
"end": 226,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 228,
"end": 231,
"ctxt": 0
},
"value": "H",
"raw": "\"H\""
}
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 236,
"end": 310,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 236,
"end": 309,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 236,
"end": 257,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 236,
"end": 242,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 243,
"end": 257,
"ctxt": 0
},
"value": "defineProperty",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 258,
"end": 259,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 261,
"end": 271,
"ctxt": 0
},
"value": "lastName",
"raw": "\"lastName\""
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 273,
"end": 308,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 275,
"end": 280,
"ctxt": 0
},
"value": "value",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 282,
"end": 289,
"ctxt": 0
},
"value": "Smith",
"raw": "\"Smith\""
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 291,
"end": 299,
"ctxt": 0
},
"value": "writable",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 301,
"end": 306,
"ctxt": 0
},
"value": false
}
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 311,
"end": 394,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 311,
"end": 393,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 311,
"end": 332,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 311,
"end": 317,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 318,
"end": 332,
"ctxt": 0
},
"value": "defineProperty",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 333,
"end": 334,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 336,
"end": 341,
"ctxt": 0
},
"value": "zip",
"raw": "\"zip\""
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 343,
"end": 392,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 345,
"end": 348,
"ctxt": 0
},
"value": "get",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 345,
"end": 367,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 351,
"end": 367,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 353,
"end": 365,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 360,
"end": 365,
"ctxt": 0
},
"value": 98122.0,
"raw": "98122"
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 369,
"end": 372,
"ctxt": 0
},
"value": "set",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 373,
"end": 374,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 373,
"end": 374,
"ctxt": 0
},
"value": "_",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 369,
"end": 390,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 376,
"end": 390,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 395,
"end": 463,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 395,
"end": 462,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 395,
"end": 416,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 395,
"end": 401,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 402,
"end": 416,
"ctxt": 0
},
"value": "defineProperty",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 417,
"end": 418,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 420,
"end": 433,
"ctxt": 0
},
"value": "houseNumber",
"raw": "\"houseNumber\""
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 435,
"end": 461,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 437,
"end": 440,
"ctxt": 0
},
"value": "get",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 437,
"end": 459,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 443,
"end": 459,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 445,
"end": 457,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 452,
"end": 457,
"ctxt": 0
},
"value": 21.75,
"raw": "21.75"
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 464,
"end": 588,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 464,
"end": 587,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 464,
"end": 485,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 464,
"end": 470,
"ctxt": 0
},
"value": "Object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 471,
"end": 485,
"ctxt": 0
},
"value": "defineProperty",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 486,
"end": 487,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 489,
"end": 497,
"ctxt": 0
},
"value": "zipStr",
"raw": "\"zipStr\""
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 499,
"end": 586,
"ctxt": 0
},
"properties": [
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 536,
"end": 539,
"ctxt": 0
},
"value": "set",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 540,
"end": 543,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 540,
"end": 543,
"ctxt": 0
},
"value": "str",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 536,
"end": 584,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 545,
"end": 584,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 555,
"end": 577,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 555,
"end": 577,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 555,
"end": 563,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 555,
"end": 559,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 560,
"end": 563,
"ctxt": 0
},
"value": "zip",
"optional": false
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 566,
"end": 577,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 566,
"end": 572,
"ctxt": 0
},
"value": "Number",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 573,
"end": 576,
"ctxt": 0
},
"value": "str",
"optional": false
}
}
],
"typeArguments": null
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
]
}
}
],
"typeArguments": null
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 640,
"end": 648,
"ctxt": 0
},
"value": "takeName",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 649,
"end": 654,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 649,
"end": 654,
"ctxt": 0
},
"value": "named",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 631,
"end": 678,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 656,
"end": 678,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 658,
"end": 676,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 665,
"end": 675,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 665,
"end": 670,
"ctxt": 0
},
"value": "named",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 671,
"end": 675,
"ctxt": 0
},
"value": "name",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 680,
"end": 692,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 680,
"end": 691,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 680,
"end": 688,
"ctxt": 0
},
"value": "takeName",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 689,
"end": 690,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 719,
"end": 733,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 723,
"end": 732,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 723,
"end": 724,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 727,
"end": 732,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 727,
"end": 728,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 729,
"end": 732,
"ctxt": 0
},
"value": "zip",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 761,
"end": 783,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 765,
"end": 782,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 765,
"end": 766,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 769,
"end": 782,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 769,
"end": 770,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 771,
"end": 782,
"ctxt": 0
},
"value": "houseNumber",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 785,
"end": 816,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 791,
"end": 815,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 791,
"end": 805,
"ctxt": 0
},
"value": "returnExemplar",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 808,
"end": 815,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 814,
"end": 815,
"ctxt": 0
},
"value": "x",
"optional": false
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 817,
"end": 857,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 823,
"end": 856,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 823,
"end": 836,
"ctxt": 0
},
"value": "needsExemplar",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrowFunctionExpression",
"span": {
"start": 839,
"end": 856,
"ctxt": 0
},
"params": [
{
"type": "AssignmentPattern",
"span": {
"start": 840,
"end": 845,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 840,
"end": 841,
"ctxt": 0
},
"value": "_",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 844,
"end": 845,
"ctxt": 0
},
"value": "x",
"optional": false
},
"typeAnnotation": null
}
],
"body": {
"type": "UnaryExpression",
"span": {
"start": 850,
"end": 856,
"ctxt": 0
},
"operator": "void",
"argument": {
"type": "NumericLiteral",
"span": {
"start": 855,
"end": 856,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 859,
"end": 1045,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 865,
"end": 1044,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 865,
"end": 873,
"ctxt": 0
},
"value": "expected",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ParenthesisExpression",
"span": {
"start": 1020,
"end": 1044,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 1037,
"end": 1043,
"ctxt": 0
},
"expression": {
"type": "NullLiteral",
"span": {
"start": 1038,
"end": 1042,
"ctxt": 0
}
}
}
},
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1141,
"end": 1146,
"ctxt": 0
},
"value": "match",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 1147,
"end": 1148,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1147,
"end": 1148,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 1150,
"end": 1151,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1150,
"end": 1151,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 1132,
"end": 1155,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1153,
"end": 1155,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 1157,
"end": 1205,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 1157,
"end": 1204,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1157,
"end": 1162,
"ctxt": 0
},
"value": "match",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 1163,
"end": 1177,
"ctxt": 0
},
"params": [],
"body": {
"type": "Identifier",
"span": {
"start": 1169,
"end": 1177,
"ctxt": 0
},
"value": "expected",
"optional": false
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
},
{
"spread": null,
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 1179,
"end": 1203,
"ctxt": 0
},
"params": [
{
"type": "AssignmentPattern",
"span": {
"start": 1180,
"end": 1192,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 1180,
"end": 1181,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 1184,
"end": 1192,
"ctxt": 0
},
"value": "expected",
"optional": false
},
"typeAnnotation": null
}
],
"body": {
"type": "UnaryExpression",
"span": {
"start": 1197,
"end": 1203,
"ctxt": 0
},
"operator": "void",
"argument": {
"type": "NumericLiteral",
"span": {
"start": 1202,
"end": 1203,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1207,
"end": 1226,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1207,
"end": 1225,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1207,
"end": 1221,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1207,
"end": 1213,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1214,
"end": 1221,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 1224,
"end": 1225,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
},
{
"type": "TsImportEqualsDeclaration",
"span": {
"start": 1351,
"end": 1376,
"ctxt": 0
},
"declare": false,
"isExport": false,
"isTypeOnly": false,
"id": {
"type": "Identifier",
"span": {
"start": 1358,
"end": 1359,
"ctxt": 0
},
"value": "x",
"optional": false
},
"moduleRef": {
"type": "TsExternalModuleReference",
"span": {
"start": 1362,
"end": 1375,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 1370,
"end": 1374,
"ctxt": 0
},
"value": "./",
"raw": "\"./\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1377,
"end": 1384,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1377,
"end": 1383,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1377,
"end": 1378,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1379,
"end": 1383,
"ctxt": 0
},
"value": "name",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1385,
"end": 1398,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1385,
"end": 1397,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1385,
"end": 1386,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1387,
"end": 1397,
"ctxt": 0
},
"value": "middleInit",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1399,
"end": 1410,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1399,
"end": 1409,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1399,
"end": 1400,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1401,
"end": 1409,
"ctxt": 0
},
"value": "lastName",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1411,
"end": 1417,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1411,
"end": 1416,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1411,
"end": 1412,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1413,
"end": 1416,
"ctxt": 0
},
"value": "zip",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1418,
"end": 1432,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1418,
"end": 1431,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1418,
"end": 1419,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1420,
"end": 1431,
"ctxt": 0
},
"value": "houseNumber",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1433,
"end": 1442,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1433,
"end": 1441,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1433,
"end": 1434,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1435,
"end": 1441,
"ctxt": 0
},
"value": "zipStr",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1444,
"end": 1463,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1444,
"end": 1462,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1444,
"end": 1450,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1444,
"end": 1445,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1446,
"end": 1450,
"ctxt": 0
},
"value": "name",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 1453,
"end": 1462,
"ctxt": 0
},
"value": "Another",
"raw": "\"Another\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1464,
"end": 1478,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1464,
"end": 1477,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1464,
"end": 1469,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1464,
"end": 1465,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1466,
"end": 1469,
"ctxt": 0
},
"value": "zip",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1472,
"end": 1477,
"ctxt": 0
},
"value": 98123.0,
"raw": "98123"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1479,
"end": 1495,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1479,
"end": 1494,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1479,
"end": 1487,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1479,
"end": 1480,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1481,
"end": 1487,
"ctxt": 0
},
"value": "zipStr",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 1490,
"end": 1494,
"ctxt": 0
},
"value": "OK",
"raw": "\"OK\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1497,
"end": 1524,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1497,
"end": 1523,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1497,
"end": 1507,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1497,
"end": 1498,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1499,
"end": 1507,
"ctxt": 0
},
"value": "lastName",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 1510,
"end": 1523,
"ctxt": 0
},
"value": "should fail",
"raw": "\"should fail\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1525,
"end": 1544,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1525,
"end": 1543,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1525,
"end": 1538,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1525,
"end": 1526,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1527,
"end": 1538,
"ctxt": 0
},
"value": "houseNumber",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1541,
"end": 1543,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1565,
"end": 1579,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1565,
"end": 1578,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1565,
"end": 1573,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1565,
"end": 1566,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1567,
"end": 1573,
"ctxt": 0
},
"value": "zipStr",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1576,
"end": 1578,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1595,
"end": 1614,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1595,
"end": 1613,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1595,
"end": 1607,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1595,
"end": 1596,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1597,
"end": 1607,
"ctxt": 0
},
"value": "middleInit",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 1610,
"end": 1613,
"ctxt": 0
},
"value": "R",
"raw": "\"R\""
}
}
}
],
"interpreter": null
}